Posted By

brandonjp on 02/02/11


Tagged

rails ruby example conditional if ifthen


Versions (?)

Ruby / Rails - example of if then statement... in a view file *.html.erb:


 / Published in: Ruby
 

if then statement... in a view file *.html.erb:

  1. <td><% if color.current == "1" %>Yes<% end %></td>

Report this snippet  

You need to login to post a comment.