Undefined method error appears in erb but not haml

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. I believe the culprit is
this line which I am converting incorrectly:

#fields << render_sequence_nav(sequence_info, students_path)

I converted it to this:
<%

fields
<<
render_sequence_nav(sequence_info,
students_path) %>

But Rails says
" syntax error, unexpected ‘<’, expecting kEND
;
fields

"
Thanks for any suggestions.

View this message in context:
http://old.nabble.com/undefined-method-error-appears-in-erb-but-not-haml-tp27734792p27734792.html
Sent from the RubyOnRails Users mailing list archive at Nabble.com.

On 28 February 2010 13:00, JohnMerlino [email protected] wrote:

I converted it to this:
<%

fields
<< render_sequence_nav(sequence_info,
<%= render_sequence_nav(sequence_info, students_path) %>

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs