Created
January 8, 2011 00:44
-
-
Save antillas21/770379 to your computer and use it in GitHub Desktop.
Files to edit after creating a Rails app with template: http://railswizard.org/d87652cae598fe1b11e1.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# in order to complete Devise initial requirements: | |
# app/views/layout/application.html.erb | |
<% flash.each do |key, value| %> | |
<div class='flash' id='<%= key %>'> | |
<%= value %> | |
</div> | |
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# config/application.rb | |
require "mongoid/railtie" | |
# don't forget to include inside the application module configuration: | |
config.generators do |g| | |
g.orm :mongoid | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# config/initializers/devise.rb | |
require 'devise/orm/mongoid' | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# features/support/env.rb | |
require 'mongoid' | |
Before do Mongoid.master.collections.reject { |c| c.name == 'system.indexes'}.each(&:drop) | |
end | |
# comment this whole block | |
#if defined?(ActiveRecord::Base) | |
# begin | |
# require 'database_cleaner' | |
# DatabaseCleaner.strategy = :truncation | |
#rescue LoadError => ignore_if_database_cleaner_not_present | |
#end | |
#end | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# in order to complete Devise initial requirements: | |
# it's better to do a per environment configuration | |
# config/environments/[development|test].rb | |
config.action_mailer.default_url_options = { :host => 'localhost:3000' } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# in order to complete Devise initial requirements: | |
# config/routes.rb | |
root :to => "home#index" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# spec/spec_helper.rb | |
# Remove this line if you're not using ActiveRecord or ActiveRecord fixtures # config.fixture_path = "#{::Rails.root}/spec/fixtures" | |
# If you're not using ActiveRecord, or you'd prefer not to run each of your | |
# examples within a transaction, remove the following line or assign false | |
# instead of true. | |
# config.use_transactional_fixtures = true | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment