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: -------------- next part -------------- A non-text attachment was scrubbed... Name: Picture 7.png Type: image/png Size: 9781 bytes Desc: not available Url : http://rubyforge.org/pipermail/facebooker-talk/attachments/20080125/ddd62fd5/attachment.png -------------- next part -------------- thanks Joel
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 http://www.elevatedrails.com
cool that works, for the friend selector is there a similar trick?, I tried putting the label in the options but it didn''t seem to work, I got it to look good using the brute force approach: <fb:editor-custom label="Assign To"> <%=fb_friend_selector()%> </ fb:editor-custom> thanks Joel On Jan 25, 2008, at 6:33 PM, Mike Mangino wrote:> 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 > http://www.elevatedrails.com > > >