UCB Rails

Get a jump start on your Rails project at UCB. Includes:

Installation

Add it to your Gemfile

gem install 'ucb_rails'

From the command line:

$ bundle install
$ rails g ucb_rails:install

Restart your server and point your browser to:

http://<your_app>/ucb_rails

You'll be able to CalNet authenticate. Successful authentiation will redirect you to root_path. ucb_rails defines root_path but the definition in your host app (if any) will take precedence.

View Helper Methods

  • current_ldap_person
  • logged_in?