Displaying model data in a form

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?
Thanks.

On 28 March 2010 07:38, Constantin [email protected] 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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs