starterkits/rails3-starterkit-mongoid
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Repository files navigation
== Setup
On OSX dev machine (includes rb-fsevent)...
rails new quickstartmongo --skip-active-record --skip-test-unit
rails g mongoid:config
rails g rspec:install
rails g cucumber:install --rspec --spork
gem install rb-fsevent
guard init spork
guard init rspec
guard init cucumber
# resque
create config/initializers/resque.rb
add to routes.rb >>> mount Resque::Server.new, :at => "/resque"
# setup devise
rails g devise:install
rails g devise User
rails g devise:views
Output from devise:install...
===============================================================================
Some setup you must do manually if you haven't yet:
1. Setup default url options for your specific environment. Here is an
example of development environment:
config.action_mailer.default_url_options = { :host => 'localhost:3000' }
This is a required Rails configuration. In production it must be the
actual host of your application
2. Ensure you have defined root_url to *something* in your config/routes.rb.
For example:
root :to => "home#index"
3. Ensure you have flash messages in app/views/layouts/application.html.erb.
For example:
<p class="notice"><%= notice %></p>
<p class="alert"><%= alert %></p>
===============================================================================