I need some help with a small Classfieds site I'm currently trying to
build.
I am letting users publish their classfieds for free and without
registering. But I also want to let them be able to edit their
classfieds at a later point. That's why I am asking them to provide a
password for their classfied.
What I need to do and can't accomplish is:
- Show a "login" form to the user
- He has to provide the ID of the classfied ( he knows it, it's in
the description)
- He has to provide the password he entered when creating the
classfied
If those 2 match he is redirected to the edit page of the classfied.
The password is saved in the classfieds table. I can save it as a string
or if your example needs it to be hashed, as a hashed_password + salt (
doesn't matter to me ).
Thank you for your help!
--
Posted via http://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.