Hello. I''ve added some routes : map.news ''news'', :controller => :News, :action =>:index map.login ''login'', :controller => :Login , :action =>:index When I go to /news or /login before adding the routes, it works well. When I add the routes and clik on the link that goes to /news or / login, I got a 500 internal error with this : /!\ FAILSAFE /!\ Sun Jan 04 11:18:54 +0100 2009 Status: 500 Internal Server Error undefined method `camelize'' for :News:Symbol c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/ action_controller/routing/route_set.rb:388:in `recognize'' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/ action_controller/dispatcher.rb:182:in `handle_request'' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/ action_controller/dispatcher.rb:110:in `dispatch_unlocked'' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/ action_controller/dispatcher.rb:123:in `dispatch'' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/ action_controller/dispatcher.rb:122:in `synchronize'' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/ action_controller/dispatcher.rb:122:in `dispatch'' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/ action_controller/dispatcher.rb:132:in `dispatch_cgi'' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/ action_controller/dispatcher.rb:39:in `dispatch'' c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/bin/../ lib/mongrel/rails.rb:76:in `process'' Any ideas ? Thanks ! --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
can you show us the code you''re using for the link_tos please? ----- Ryan Bigg Freelancer http://frozenplague.net On 04/01/2009, at 8:49 PM, Sobert wrote:> > Hello. > > I''ve added some routes : > > map.news ''news'', :controller => :News, :action =>:index > > map.login ''login'', :controller => :Login , :action =>:index > > When I go to /news or /login before adding the routes, it works well. > > When I add the routes and clik on the link that goes to /news or / > login, I got a 500 internal error with this : > > /!\ FAILSAFE /!\ Sun Jan 04 11:18:54 +0100 2009 > Status: 500 Internal Server Error > undefined method `camelize'' for :News:Symbol > c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/ > action_controller/routing/route_set.rb:388:in `recognize'' > c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/ > action_controller/dispatcher.rb:182:in `handle_request'' > c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/ > action_controller/dispatcher.rb:110:in `dispatch_unlocked'' > c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/ > action_controller/dispatcher.rb:123:in `dispatch'' > c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/ > action_controller/dispatcher.rb:122:in `synchronize'' > c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/ > action_controller/dispatcher.rb:122:in `dispatch'' > c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/ > action_controller/dispatcher.rb:132:in `dispatch_cgi'' > c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/ > action_controller/dispatcher.rb:39:in `dispatch'' > c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/bin/../ > lib/mongrel/rails.rb:76:in `process'' > > > Any ideas ? > > Thanks ! > >--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Here''s the link_to code : <li><%= link_to ''News'', news_path %></li> <%= link_to ''Login'', login_path %> On 4 jan, 12:35, Ryan Bigg <radarliste...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> can you show us the code you''re using for the link_tos please? > ----- > Ryan Bigg > Freelancerhttp://frozenplague.net > > On 04/01/2009, at 8:49 PM, Sobert wrote: > > > > > > > Hello. > > > I''ve added some routes : > > > map.news ''news'', :controller => :News, :action =>:index > > > map.login ''login'', :controller => :Login , :action =>:index > > > When I go to /news or /login before adding the routes, it works well. > > > When I add the routes and clik on the link that goes to /news or / > > login, I got a 500 internal error with this : > > > /!\ FAILSAFE /!\ Sun Jan 04 11:18:54 +0100 2009 > > Status: 500 Internal Server Error > > undefined method `camelize'' for :News:Symbol > > c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/ > > action_controller/routing/route_set.rb:388:in `recognize'' > > c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/ > > action_controller/dispatcher.rb:182:in `handle_request'' > > c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/ > > action_controller/dispatcher.rb:110:in `dispatch_unlocked'' > > c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/ > > action_controller/dispatcher.rb:123:in `dispatch'' > > c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/ > > action_controller/dispatcher.rb:122:in `synchronize'' > > c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/ > > action_controller/dispatcher.rb:122:in `dispatch'' > > c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/ > > action_controller/dispatcher.rb:132:in `dispatch_cgi'' > > c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/ > > action_controller/dispatcher.rb:39:in `dispatch'' > > c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/bin/../ > > lib/mongrel/rails.rb:76:in `process'' > > > Any ideas ? > > > Thanks !- Masquer le texte des messages précédents - > > - Afficher le texte des messages précédents ---~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org 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 -~----------~----~----~----~------~----~------~--~---
> I''ve added some routes : > > map.news ''news'', :controller => :News, :action =>:index > > map.login ''login'', :controller => :Login , :action =>:index >This is wrong, it should be: map.news ''news'', :controller => ''news'', :action => ''index'' Best regards, -- Video tutorial training with screencasts at http://www.digiprof.fr -- 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Oh, thanks, it works ! On 4 jan, 22:48, Fernando Perez <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > I''ve added some routes : > > > map.news ''news'', :controller => :News, :action =>:index > > > map.login ''login'', :controller => :Login , :action =>:index > > This is wrong, it should be: > > map.news ''news'', :controller => ''news'', :action => ''index'' > > Best regards, > > -- > Video tutorial training with screencasts athttp://www.digiprof.fr > -- > Posted viahttp://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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org 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 -~----------~----~----~----~------~----~------~--~---