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...@gmail.com> 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@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to