Frederick Cheung wrote:
> On Jun 4, 1:19�pm, Bob Mundane <[email protected]>
> wrote:
>> You have a nil object when you didn't expect it!
>> The error occurred while evaluating nil.macro
>>
>> Does the :include option have changed its behaviour?
>>
> It did change slightly. I suspect that you originally got lucky: your
> include clause is
> 
> [[:forfait => :vehicule] => :client]
> 
> which ruby parses as
> [{[{:forfait=>:vehicule}]=>:client}]
> 
> which isn''t the type of structure that rails is expecting (but
> obviously happened to work in the past). It looks like what you should
> be saying is
> 
> {:forfait => {:vehicule => :client}}
> 
> Fred

Thanks a lot Fred ! It's always sensible when somebody gives you the 
solution ;-)
Have a nice day
-- 
Posted via http://www.ruby-forum.com/.

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

Reply via email to