Login/Logout process for ROR (Rails 3.2.2) - ruby-on-rails

We are new to ROR, We have issue in creating Login/Logout process in ROR (Rails 3.2.2/ruby 1.9.3p125). Can you please provide some details steps to do below,
How to code for Login/Logout process
How to change the table as well as fields as per my requirement for
it.
How to customize signup and change the table and fields.
Thanks in advance.
Thanks & Regards,
Chirag Patel

Please read about devise gem and devise Wiki

i recommend to use gem called sorcery for such problems. it's really awesome one, i use it in every my project, Visit tutorial
Benefits:
No built-in or generated code
Configuration over Confusion
Keep MVC cleanly separated

Or http://railscasts.com/episodes/270-authentication-in-rails-3-1

Related

Implementing a chat application in Ruby on Rails

Basically, the app has to support sign up/sign in functionality and allow user to add friends and allow friends to chat.Since, I am just starting? with rails it's a bit overwhelming. How should I go about it
Also, the aim is not an application for production.
It'll be great if you could link to some working demos of the same.
Thanks!
If you are learning rails there are lots of great resources online. Try googling for a few.
I would suggest Michael Hartl's Rails Tutorial - http://ruby.railstutorial.org/ruby-on-rails-tutorial-book - it includes bits of what you want.
You would need ofcourse to read tutorials for rails beginners, I recommend the official rails guide.
For sign up/sign in, you could use the devise gem, and for chat push you could take a look at private_pub gem.
You can also check out a tutorial I did on how to achieve the same using devise and private_pub gem. I believe this should get you started http://goo.gl/l3e8zN

Ruby on Rails Authentication Devise or Authlogic

hi people i m new to ruby on rails i m looking for authentication solution for my app and i came across Devise and Authlogic so my question is which one to choose?
my requirements
1.save time
2.highly customziable
3.easy to understand
4.easy to debug
Please Help
Please visit the link below and understand authentication from scratch.
http://railscasts.com/episodes/250-authentication-from-scratch
Pros:
1. Very easy to understand, as a beginner.
2. Highly customizable.
3. Get an extreme handle of what is going on.
4. Good riddance from complex code.
5. Its written by you.
Cons:
1. Its written by you.
Thanks.

how do I write a scaffold in rails?

I want to write a rails gem that can scaffold a working prototype of the basic functionality of the gem and I was wondering if anyone can explain the process. I know this is a broad topic but I'm hoping for some pointers to tutorials or other rails docs.
Thanks!
Like most problems I try to solve with rails, there's already a great project that helps you create "starter apps" with rails. Rails Apps helps you create application templates that you can then use to generate starter apps. There are some great examples (i.e. devise + rspec + cucumber) to get you started.

Using Ruby on Rails, what is the quickest method to create user registration and activation?

I wonder if it can be done in 10 to 15 minutes?
Is there a quickest method?
Is the most elegant and robust solution possibly a different one?
Devise is the way to go. The README should get you started in 10 minutes. It shouldn't be really hard to use it in your Rails3 app.
If you are writing your code from the scratch, I would also suggest giving prologue or railswizard a try. Otherwise my vote goes for using devise :)
For a Rails3 App definitely Devise ;). But one limitation killing me on devise is that I'm yet to find a way to customize the devise's controllers. I have raised a question this and yet to get some answers I want to customise devise gem's controllers, is it possible and how to do? . If your requirement is as simple as user registration and complete authentication throughout M , V and C stacks then Devise is the best solution for now :)

RoR - Account - Login - Register +

Is there an automatic way in Ruby On Rails for authentication porpose?
What gem is this and what does it do?
Does it automaticly generate the tables and pages like when i should generate a scaffold?
There are some plugins that do code generation for you, but I strongly prefer Authlogic. Ryan Bates has an excellent introductory video.
I agree that Authlogic is a great choice for Rails authentication.
In addition to the links Alex provided, check out the authlogic_example Git repository for step-by-step setup instructions, including the proper migration to be using. You can still start with nifty_scaffold and then edit the migration, models, and controllers appropriately.

Resources