[Facebooker-talk] form formatting

Mike Mangino
2008-01-25T23:33:53Z

Joel, try: <%=f.text(text_field_tag(:newrnumdays, ndays), :label =>
"#
Days")%>

The text method puts any string into the value of an editor.

Mike

On Jan 25, 2008, at 4:10 PM, Joel Nylund wrote:

> If I want to use fbml elements and rails tags, is there a way to do
> within a fb:editor?
>
> if I do:
>
> <% facebook_form_for(:task, at task,:url => create_task_path) do |f|
%>
>    Assign Task To: <%= fb_friend_selector %>
>    <%=f.text_field :ttype, :label=> "Title"%>
>    <%=text_field_tag :newrnumdays, ndays, :label => "#
Days"%>
>   <%=f.buttons "Add" %>
> <% end %>
>
> the text_field seems to be placed nicely in the editor and formatted
> accordingly but the friend selector & the text_field_tag are not
> placed inside the editor display table and are just dumped on the
> canvas.
>
> Not sure if images go through on this mail list, but attached what
> it looks like:
>
> <Picture 7.png>
>
>
> thanks
> Joel
>
> _______________________________________________
> Facebooker-talk mailing list
> Facebooker-talk at rubyforge.org
> http://rubyforge.org/mailman/listinfo/facebooker-talk

--
Mike Mangino