Skip to content

Instantly share code, notes, and snippets.

@victorcreed
victorcreed / _form.html.erb
Last active December 27, 2015 18:09
really lazy and dont want to create mess in VIEW, so i used splat to passing dynamic parameters
<%= simple_form_for @job, html: { class: "form-horizontal" } do |f| %>
<% new_and_edit_form_fields.each do |column| %>
<%= f.input *column %>
<% end %>
<% end %>