top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

Facebook Login
Site Registration
Print Preview

Sign in and sign out problem in Rails

+1 vote
19 views

I am programming a simple app to manage users in Ruby on Rails.I read RoR Tutorial from http://ruby.railstutorial.org/chapters/sign-in-sign-out#top to sign in and sign out my app. I implemented the same configuration as it said:

_sessions_helper.rb_def sign_out  self.current_user = nil cookies.delete(:remember_token)end    
_sessions_controller.rb_ def destroy sign_out redirect_to root_url end
_application.html.erb_
_routes.rb_ match '/signout', to: 'sessions#destroy', via: 'delete'

I am able to sign in, but I can't sign out. The problem is that there are not any log error and I don't know what to do.

posted Jul 7, 2013 by anonymous

Looking for an answer?  Promote on:
Facebook Share Button Twitter Share Button Google+ Share Button LinkedIn Share Button Multiple Social Share Button

Similar Questions
0 votes

I am getting certificate errors on the https:\rubygems.org web site using 2.1.5 Rails install environment objects.
Any ideas? This is Windows 7 VM machine installation.

0 votes

I have a problem when I try to use jQuery simpleZoom Plugin in rails. I want to use it when select image from database, how can I do it?

0 votes

I am having problems populating my db. I created a sample_data.rake file. When I run rake db:populate it shows exactly what it should show- no errors. But when I go to localhost and try to login the db has not been populated. Any suggestions??

0 votes

I want to authentication for sign in and sign out, I add gem file and create a user model using devise in rails3, I want to create a user for first sign in and sign out, how can I create, any suggestion.


Useful Links with Similar Problem
Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...