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:

students_path) %>

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

Thanks for any suggestions.

View this message in context:
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:

<< 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