I create my forms using simple_form, and all this is good, except when I want to just display some text and not show an input window of any type. So I need to show the shortcut, as well as the displayed text, to go with it, for example. Name: Chris, where βNameβ is the shortcut and βChrisβ is the text on the screen.
So imagine I have simple_form:
=simple_form_for @property do |f| =f.display_field "Contact Name", "Chris" =f.input :customer_reference =f.input :premises_description =f.input :po_number, :label=>"Purchase Order Number"
"f.display_field" is a compiled method, but I understand that the method will look the way I need. All he would do was show a label and some text next to it. What is the easiest way to achieve this?
Greetings Chris
source share