Colin Law wrote in post #1155842: > On 24 August 2014 17:32, Bharath Neo <li...@ruby-forum.com> wrote: >>> Colin >> >> Okie. This is what I see from how its happening: >> >> 1. There is a login page >> 2. When login page is loaded I see an entry for a session put in. > > What do you mean by 'loading' the login page? The code you posted > shows the session being created in session create, which is presumably > as a result of posting the login form, not displaying. It is up to > you what code you put there.
Actually nope. When I hit localhost:3000, the login page pops up. I don't see any of the controller code being executed. But when I check the sql sessions table, I see rails has put in an entry: mysql> select * from sessions; +----+----------------------------------+----------------------------------------------------------------------------------------+---------------------+---------------------+ | id | session_id | data | created_at | updated_at | +----+----------------------------------+----------------------------------------------------------------------------------------+---------------------+---------------------+ | 2 | b43e58bd6c2871beb354f40650deaade | BAh7BiIQX2NzcmZfdG9rZW4iMUdLZU1zSlNmbGR4UDByVjRQNUlJem02UWFx YzRGcFAwNHF5bW52NFJaZ2M9 | 2014-08-24 17:59:48 | 2014-08-24 17:59:48 | +----+----------------------------------+----------------------------------------------------------------------------------------+---------------------+---------------------+ 1 row in set (0.00 sec) -- 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 unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@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/2621078d4ccbec0653f1a1d9dff2ff12%40ruby-forum.com. For more options, visit https://groups.google.com/d/optout.