Title / Description
Code <div class="form_row"> <% form_tag '/contact/create' do %> <fieldset> <legend><%= @title %></legend> <p><label for="contact_name">Name</label> <%= text_field :contact, :name %> <%= error_message_on(@contact, :name) %></p> <p><label for="contact_email">Email</label> <%= text_field :contact, :email %> <%= error_message_on(@contact, :email) %></p> <p><label for="contact_phone">Phone</label> <%= text_field :contact, :phone %> <%= error_message_on(@contact, :phone) %></p> <p><label for="contact_message">Message</label> <%= text_field :contact, :message %> <%= error_message_on(@contact, :message) %></p> <p><%= submit_tag 'Submit', :class => "submit" %></p> </fieldset> <% end %> </div>
Author
Highlight as C C++ CSS Clojure Delphi ERb Groovy (beta) HAML HTML JSON Java JavaScript PHP Plain text Python Ruby SQL XML YAML diff code