added ind config/environments/development.rb: config.action_mailer.default_url_options = { :host => 'localhost:3000' }
routes.rb and app/views/layouts/application.html.erb
in config/application.rb and added this line:config.assets.initialize_on_precompile = false