Has something changed with how Acts_as_List interpolates the :scope
parameter in Edge? I''m finding that a :scope condition like
''album_id = #{album_id} AND parent_id IS NULL''
is being interpolated into
SELECT * FROM photos WHERE (album_id = AND parent_id IS NULL)
I know for sure album_id is being during the save process.
Any one have any clues?
James H
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Core" group.
To post to this group, send email to rubyonrails-core@googlegroups.com
To unsubscribe from this group, send email to
rubyonrails-core-unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---
the model Photo must have a attribute named album_id On Jul 3, 4:12 am, "James H." <james.herd...@gmail.com> wrote:> Has something changed with how Acts_as_List interpolates the :scope > parameter in Edge? I''m finding that a :scope condition like > > ''album_id = #{album_id} AND parent_id IS NULL'' > > is being interpolated into > > SELECT * FROM photos WHERE (album_id = AND parent_id IS NULL) > > I know for sure album_id is being during the save process. > > Any one have any clues? > > James H--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com To unsubscribe from this group, send email to rubyonrails-core-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---
It does. On Jul 2, 11:45 pm, Ken <zgos...@gmail.com> wrote:> the model Photo must have a attribute named album_id > > On Jul 3, 4:12 am, "James H." <james.herd...@gmail.com> wrote: > > > Has something changed with how Acts_as_List interpolates the :scope > > parameter in Edge? I''m finding that a :scope condition like > > > ''album_id = #{album_id} AND parent_id IS NULL'' > > > is being interpolated into > > > SELECT * FROM photos WHERE (album_id = AND parent_id IS NULL) > > > I know for sure album_id is being during the save process. > > > Any one have any clues? > > > James H--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com To unsubscribe from this group, send email to rubyonrails-core-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---