ref: master
plugins/custom_routes/views/custom_routes_plugin_admin/_form.html.erb
<%= error_messages_for :route %> <%= labelled_form_for :route, url: url_for(action: action) do |f| %> <%= hidden_field_tag(:route_id, route.id) %><%= required f.text_field(:source_url) %><%= f.text_field(:target_url) %><%= f.check_box(:enabled, {}) %><%= button_bar do %> <%= button(:back, _('Go back'), { :action => 'index' }) %> <%= submit_button(:save, _('Save')) %> <% end %> <% end %>