Topic: Register and Login Tutorial
I searched the forum and could not find any tutorials on this topic so forgive me if I am double posting.
How do you check to see if a user is logged in before trying to submit information. Are there two views/ rhtml pages I should use. One that says you need to be logged in before submitting, and a second one that will allow them to submit information after they are logged in.
I am a freshman at this. I know a user model needs to be in place and do I use a before filter :check_logged_in :only =>[:name,]? I need to the user to register if they have never did.
If you could just point me to a tutorial or explain, I will be very thankful.