Maybe I'm not understanding what you're sending as a val for @field, because if it's a string of the model attribute name, it should work:
$ script/console >> klass = Klass.find(:first) => #<Klass ...> >> klass.foo => "bar" >> klass["foo"] => "bar" >> klass["foo"] = "biz" => "biz" >> klass["foo"] => "biz" >> klass.foo => "biz" Jeff On Jul 13, 9:58 am, Dan Berger <[email protected]> wrote: > Jeff Burlysystems wrote: > > Another alternative: > > > ... > > @meta[field] = content > > ... > > > Jeff > > > On Jul 13, 9:32 am, Dan Berger <[email protected]> > > I tried that one, and it didn't work ... error message said Ruby > couldn't translate {field} into an integer, even though I wanted a > string.... But thanks. > -- > Posted viahttp://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 -~----------~----~----~----~------~----~------~--~---

