[Rails] How to use a parameter with a string?
softwareengineer 99
softwareengineer99 at yahoo.com
Thu Jan 26 02:44:00 GMT 2006
Thanks Eric for your reply.
Eric Goodwin <ruby at ericgoodwin.com> wrote: Hey,
You probably want something like this
def self.home_categories (portal_id)
find(:all, :conditions => [ "portal_id=?", portal_id ] )
end
Eric
---------------------------------
Bring words and photos together (easily) with
PhotoMail - it's free and works with Yahoo! Mail.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060126/f62396b4/attachment.html
More information about the Rails
mailing list