Hi Marnen,

Thanks for your response (especially since you posted with an
iphone :BG)

> Beware of following any Rails book that old.
But I should be able to adapt old stuff to run in a fairly current
Rails version (mine's 2.3.5)

> And don't bother writing your own authentication code.  Just use Authlogic 
> and have done with it.
I'd rather add code to my app that I can test rather than blindly add
code that hasn't been perused as carefully as code bless by the core
Rails team.

With that said, my first problem is a link failing;  I produce a Home
page that displays the following:

Receipts Tracking System
Library powered by Ruby on Rails
Please sign in here

where "here" is a link defined by:Please sign in <%=  link_to
"here", :controller=>"user", :action=>"sign_in" -%>

I've got the User controller populated with:
  def sign_in
  end

I've got app\views\users\sign_in.html.erb defined with (just to see if
it's working):
<b><i>Signing in!<i><b>

Instead of getting "Signing in!",  I get the error messages:
Routing Error
No route matches "/user/sign_in" with {:method=>:get}

I've got a route:  map.resources :users

Do you care to offer me any suggestions?  I'd be most appreciative.

Best wishes,
Richard




On Jul 5, 1:03 am, Marnen Laibow-Koser <[email protected]> wrote:
> RichardOnRails wrote:
> > Hi,
>
> > I'm following Chad's Recipe 31, "Authenticating your Users".
>
> Beware of following any Rails book that old.
>
> And don't bother writing your own authentication code.  Just use
> Authlogic and have done with it.
>
> -- 
> Marnen Laibow-Koserhttp://www.marnen.org
> [email protected]
>
> Sent from my iPhone
> --
> 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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to