Ruby on Rails Discussions
Problems with Find
rubyonrails-talk
Daniel_Weinand1
(Daniel Weinand)
January 12, 2007, 3:56pm
1
try this:
@trabajador
= Trabajador.find(:all, :conditions =>["persona_id = ?", params[:id]])
HTH
Related topics
Topic
Replies
Views
Activity
find(:all, :conditions => ['loja_id in (?)', Arrau]
rubyonrails-talk
0
149
April 18, 2007
Help with :conditions argument using find method
rubyonrails-talk
0
105
September 11, 2007
Couldn't find User with ID=1
rubyonrails-talk
0
82
September 16, 2007
How can I write this find with AR?
rubyonrails-talk
0
113
February 21, 2007
:include with conditions.
rubyonrails-talk
0
88
January 16, 2007