Re: Text Field Value unless ?

Jamal Soueidan
Sat, 05 May 2007 17:44:30 -0000

dasil003 wrote:
> You can''t have an if statement embedded in a method like this.
Not to
> mention you are missing the => operator.  Try this:
>
> <%= text_field_tag :post_header, '''', :name =>
''post[header]'', :value
> => @post.header ? @post.header : '''' %>
>
> On May 5, 8:37 am, Jamal Soueidan
<rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>

Thanks,

It rocks :D

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