small medium large xlarge

Generic-user-small
02 May 2011, 05:01
Matt Sencenbaugh (3 posts)

Why does the sessions controller have a new and create method?

In the create method of the sessions_controller we set the session id and then redirect to the admin page but then we create the view in the new.html.erb view.

Then it goes on to explain how the new.html.erb view communicates with the create controller method? But I’m really quite confused by how this works. Can someone offer up a better explanation?

Thanks, Matt

You must be logged in to comment