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:

Login

3: <%= text_field_tag ‘login’ %>


4:

Have not been able to find or figure a solution.

Anyone have an idea?

Thanks,

Andy K.

On 8/24/07, Andy K. [email protected] wrote:

:action=>“show”} - you may have ambiguous routes, or you may need to

Have not been able to find or figure a solution.

Anyone have an idea?

try new_session_path.


Rick O.
http://lighthouseapp.com
http://weblog.techno-weenie.net
http://mephistoblog.com

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 K. schrieb:

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs