You can use this project as a starting point for a Rails web application. It's TDD ready, and has some great defaults for styles and layout.
Check out the demo you can login as an administrator with: [email protected] / administrator
- Rails 4
- Mongoid as database
- Devise with OmniAuth for user management and authentication
- CanCan for user access control
- Haml for default views
- Simple Form for forms
- Unicorn UI for CSS styling with default scripts and form helpers
- Clone this repo
- Edit
db/seed.rb
to customize admin user settings then runrake db:seed
to create admin user - Edit
config/initializers/devise.rb
to customize your omniauth providers (set env vars or disable, etc) - Edit
config/config.yml
to customize your application settings, they will be available viaAppConfig
object within your app, e.g.AppConfig.default_role
- Run with
unicorn -p 2222
and browse athttp://localhost:2222
By default, your form fields will be wrapped using simple form, however there are a few custom wrappers you can use as well:
Select Fields
= simple_form_for @challenge do |f|
.field
= f.label 'Challenge Type'
= semantic_select :type, f, ['option 1', 'option 2'], default: 'None'
.field
= f.submit t('submit')
Checkboxes or Radio Fields
= f.input :remember_me, as: :boolean, wrapper: :semantic_checkbox