一个使用 Devise、CanCan、OmniAuth 和 Twitter Bootstrap 的 Rails 4.0 应用程序示例。
一个使用 Devise、CanCan、OmniAuth 和 Twitter Bootstrap 的 Rails 4.0 应用程序示例。
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.
gem install railsrails new myapp --skip-bundle -m https://raw.github.com/alex-klepa/rails4-bootstrap-devise-cancan-omniauth/master/rails4-bootstrap.rbcd myappdb/seed.rb to customimze admin user settings then run rake db:seed to create admin userconfig/initializers/devise.rb to customize your omniauth providers:config.omniauth :facebook, ENV['FACEBOOK_KEY'], ENV['FACEBOOK_SECRET'], scope: 'email,user_birthday,read_stream'
config.omniauth :twitter, ENV['CONSUMER_KEY'], ENV['CONSUMER_SECRET']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
zeus startzeus sbundle exec guard暂无开放 Issues,或尚未同步最近议题。