% if @customer_configuration.value.present? @total_count = @customer_configuration.value.count end %> <%= simple_form_for(@customer_configuration, :html=>{:id=>"frm_create_customer_configuration",:class=> "form-horizontal form-label-left"}, :url=>@url_path) do |f| %> Edit Configuration<%= f.submit :Save , class: 'btn btn-success btn-sm pull-right'%> Parameter* <%= f.input :configuration_parameter, label:false, input_html: { class:'form-control', :disabled=>true, :value=>f.object.configuration_parameter.parameter } %> Add Options <% if @total_count.present? and @total_count > 0 count = 1 %> <% @customer_configuration.value.each do |conf| %> <% count += 1 %> <% end %> <% end %> <% end %>