UCB Rails

Gem Version Build Status Coverage Status Code Climate

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

Installation

Add it to your Gemfile

gem 'ucb_rails'

# bleeding edge
gem 'ucb_rails', git: 'https://github.com/stevedowney/ucb_rails'

From the command line, install the ucb_rails gem:

bundle install
rails g ucb_rails:install

Run installers for included gems:

rails generate user_announcements:install
rails generate simple_form:install --bootstrap

Run migrations:

rake db:migrate

Remove superseded files:

rm public/index.html
rm app/views/layouts/application.html.erb  

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?