rubyonrailsin

A Ruby and Rails talk

Tuesday, March 23, 2010


Re: [Rails] Re: Displaying a nested field as a label

by rubyonrailsin 0 comments

Tag


Share this post:
Design Float
StumbleUpon
Reddit

On 23 March 2010 17:01, andrew <andrew.ggroups@gmail.com> wrote:
> Ahhhh!  a.class = formbuilder.  I thought it was a Comments class.
> Now I know what to look up....  I guess my question after all is there
> any way to "extract" a data value from a field within a formbuilder?
> (if I got my terminology right)

a.object.text
(although I'm using Formtastic "SemanticFormBuilder" objects here, so
have fingers crossed the method is the same - dumping "a.methods"
would help you a little if 'object' doesn't work...)

--
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-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment

Subscribe feeds via e-mail

Blog Archive