Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

ActiveResource find() return nil using :params #35

Open
kasperite opened this Issue · 0 comments

1 participant

@kasperite

Hi

I am trying to retrieve a single resource from a REST api app using ActiveResource. The code is like this:

Page.find(:one, :params => {:draft => false, title => "blah"}) => nil # But the entry doest exists in page table

The combination of draft and title is unique in the Pages table btw. I have tried different solution using :conditions instead of :params but still. Has anyone seen similar problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.