":id => 1" or {:id =>1}
On Mar 16, 6:08 am, "\"Wolas!\"" <[email protected]> wrote:
> class Event < ActiveRecord::Base
> default_scope :conditions => {:id = 1}
> end
>
> just a guess
>
> On Mar 16, 4:54 pm, David Beckwith <[email protected]> wrote:
>
> > class Event < ActiveRecord::Base
> > default_scope :conditions => "id = 1"
> > end
>
> > Event.new
>
> > undefined method `1=' for #<Event:0xb68ce02c>
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---