Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
I was wondering what is the best way to handle authentication and what is the process in a RoR app? I am looking to obtain a users email address and password of some number of characters. I stumbled across Devise, would this help?
I am fairly new to the RoR world.
Thanks.
I personally use Devise for all my projects and I think it's the most popular auth solution for Rails (and Ruby toolbox search seens to confirm that)
Big advantage of Devise is that it works with Omniauth which has plugins to most popular 3rd party auth solutions (Google, Facebook, Github, etc)
Devise gem is usually used, here is a screencast on it: http://railscasts.com/episodes/209-introducing-devise
also you can do it from scratch if you only need some simple logic, here is another screencast on that topic: http://railscasts.com/episodes/250-authentication-from-scratch
hope it helps
Pick Your Poison
There are quite a few different ways to provide authentication in Rails, from rolling your own to using any number of publicly-available gems. There's no one right answer; you'll just need to make a selection based on the features you need, as well as the tools that you think will be the most well-supported.
Related
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 6 years ago.
Improve this question
What are the most popular practices for developing authtentication systems that will are used for a simple login and logout system. Are developing custom authentication systems more popular or is it to use gems like devise, clearance, authlogic? The authentication system I am looking to build is pretty simple. So, I'd like to know what is the most popular solution when developing authentication systems?
You can roll out a basic authentication with bcrypt (good resource here). Bcrypt serves the purpose if your authentication system is not that complex and is limited to a few data models (say login to /admin section).
If you are looking for out of the box stable gem, devise is the standard choice with good community around it and the gem is stable with multiple releases and plays out well with other gems (admin gems like rails_admin, activeadmin) as it handles everything from data migrations to session controllers with few configurations.
Devise is the far more popular than others. It will fit if you need thorough customizable authentication. And it's not so hard to use so you can choose it when you need some simple authentication solution.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
out of interest - is devise usable for large scale applications (e.g. Groupon) or better write your own authentication?
yes..devise in used in many large scale applications...moreover it has nothing to do much about scaling as devise will only be used to handle signin/signout/email verification/password management etc which can be also reffered as ONE TIME CONFIGURATION.so even if there are million users...it wont affect your performance as you would be dealing with only one table users.Recenlty i used devise for an application of online students association involving more than 40k on weekly basis..thats a proof
Spree uses devise for authentication, so a lot of the big e-comerce sites are actually running on devise, we never had any issues with it with any of our clients with large user bases. I used other gems from Plataformatec as well, and they are pretty solid. Good luck with your project!
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
Can Ruby on Rails be used for developing Real Time Application (similar to like Facebook, twitter, geekList ) ? What sort of database (NoSql), REST API is required ? Node.js seems to be popular for RTA. Any insight will be greatly appreciated?
You can try with Faye, but if you want development real time application, I think Node.js is the best. :)...Sorry, I'm only beginner developer :)
Ruby and Rails can definitely be used for that (twitter was originally a Rails app). What kind of db you need will depend on the specifics of your application. I am guessing from your question that you are a beginner. In that case, I would guess this is one of your first applications and you are trying to figure out which technology to you. I suggest you pick whichever one you are most interested in. You can do the kind of application you are talking about in most modern web frameworks.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
Anybody have any good resources that might be helpful in trying to integrate the FourSquare API into a Rails app? I'm specifically looking for a good tutorial. There doesn't seem to be much out there yet. There are a few ruby gems, but they are pretty bare bones and I need a bit more hand-holding.
Here is a resource that I've found so far:
http://tedgrubb.com/
Stack Overflow won't let me include a second hyperlink, but you can also google: Foursquare ruby gem for another resource.
I have not done much work with APIs in the past, but I am very comfortable with Rails. What I need is a little better sense of exactly where all the pieces fit. A basic tutorial is what I'm looking for.
Thanks.
This helped me. It's a working example of a Rails project integrated with FourSquare:
https://github.com/pierrevalade/foursquare-rails-examples
Quimby is an excellent ruby api wrapper:
https://github.com/groupme/quimby
It was built by GroupMe.
'foursquare2' Ruby wrapper for the foursquare v2 API
Refere this : https://github.com/mattmueller/foursquare2 which is good & helped me a lot.
You can able to get more foursquare API data as user less and with authenticated user also
by using the 'foursquare2' gem.
The foursquare-API gem seems like the only one out there that supports V2 of their API and seems like the best place to start.
This isn't an answer, but this may be a start:
http://stakeventures.com/articles/2009/07/21/consuming-oauth-intelligently-in-rails
http://developer.foursquare.com/docs/oauth.html
I'm having trouble implementing a 4sq rails app myself.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
I want to build a basic Social networking site in Rails.
Can you please suggest me some ebooks for that or any web resource.
Thanks
Lovd by Less is essentially a "social-network starter kit" built on Rails.
RailSpace By Micheal Hartl. It focuses on Rails 1.1 or 1.2 but I'm sure you'll be able to get rolling with that book.
But if your looking for something specific it would be great if you could list some of your requirements.
.Practical ROR Social networking sites
I can also recommend the Practical ROR Social Networking Sites book that Sid mentioned. I've used it before and it covers pretty much everything you'd want to know about building a "social network" site in Rails.
I can do you one better. http://teachmetocode.com/screencasts/creating-a-twitter-clone-in-rails-part-1
This is the screencast for creating a Twitter clone. It deals with following/follower associations. I practically learned how to make my site using the screen cast.
Site points simply rails 2
http://www.sitepoint.com/books/rails2/
This is a great book to start learning rails with. The book focuses on building a site like Reddit/Digg.