Hi there,
 I try to make simple search items in database, but unfortunately, I
cant to get the results... always. I am trying to search the items with
using of following command:

@data = Data.find(:all, :conditions => { :name => 'abcd' })

But unfortunately, I am not getting any result... Of course, the item
with the name 'abcd' in database exist... The weird is this, that when I
try to edit the command:

 @data = Data.find(:all, :conditionsxxx => { :name => 'abcd' })

And I not getting any error message... so I don't now, where could be
error...

And when I set up this command:

@data = Data.all

everything work...


So I am confused, where is fault... I'll be happy for every help!
Thanks, M.

-- 
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 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to