Ruby on Rails Wednesday, April 24, 2013

On Wed, Apr 24, 2013 at 2:56 AM, jane d. <lists@ruby-forum.com> wrote:
> I have been looking for answer.but nothing quite fit my description. My
> rails app keeps crashing with routing error.

Look at what it's trying parse as a route:

ActionController::RoutingError (no route found to match
"/javascripts/prototype.lite.js" with {:method=>:get}):
/www/lib/ruby/gems/1.8/gems/actionpack

That means the server did not find
Rails.root/public/assets/javascripts/prototype.lite.js and so went
searching in the application for such a route, where it really
hopefully should not find one.

I have no recollection of how Rails 1.2.6 handled javascript and other
assets; in Rails 3.x there is the "asset pipeline" which makes working
with assets very nice.


p.s. Please don't attach regular text files as rtf; quite a bother.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment