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

Facebook Login
Site Registration
Print Preview

How to create first user for sign in using devise

0 votes
38 views

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.

posted Jul 22, 2013 by anonymous

Share this question
Facebook Share Button Twitter Share Button Google+ Share Button LinkedIn Share Button Multiple Social Share Button

1 Answer

0 votes

Create a new User object, then fill in the fields, and call save.

answer Jul 22, 2013 by anonymous
Similar Questions
+2 votes

Need help from all of you guys on a question that can we develop a Kisok App using ROR.

If yes please share the details or possible link.

+1 vote

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.

+1 vote

how to use single login page for users in four models when using Ruby on Rails

+1 vote

I am using omni-auth for the user authentication and logged in the user via access token.

But like facebook i want to fetch the user profile information and all the albums he/she uploaded and images belongs to that albums, than save the public url to my own database.

I found fb_graph a very good gem to use FB Graph search but i could not find any Gem that helps me to extract images,albums from Google+. Any suggestions and gem that can solve this problem are welcome.

+1 vote

Currently I am working on a app, so far I have User (with devise) which are able to create projects. So, if user1 create project A and project B I want him, to be able to assign user2 with role admin on project A, and user2 with moderator admin on project B. I was thinking in creating a UserRoleProject link table, is it a good idea? Also I intend to use CanCan for the authorisation.


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