Text Field Value unless ?

Jamal Soueidan
Sat, 05 May 2007 14:37:36 -0000

Hello,

Why is this not working :(

<%= text_field_tag :post_header, '''', :name =>
''post[header]'', :value
@post.header if @post.header %>

I want the default value to be @post.header if it''s not nil :)

Thanks :D

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