From: Shandy Nantz Date: 2008-03-21T23:41:16+09:00 Subject: Re: if-less if statements > <%= in_place_editor_field 'user','w_phone', > check_red_style(@user.w_phone), :cols=>20%> > > > In the application_helper.rb file: > > module ApplicationHelper > def check_red_style(input,test=/Click to edit|Check format/) > (input=~test) ? {:style=>'color:red'} : {} > end > end That worked beautifully, thank you. Just out of curiosity, can I do an if-elsif statement the way that I was trying? Can I have one conditional if statement within another to form a conditional if-elsif statement? Thanks, -Shandy -- Posted via http://www.ruby-forum.com/.