restful authentication - session_path

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>

Have not been able to find or figure a solution.

Anyone have an idea?


Andy Koch

try new_session_path.

found the problem,

in routes.rb,

map.resources :session, :controller => 'sessions'

and should be...
map.resource :session, :controller => 'sessions'

subtle, but the plural "resources" was bad


Andy Koch schrieb: