You have not shown us the important code, the code in the models
defining the relationships between them (has_many etc). Copy and
paste the first few lines of each model showing the relationship
definitions.
Do you get the problem every time you try to get pictures for a question?
You have not shown us the important code, the code in the models
defining the relationships between them (has_many etc). Copy and
paste the first few lines of each model showing the relationship
definitions.
Do you get the problem every time you try to get pictures for a
question?
Colin
class Picture < ActiveRecord::Base
attr_accessible :minisection_id, :contributor, :title,
:remote_image_url, :image
Your problem is interesting, I’m not sure what’s going on. I seem to remember Sprockets::Helpers::RailsHelper and Sprockets::Helpers::IsolatedHelper were dropped in Rails 4 and people were including them in their code to make the Rails 4 pipeline backwards compatible to the Rails 3.1 pipeline. One of the things that changed between the two was the treatment of images when you ran assets pre-compile. Still not sure why that’s affecting you, but if it’s running with those two lines commented out, you’re probably OK.