use helper methods in form view
This commit is contained in:
		| @@ -11,10 +11,10 @@ | ||||
|     </div> | ||||
|   <% end %> | ||||
|  | ||||
|   <% [:name, :email, :short_name, :offer_date, :order_date].each do |prj_attrib| %> | ||||
|   <% project_form_fields.each do |attrib| %> | ||||
|   <div> | ||||
|     <%= form.label prj_attrib, style: "display: block" %> | ||||
|     <%= form.text_field prj_attrib %> | ||||
|     <%= form.label attrib, style: "display: block" %> | ||||
|     <%= form.text_field attrib, value: project.send(attrib) %> | ||||
|   </div> | ||||
|   <% end %> | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Stefan Tollkühn
					Stefan Tollkühn