top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Sign in and sign out problem in Rails

+1 vote
205 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 LinkedIn 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.

0 votes

I need to display some charts/graphs based upon user inputs on my web application built using Ruby on Rails.
Are there any charting libraries out there that I could use with ROR for displaying simple bar, line and pie graphs?

...