Tuesday, July 08, 2008

Ruby on Rails Errata

@pull_list = Pull.find(:all, :include => [:book, :customer],
:conditions => ["customer_id = ?", params[:id]])

When using a condition in RoR that relies on a passed in value from a link_to function, remember to use params formal parameter name to use it.

That is all.

No comments: