Skip to content
Simple authentication generator for Rails 4.1
Ruby JavaScript CSS
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib Version bump
test Updated dependencies and removed the turn gem
.gitignore Ignore
.travis.yml Added Ruby 2.1.1 for Travis CI
Gemfile First commit
Gemfile.lock
MIT-LICENSE Updated license
README.md Updated README
Rakefile Cleaned up Rakefile
authpro.gemspec Updated summary and description

README.md

Authpro

Code Climate Build Status

Authpro is a simple authentication generator for Rails 4.1 It:

  • Gives you sign up, log in, remember me & password reset functionality
  • Has no hidden code, special super classes or mixins
  • Has no configuration.

Authpro assumes you want:

  • User as the model
  • Email for login
  • Erb for views. This might be configurable in the future because I like writing views using Slim.

However, you can easily change the code that Authpro generates if you want to. It's just simple Ruby / Rails code.

To be honest you really should change the generated code. Most of the code in the user model should be moved to a different place. You can use the new concerns functionality in Rails 4. More information about concerns can be found here.

If concerns concerns you, you can always extract the code into Service Objects. More info about Service Objects can be found here.

Installation

Add this line to your application's Gemfile:

gem 'authpro'

And then execute:

$ bundle
$ rails generate authpro
$ rake db:migrate
$ rails server

Open browser:

$ open http://localhost:3000

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request
Something went wrong with that request. Please try again.