didn't find it in docs, found it looking for where I already did serialization by searching. It's under hobofields/lib/ hobo_fields.rb. Would just try declaring your field :serialized instead of :text at first.
On Jun 1, 12:13 pm, blueHandTalking <[email protected]> wrote: > Kevin, > > Thanks, helps a lot to know that it is existing problem. > > Checked cookbook, didn't mention :serialized under HoboField. > Where is there some documentation on this? > > Jet > > On Jun 1, 11:07 am, kevinpfromnm <[email protected]> wrote: > > > Oh... yeah, serialization doesn't fully work on hobo. least last time > > I used it I had to override the setter method. > > > though, looks like there's now a :serialized HoboField type now... > > > On May 30, 6:47 pm, blueHandTalking <[email protected]> wrote: > > > > I have a payment_notification.rb, which is a hobo_model, with > > > a field: > > > > params :text > > > > ...and... > > > > serialize :params > > > > In the payment_notifications_controller, > > > > a 'create' method with: > > > > PaymentNotification.create!(:params => params, ...(other fields > > > deleted) ) > > > > This raises a > > > > TypeError (can't convert HashWithIndifferentAccess into String) > > > > error. Only fails when the :params => params is in the create > > > parameters. > > > > Anyone else have problem with this in Hobo? Or is this an illegal > > > construct/bad name? > > > > Jet > > -- You received this message because you are subscribed to the Google Groups "Hobo Users" 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/hobousers?hl=en.
