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

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -