2010-04-09 23:13:34 +02:00
|
|
|
|
2010-01-05 16:01:16 +01:00
|
|
|
===============================================================================
|
2009-10-23 10:13:23 -02:00
|
|
|
|
|
|
|
Some setup you must do manually if you haven't yet:
|
|
|
|
|
2010-01-06 14:00:50 +01:00
|
|
|
1. Setup default url options for your specific environment. Here is an
|
2010-01-05 16:01:16 +01:00
|
|
|
example of development environment:
|
2009-10-23 10:13:23 -02:00
|
|
|
|
2010-01-05 16:01:16 +01:00
|
|
|
config.action_mailer.default_url_options = { :host => 'localhost:3000' }
|
2009-10-23 10:13:23 -02:00
|
|
|
|
2010-04-29 05:38:00 +08:00
|
|
|
This is a required Rails configuration. In production it must be the
|
2010-01-05 16:01:16 +01:00
|
|
|
actual host of your application
|
2009-11-06 09:33:18 -02:00
|
|
|
|
2010-02-17 16:37:27 +01:00
|
|
|
2. Ensure you have defined root_url to *something* in your config/routes.rb.
|
|
|
|
For example:
|
2009-10-23 10:13:23 -02:00
|
|
|
|
2010-02-17 16:37:27 +01:00
|
|
|
root :to => "home#index"
|
2009-10-23 10:13:23 -02:00
|
|
|
|
2010-04-09 23:13:34 +02:00
|
|
|
3. Ensure you have flash messages in app/views/layouts/application.html.erb.
|
|
|
|
For example:
|
2010-04-09 09:50:45 -07:00
|
|
|
|
|
|
|
<p class="notice"><%= notice %></p>
|
|
|
|
<p class="alert"><%= alert %></p>
|
|
|
|
|
2010-01-05 16:01:16 +01:00
|
|
|
===============================================================================
|