README.md in ucb_rails-0.0.13 vs README.md in ucb_rails-0.0.14
- old
+ new
@@ -1,30 +1,24 @@
-# UCB Rails
+# UCB Rails (Rails 4 Compatible, see master branch for Rails 3)
-[![Gem Version](https://badge.fury.io/rb/ucb_rails.png)](http://badge.fury.io/rb/ucb_rails)
-[![Build Status](https://travis-ci.org/stevedowney/ucb_rails.png)](https://travis-ci.org/stevedowney/ucb_rails)
-[![Coverage Status](https://coveralls.io/repos/stevedowney/ucb_rails/badge.png?branch=master)](https://coveralls.io/r/stevedowney/ucb_rails?branch=master)
-[![Code Climate](https://codeclimate.com/github/stevedowney/ucb_rails.png)](https://codeclimate.com/github/stevedowney/ucb_rails)
-
Get a jump start on your Rails project at UCB. Includes:
* CalNet authentication with [omniauth-cas](https://github.com/dlindahl/omniauth-cas)
* LDAP integration with [ucb_ldap](https://rubygems.org/gems/ucb_ldap)
* includes several other gems including:
- * [bootstrap-view-helpers](https://github.com/stevedowney/bootstrap-view-helpers)
+ * [bootstrap-view-helpers](https://github.com/ucb-ist-eas/bootstrap-view-helpers/tree/rails4)
* [user_announcements](https://github.com/stevedowney/user_announcements)
* [rails_environment](https://github.com/stevedowney/rails_environment)
## Installation
Add it to your Gemfile
```ruby
gem 'ucb_rails'
-
-# bleeding edge
-gem 'ucb_rails', git: 'https://github.com/stevedowney/ucb_rails'
+# 'bootstrap-view-helpers' needs to be added as well
+gem 'bootstrap-view-helpers', github: 'ucb-ist-eas/bootstrap-view-helpers', branch: 'rails4'
```
From the command line, install the `ucb_rails` gem:
```sh
@@ -47,13 +41,23 @@
Remove superseded files:
```sh
rm public/index.html
-rm app/views/layouts/application.html.erb
```
+Add includes to application stylesheet
+
+```ruby
+ *= require bootstrap-datepicker3
+```
+
+Add includes to application javascript
+```ruby
+//= require bootstrap-datepicker
+```
+
Restart your server and point your browser to:
```
http://<your_app>/ucb_rails
```
@@ -66,6 +70,12 @@
## View Helper Methods
* `current_ldap_person`
* `logged_in?`
+## Upgrading From An Older Version
+If you're upgrading from a version older than March 2015, you'll need to run an extra migration in the project that contains the ucb_rails gem. This will add an `alternate_email` column to your users table.
+
+```
+cp ucb_rails/dummy/db/migrate//20150318234744_add_alternate_email_to_users.rb [YOUR_PROJECT_ROOT]/db/migrate
+```