We want enjoyable Rails authentication
This gem is in rapid development, currently in Beta
Ruby Versions | Rails Versions |
---|---|
Ruby 2.0.0 | Rails 4.1.* |
Ruby 2.1.5 | Rails 4.2.* |
Ruby 2.2.1 | Rails 5 beta (soon) |
Add this line to your application's Gemfile:
gem 'hello', github: 'hello-gem/hello' # latest from github while this gem is in rapid development
And then execute:
bundle install
bundle exec rails generate hello:install
bundle exec rake db:migrate
bundle exec rails generate hello:extensions # optional
bundle exec rails generate hello:views # optional
These files are generated when you install this gem.
They are simple to customize, just open them.
├── app/
│ ├── controllers/
│ │ ├── onboarding_controller.rb
│ │ └── users_controller.rb
│ ├── models/
│ │ ├── credential.rb
│ │ ├── active_session.rb
│ │ └── user.rb
│ ├── views/
│ │ ├── hello/
│ │ │ └── [...optional...]
│ │ ├── layouts/
│ │ │ └── application.html.erb
│ │ ├── onboarding/
│ │ │ └── index.html.erb
│ │ └── users/
│ │ ├── index.html.erb
│ │ └── show.html.erb
│ └── lib/
│ └── hello/
│ └── extensions/
│ └── [...optional...]
├── config/
│ └── initializers
│ └── hello.rb
└── db/
└── migrate/
├── 1_create_credentials.hello.rb
├── 2_create_accesses.hello.rb
└── 3_create_users.hello.rb
class User < ActiveRecord::Base
validates_presence_of :username
end
module Hello
module Extensions
module EmailSignUp
def success
deliver_welcome_email
deliver_confirmation_email
redirect_to root_path
end
def failure
render action: 'index'
end
end
end
end
- Home page: https://github.com/hello-gem/hello
- API Doc: https://github.com/hello-gem/hello
- Version: https://github.com/hello-gem/hello
- Trello Board: https://trello.com/b/WwNptyVM/hello-gem
- Bugs/Issues: https://github.com/hello-gem/hello/issues
- Support: http://stackoverflow.com/questions/tagged/hello
- Support/Chat:
Want to see it in action?
- Visit https://bit.ly/hellogem
- Sources at https://github.com/hello-gem/hello_demo
Tim Lucas, John Nunemaker, Dan Everton and Johan Andersson or their open source gem user_agent_parser. As well as Tobie Langel and everybody involved in BrowserScope (full list), as our device and browser detection derives from their open-source work.
Iain Hecker for his open source gem http_accept_language that helps us understand browser's favorite locales.
Brian Landau and Ryan Foster for NavLynx as well as everybody on the Bootstrap Team as we use these open source projects on our generated view code.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
Hello uses Semantic Versioning 2.0.0
Copyright 2013-2014 James Pinto – Released under MIT License
Look for these terms in the source code
"TODO", "KNOWNBUG"
- (Rails 4.0 only) Top Feature Set: Current User Feature Set: Settings Feature: Cancel Account Invalid Scenarios Validation: has_many restrict_with_error Scenario 2: User has dependent grandchildren
-
One translation missing: config/locales/*.yml
-
Test this method: Hello::Rails::Controller::AccessRestrictionConcern::ClassMethods#restrict_if_role_is
-
Generate Access Token Feature