Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
R

rails4-bootstrap-devise-cancan-omniauth

> 编程语言
Open source

An example Rails 4.0 app with Devise, CanCan, OmniAuth and Twitter Bootstrap.

186 stars0 likes1 views
WebsiteGitHub

About

An example Rails 4.0 app with Devise, CanCan, OmniAuth and Twitter Bootstrap.

Rails 4.0 App with Mongoid, Devise, CanCan, OmniAuth and Twitter Bootstrap (TDD ready)


You can use this project as a starting point for a Rails web application. It requires Rails 4 uses Mongoid as database, Devise/OmniAuth for user management and authentication, CanCan for user access control, and Twitter Bootstrap for CSS styling.

Rails 4.0 Bootstrap Demo App

How to use

  • Install rails 4: gem install rails
  • Generate new rails app from template:
rails new myapp --skip-bundle -m https://raw.github.com/alex-klepa/rails4-bootstrap-devise-cancan-omniauth/master/rails4-bootstrap.rb
  • cd myapp
  • Edit db/seed.rb to customimze admin user settings then run rake db:seed to create admin user
  • Edit config/initializers/devise.rb to customize your omniauth providers:
ruby
config.omniauth :facebook, ENV['FACEBOOK_KEY'], ENV['FACEBOOK_SECRET'], scope: 'email,user_birthday,read_stream'
config.omniauth :twitter, ENV['CONSUMER_KEY'], ENV['CONSUMER_SECRET']
  • Edit config/config.yml to customize your application settings, they will be avaliable via AppConfig object within your app, e.g. AppConfig.default_role

##Test-driven development

  • In 1st console start zeus: zeus start
  • In 2nd start rails server: zeus s
  • In 3rd start guard: bundle exec guard

Links

Devise

OmniAuth

CanCan

Twitter Bootstrap

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Ruby

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言