RichardOnRails wrote:
Hey Marnen,
Â
[irrelevant math analogy snipped]Â
Â
Where’s the downside?
Â
For this app, we don’t want any plug-ins. Â
Why on earth not? Â Do you have a reason for this, and if so, what is it?
 (I don’t think I’ve ever seen a nontrivial Rails app that didn’t have
at least one plugin or non-Rails gem dependency.)
Appropriate use of third-party libraries is an important development
skill. At some level, you know this, or you’d be writing your own Web
framework instead of using Rails.
Discussing AuthLogic is
secondary.
Why, when it’s the appropriate solution in this case?
 No one seems interested in helping with the original
question. Â Is that because the question is unanswerable, or because
neither of you can answer it with the facts as I presented them?
It’s because it’s not a question you should be worrying about as a Rails
beginner. Â You should not be reinventing user authentication when there
is an excellent plugin that will do everything you’re asking for.
(In fact, the answer to your question is simple. Read the docs for the
resources method and all will become clear – sign_in is not one of the
7 default action names, and you didn’t declare it.)
Now, if you take a look at Authlogic and think you can do better, then
please do so! Â But do so in order to build a better mousetrap, not out
of “Not Invented Here” syndrome.Â
Â
As Hamlet said so eloquently, “That is the question.”
Programming is not a life-or-death matter (well, unless you’re in the
medical device industry…).Â
Â
Best,.
Richard
Best,
–Â
Marnen Laibow-Koser
http://www.marnen.org
[email protected]
Sent from my iPhone