.span8 = form_tag(develop_manage_path(params[:id]), method: :put) = field_set_tag "Table[#{params[:table_name]}]" do = hidden_field_tag 'table_name', params[:table_name] - columns = RailsAdminContent::Client.conn.origin_query("DESC #{params[:table_name]}").each - RailsAdminContent::Client.conn.origin_query("SELECT * FROM #{params[:table_name]} WHERE id = #{params[:id]}").each[0].map do |key,value| - if key == "id" = hidden_field_tag :id, value - else = label_tag "field[#{key}]", key = content_field(columns.select{|c| c["Field"] == key }.first ,value) .controllers .span2 = submit_tag 'Save', class: 'btn btn-primary' .span2 = link_to 'Back', :back, class: 'btn'