Thank you all in advance for your help with this.
Windows XP Pro (Development only)
Plugins: file_column, userstamp
I have a user table per the salted_hash_login generator. I have an
orders table that has a column named created_by that is updated by the
userstamp plugin. I am trying to retrieve all of the orders for a single
user (the one logged in) and am not sure how to do it. When I use this
code in my order model it works:
:conditions => “created_by = 1”,
:order => “created_on desc”)
I want to create dynamic queries and need to use the created_by column
to do it. I appreciate any help you all can give me. Also, in order to
not ask so many newbie questions, I have purchased a few books: Agile
Web D. with Rails, Rails Recipes, and the O’Reilly (beta) book
Rough Cuts: Ruby on Rails - Up and Running. Can anyone point me in the
direction of other good books? Thanks.