I am using formatastic
in a HAML form.
- semantic_form_for @company do |f|
- f.inputs do
= f.input :description
= f.input :type
= f.input :industry
= f.input :hq
= f.input :products
= f.input :subsidiaries
= f.input :employees
= f.input :revenue
= f.input :net_income
= f.buttons
When ever I try to save an existing record I get an error.
Template is missing
Missing template companies/update.erb in view path app/views
I recently migrated the form from ERB to HAML. The form used to work in ERB.
How do I fix this issue?
Edit
I resolved the issue. It is not related to HAML or Formtastic. I was passing a block to the save
method and that caused the issue. See my answer down below for details.