trying to make use of the restful-authentication plugin, however the login page gives... ActionController::RoutingError in Sessions#new Showing app/views/sessions/new.rhtml where line #1 raised: session_url failed to generate from {:controller=>"sessions", :action=>"show"} - you may have ambiguous routes, or you may need to supply additional parameters for this route. content_url has the following required parameters: ["session", :id] - are they all satisifed? Extracted source (around line #1): 1: <% form_tag session_path do -%> 2: <p><label for="login">Login</label><br/> 3: <%= text_field_tag ''login'' %></p> 4: Have not been able to find or figure a solution. Anyone have an idea? Thanks, Andy Koch --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On 8/24/07, Andy Koch <andy.koch-sBIqA0PYact54TAoqtyWWQ@public.gmane.org> wrote:> > trying to make use of the restful-authentication plugin, > > however the login page gives... > > ActionController::RoutingError in Sessions#new > > Showing app/views/sessions/new.rhtml where line #1 raised: > > session_url failed to generate from {:controller=>"sessions", > :action=>"show"} - you may have ambiguous routes, or you may need to > supply additional parameters for this route. content_url has the > following required parameters: ["session", :id] - are they all satisifed? > > Extracted source (around line #1): > > 1: <% form_tag session_path do -%> > 2: <p><label for="login">Login</label><br/> > 3: <%= text_field_tag ''login'' %></p> > 4: > > > Have not been able to find or figure a solution. > > Anyone have an idea?try new_session_path. -- Rick Olson http://lighthouseapp.com http://weblog.techno-weenie.net http://mephistoblog.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 -~----------~----~----~----~------~----~------~--~---
found the problem, in routes.rb,,, was... map.resources :session, :controller => ''sessions'' and should be... map.resource :session, :controller => ''sessions'' subtle, but the plural "resources" was bad /ak Andy Koch schrieb:> trying to make use of the restful-authentication plugin, > > however the login page gives... > > ActionController::RoutingError in Sessions#new > > Showing app/views/sessions/new.rhtml where line #1 raised: > > session_url failed to generate from {:controller=>"sessions", > :action=>"show"} - you may have ambiguous routes, or you may need to > supply additional parameters for this route. content_url has the > following required parameters: ["session", :id] - are they all satisifed? > > Extracted source (around line #1): > > 1: <% form_tag session_path do -%> > 2: <p><label for="login">Login</label><br/> > 3: <%= text_field_tag ''login'' %></p> > 4: > > > Have not been able to find or figure a solution. > > Anyone have an idea? > > > Thanks, > > Andy Koch > > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---