Good notes posted by foliosus
RSS feed
foliosus -
November 16, 2009
3 thanks
The docs are in the base class
Look in ActionController::Base for the docs.
foliosus -
June 9, 2009
3 thanks
foliosus -
April 3, 2009
13 thanks
The docs are in AR::Base
The docs you’re looking for are in ActiveRecord::Base
foliosus -
March 21, 2009
7 thanks
Use helpers in your ActionMailer views
It’s very easy to give your mailer access to helpers:
# Let your mailer user the ApplicationHelper methods class MyMailer < ActionMailer::Base helper :application end
foliosus -
March 20, 2009
9 thanks
Use the current URL, with changes
You can use the current URL, whatever it is, with changes, as in:
# Create a link to the current page in RSS form url_for(:overwrite_params => {:format => :rss})
This can be super-helpful because it preserves any GET params (like search parameters)