Hi,
I want to write a if statement script, what it will do is if the phone
number field exist, then print the phone number, otherwise leave it
blank.

I have tried this:

<% if @user.phone_work != 0 %>Work: <%= @user.phone_work -%>
<% else %>

<% end %>

it's not work, anyone can advice please?

-- 
Posted via http://www.ruby-forum.com/.