Ruby on Rails Wednesday, May 28, 2014



On Wednesday, May 28, 2014 2:55:59 AM UTC-4, Ruby-Forum.com User wrote:
Thank you for the suggestions. I went through the tutorial found on the
web (which was explaining the concepts using the example of making a
blog site), but could relate what I have learned, only to the concept of
the idioms in my project, but not to the rest of my application.

I now see that is a good idea to treat the user as its own resource,
because sooner or later I will need this anyway, and I will try to
redesign my application.

--
Posted via http://www.ruby-forum.com/.

When you get to the point where you are going to use password authentication, re-read the user authentication part of the tutorial.  Right now, you have login mapped to an index action.  Actually, login uses the concept of a session resource and you create a session when you log in.  You will want to understand that concept and how a session store is used to maintain security.

Good Luck. 

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/1746b67f-022b-43d6-ac70-94fb06681b6d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment