On Jun 18, 9:57 pm, Colin Law <clan...@googlemail.com> wrote:
> On 18 June 2012 21:05, cyber c. <li...@ruby-forum.com> wrote:
>
> > Hi,
>
> > I have a DB with table TABLENAME, column COLUMN and an active resource
> > client trying to connect to the DB. When i do
>
> > Tablename.find(:all) => i get all the entries from the table
> > But Tablename.exists?(:column => value) always returns false
>
> Could you point me to some documentation for exists? that shows
> passing a column value other than an id? I cannot find any reference
> to that.
>

http://apidock.com/rails/ActiveRecord/FinderMethods/exists%3F

has various forms exists? accepts

Fred

-- 
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