RedBase
RedBase is a ruby on rails engine which provides a very basic web application to use with other ruby on rails applications.
Dependencies
-
Add this to your Gemfile:
group :development, :test do
gem 'rspec-rails', '~> 3.0.0.beta'
gem "capybara"
gem "factory_girl_rails", "~> 4.0", :require => false
gem "database_cleaner"
gem "email_spec"
gem "cucumber-rails", :require => false
gem "launchy"
end
Installation
-
Add this to your ‘config/environments/development.rb`
“‘ruby
config.action_mailer. = { :host => 'localhost:3000' }
“‘
In production, :host should be set to the actual host of your application.
-
Ensure you have flash messages in app/views/layouts/application.html.erb.
For example (Only if you want to change default layout):
”‘html
<p class="notice"><%= notice %></p>
<p class="alert"><%= alert %></p>
”‘
-
Perfrom “rails generate red_base:install_all” to copy necessary files.
-
Perform “rake db:migrate” and enjoy RedBase