rubyonrailsin

A Ruby and Rails talk

Sunday, March 28, 2010


Re: [Rails] displaying model data in a form

by rubyonrailsin 0 comments

Tag


Share this post:
Design Float
StumbleUpon
Reddit

On 28 March 2010 07:38, Constantin <constantin@gmail.com> wrote:
> I have an edit form with multiple input fields, however I would like
> some of the object data to be displayed just as reference data, not in
> an actual input field. How do I include simple object data in a form,
> without including it in an input field?

<%= @some_object.fieldname %>
Unless I misunderstand the question.

This is such a basic question that I suspect you would benefit from
reading the guides at http://guides.rubyonrails.org/.

Colin

--
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