Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Base Rails application with Devise, Bootstrap, cancan

branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

README.md

Rails Bootstrap Base Application

Overview

Rails Bootstrap Base App was made as a quick way to DRY up the development process for projects needing some basic web application functionality. It includes a basic design, authentication, authorization and some seed data. It also started as an attempt to integrate Twitter's Bootstrap HTML5 kit with Rails. The goal would be to eventually extract the entire project as a gem.

Features

  • Layout - Twitter's Bootstrap, twitter/bootstrap
  • Authentication - Devise, platformatec/devise
  • Authentication Token - uses the Devise auth token feature, for API access
  • Authorization - Canan, ryanb/cancan
  • Feedback - Simple feedback application to test API and secure pages
  • Seed data - Seed data to kick start users for authentication and authorization.

Installation

  • Clone the git repository
  • Create your database
  • Update the database.yml with correct credentials
  • rake db:migrate
  • rake db:seed
  • rails s

Usage

curl -X GET "http://localhost:3000/users/1.json" -u "admin@domain.com:secret"
  • Then use auth token to make secure request rather than using username and password each time. Auth token will remain static unless changed in the user model.
curl -X GET "http://localhost:3000/feedbacks/1.json?auth_token=<authentication_token>"

Todo

See issues - rails-bootstrap-base-app/issues

Something went wrong with that request. Please try again.