[Rails] Re: Hash#merge in a controller

2009-05-10 Thread Julian Leviston
On 09/05/2009, at 9:58 PM, Alberto Santini wrote: > > Hi all! > > I have a Place model with a description attribute and a Service model > with an itinerary attribute. An itinerary is simply a string with > dash-seprated place descriptions. In my > services_controller.rb#create i > have the

[Rails] Re: Hash#merge in a controller

2009-05-09 Thread Alberto Santini
Mistery solved: that wasn't an Hash, but an HashWithIndifferentAccess, which #merge method doesn't accept any block :-) A .to_hash was sufficient :-) -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscri