Ruby on Rails Sunday, January 18, 2015

Hello,

I am creating an application regarding the book in which the user can read the content of the book. I want the user should be automatically redirect to the login page after the interval of 30 seconds while reading the book. For login / logout I'm using Devise. I have created a new controller named "pustak_controller.rb" for the purpose of session. I am totally new to this. I have tried to create the follow login [0] but it gives me an error  " undefined method `-' for nil:NilClass ". Please help and tell me where I am going wrong.

[0] : https://gist.github.com/anonymous/af583d45ebe6709e89e4

--
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/972be5ae-dfa0-41b3-815e-eed15f9c9bff%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment