Thanks for the info guys. Now I am getting this error coming from the author's model:
"syntax error, unexpected tASSOC, expecting ')'" This is what I have in author's class class Author < ActiveRecord::Base has_many :books def author_age Author.find :all, (:conditions => ["age = ?", params[:authors]]) end end What I want to do is to display all author's name base on the selected age. please, What is wrong with my query? Thanks Cypray -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---