ruby on rails - asset_path helper is not implemented -


i receiving error when trying compile assets on heroku

   custom asset_path helper not implemented    extend environment context custom method.    environment.context_class.class_eval      def asset_path(path, options = {})      end    end 

i have tried pretty find through google. heroku seems getting caught when precompiling assets active_admin.css, contains 2 @import statements. if comment out, build proceeds, without active admin stylesheets working in production.

if has thoughts, please advise. thank you.

i fixed issue removing config in application.rb relating asset precompiling, , added catch compile script. guess somehow missing file, caused error:

# precompile assets # application.rb config.assets.precompile << proc.new |path|   if path =~ /\.(css|js)\z/     full_path = rails.application.assets.resolve(path).to_path     app_assets_path = rails.root.join('app', 'assets').to_path     if full_path.starts_with? app_assets_path       puts "including asset: " + full_path       true     else       puts "excluding asset: " + full_path       false     end   else     false   end end 

Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -