$ rails g model User
When using Rails 3.0 and later we already get jquery-rails for free. Look in the gemfile and you'll see:
You can view the full documentation here: source: https://github.com/indirect/jquery-rails
#Simple Authentication with Bcrypt
This tutorial is for adding authentication to a vanilla Ruby on Rails app using Bcrypt and has_secure_password.
The steps below are based on Ryan Bates's approach from Railscast #250 Authentication from Scratch (revised).
You can see the final source code here: repo. I began with a stock rails app using
rails new gif_vault
rubycas client configuration options in config/envirement.rb
[more details] (https://github.com/rubycas/rubycas-client)
# enable detailed CAS logging cas_logger = CASClient::Logger.new(::Rails.root+'/log/cas.log') cas_logger.level = Logger::DEBUG CASClient::Frameworks::Rails::Filter.configure( :cas_base_url => "https://cas.example.foo/", :login_url => "https://cas.example.foo/login",