Hey all, All I wanted to do was convert a haml file to erb. After doing so, i get an undefined method `render_sequence_nav' error message. Even though no such error happened when it was in haml format. In the haml file, there is this line:
#fields << render_sequence_nav(sequence_info, students_path)
fields << render(:partial => "resources_partials/sequence/nav", :locals => sequence_info.merge({:cancel_url => {:controller => :dashboard}}))
= render_form { fields }
If I remove # from #fields, it will return undefined method render_sequence_nav in haml. So obviously that is needed. However, I can't recreate that in erb. If I add the hash, it grays out the line:
<% #fields << render_sequence_nav(sequence_info,
students_path) %>
<% fields << render(:partial =>
"resources_partials/sequence/nav", :locals =>
sequence_info.merge({:cancel_url => {:controller => :dashboard}})) %>
<%= render_form { fields } %>
<% end %>
Any ideas on how to address this? Thanks.