[Facebooker-talk] facebook_form_for - text_area

Mike Mangino mmangino at elevatedrails.com
Thu Jul 24 07:47:24 EDT 2008


Yes, just set the value of the object in question. So if you are doing

<% facebook_form_for :comment, at comment ... %>
   <%= f.text_area :body %>
   <%= f.buttons :save %>
<% end %>

you could have a controller that looks like:

def new
   @comment = Comment.new(:body=>"Initial text here")
end


Mike

On Jul 24, 2008, at 5:08 AM, Rajiv M Ranganath wrote:

> Hi there,
>
> Is there any way to set the default value for text_area using  
> facebook_form_for? I would like to do something like,
>
> <fb:editor-textarea>
>  You can set the initial value too.
> </fb:editor-textarea>
>
> Best,
> Rajiv
>
> _______________________________________________
> Facebooker-talk mailing list
> Facebooker-talk at rubyforge.org
> http://rubyforge.org/mailman/listinfo/facebooker-talk

--
Mike Mangino
http://www.elevatedrails.com





More information about the Facebooker-talk mailing list