On May 14, 10:10 pm, David <furb...@gmail.com> wrote:
> Or model_name.read_attribute(field_name)
>
> However if you multiple fields like that, it sounds like you need a
> has_many relationship.
>
> has_many :field_names
>
> object.field_names.each do |field_mame|
>   # do something
> end
>
> On May 14, 2:51 pm, Marnen Laibow-Koser <li...@ruby-forum.com> wrote:
>
>
>
>
>
> > [Please quote when replying]
>
> > Viorel wrote:
> > > Thank you Michel! I works!
>
> > Great.  Now normalize your database schema to get rid of those repeating
> > fields.
>
You are absolutely right, both of you. It is not my schema, but I hope
that your answers will persuade those responsible. Than you!



> > Best,
> > --
> > Marnen Laibow-Koserhttp://www.marnen.org
> > mar...@marnen.org
> > --
> > 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 rubyonrails-t...@googlegroups.com.
> > To unsubscribe from this group, send email to 
> > rubyonrails-talk+unsubscr...@googlegroups.com.
> > 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 rubyonrails-t...@googlegroups.com.
> To unsubscribe from this group, send email to 
> rubyonrails-talk+unsubscr...@googlegroups.com.
> 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 rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to