Thank you Michel! I works! On May 14, 9:36 pm, Michael Pavling <[email protected]> wrote: > On 14 May 2010 19:24, Viorel <[email protected]> wrote: > > > My problem is that ModelName has no field named field_name, it have > > fields like field01, field02,...,field09. So, how do I transform a > > string in a field name? > > puts ModelName.send(field_name) > > -- > 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 > athttp://groups.google.com/group/rubyonrails-talk?hl=en.
-- 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.

