Rails 4 : undefined local variable or method 'asset_paths' inside OldImagePath module -


i migrated rails 3.2.13 application rails 4.0, creating fresh new rails 4 application , migrating app/config/lib/db/routes/gemfile/public it. seems working ok except following error:

whenever call image_tag ex. <%= image_tag('home_vertical_separator.gif', :alt => 'separator image') %>.

an error prompts:

undefined local variable or method 'asset_paths' #<#<class:0x007fd5cb989b28>:0x007fd5cbdd2fe0>

inside config/initializers/images_pipeline_path.rb @ line asset_paths.compute_public_path(source, 'images').

i know sprockets considered separate project why added following line gemfile:

gem 'sprockets-rails', :require => 'sprockets/railtie'

unfortunately still not working, hints?

i have removed images_pipeline_path.rb file configuration , worked.


Comments