FormHelper

<%= form_for @post do |f| %> <%= @error %> <%= f.text_field :body %>

Buttons

<%= f.submit_with_popup 'submit' %> <%= f.submit_with_popup 'submit (with popup_features)', popup_features: 'width=300,height=200' %> <%= f.submit_with_popup 'submit (with confirm)', data: { confirm: 'Are you sure?' } %> <%= f.button_with_popup 'button' %>
<%= hidden_field_tag :view, @view %> <% end %>