Hi, I am just getting started with Rails and am trying to take advantage
of the work that’s already been done for the login engine. I’ve had
pretty good luck following along with the documentation and the
quicktime movie, but there is one spot where it looks like I need even
more hand-holding than has already been provided.
Setup your Rails application
Edit your database.yml, most importantly! You might
also want to move public/index.html out of the way,
and set up some default routes in config/routes.rb.
Can someone explain a bit about this paragraph? What might I need to to
to my database.yml? I hear it’s important, but I’m not clear at all what
I should do to it.
And my main question is about the last part about setting up some
default routes. This is where my ignorance of how an engine works really
bites me. It looks like I have gotten things almost working - when I try
to pull up an existing page, the login engine is trying to send me to
the login form, and I assume I need to do something in routes.rb. What
would a typical alteration/addition to routes.rb look like?
Of course, that might not be my problem at all. After being sent to
http://127.0.0.1:3000/user/login, the error I get is:
NameError
uninitialized constant UserController
Any help would be greatly appreciated.
Dave