Updated views for Rails 4 activerecord api.