Ruby inside html-erb files issue -
i putting inside erb file
<% @user_friend.each |friends| -%> <%= content_tag :p, :class => "popin" %> friends.email <% end %> <% end -%>
and getting error message :
compile error /var/www/gitorious/app/views/campaigns/new.html.erb:25: syntax error, unexpected ')' ..._tag :p, :class =>"popin" ).to_s); @output_buffer.concat ... ^ /var/www/gitorious/app/views/campaigns/new.html.erb:28: syntax error, unexpected kend, expecting ')' ; end ...
could explain how can resolve ?
friends.email
ruby code, need below:
<% @user_friend.each |friends| -%> <%= content_tag :p, friends.email,:class =>"popin" %> <% end -%>
Comments
Post a Comment