To enable you to access application helpers from the ActionMailer views, try adding this:
add_template_helper(ApplicationHelper)
To your ActionMailer (just under your default :from
line).
More Related Contents:
- Ignoring time zones altogether in Rails and PostgreSQL
- ActiveRecord OR query
- ActiveRecord: size vs count
- Connecting Rails 3.1 with Multiple Databases
- How can I disable logging of asset pipeline (sprockets) messages in Ruby on Rails 3.1?
- Net::SMTPAuthenticationError when sending email from Rails app (on staging environment)
- Can someone explain collection_select to me in clear, simple terms?
- Rails: How to run `rails generate scaffold` when the model already exists?
- Rails routing to handle multiple domains on single application
- Rails config.assets.precompile setting to process all CSS and JS files in app/assets
- How to get a query string from a URL in Rails
- Rails 3 – select with Include?
- counter_cache with has_many :through
- How can I specify a local gem in my Gemfile?
- Rails 3: How to “redirect_to” in Ajax call?
- Rails 3 equivalent for periodically_call_remote
- What is the right way to override a setter method in Ruby on Rails?
- Convert HTML to word file ?
- SimpleForm without for (non model form)
- How to change a Ruby on Rails application name?
- Ruby: problem installing EventMachine under Windows 7
- How to configure Log4r with Rails 3.0.x?
- Ruby on Rails Callback, what is difference between :before_save and :before_create?
- Rails: FATAL – Peer authentication failed for user (PG::Error)
- How do I extract Rails view helpers into a gem?
- Passing variables inside rails internationalization yml file
- How to make Devise redirect after confirmation
- Rails devise: user_signed_in? not working
- rails 3 has_many :through Form with checkboxes
- Customizing Devise error messages in Rails 3?