@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.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment