Ruby on Rails Sunday, April 1, 2012

OK. I have figure this out and am posting the solution here so that
someone who runs into this problem can benefit from this knowledge.

At some point in time, I have pre-compiled the coffeescript files to
javascript in my assets/javascripts folder and therefore there were
corresponding javascript files along with the coffeescript files in my
development environment. Asset pipeline was executing both instead of
either!

So the moral of the exercise is that if you are using coffeescript, be
sure to delete corresponding javascript files from the
assets/javascripts folder. As soon as I deleted
app/assets/javascripts/type_wells.js.js file, everything worked as
expected

Bharat

--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment