Skip to content

ActiveResource find() return nil using :params #35

kasperite opened this Issue Aug 19, 2012 · 0 comments

1 participant



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.