Matthieu Ruiz
2008-Feb-15 19:25 UTC
[Facebooker-talk] "fields_for" and "facebook_form_for" helpers...
Hi, I try to learn how to use facebooker plugin. I would like to edit *multiple models in one form* that''s why I use "field_for" helper. Unfortunately, it does not react as "facebook_form_for" since is does not create an <fb:editor> context. Furthermore, It does not work even though I put a "fields_for" within a "facebook_form_for" scope. Is there a way to use the standard rails form helpers, converted into the facebook specific version, within a "fields_for" as it is done within a "facebook_form_for". Thanks a lot for your help Matt -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/facebooker-talk/attachments/20080215/247ffcf2/attachment.html
Joel Nylund
2008-Feb-15 19:32 UTC
[Facebooker-talk] "fields_for" and "facebook_form_for" helpers...
not that I know of, but you can use traditional helpers and surround them manually in the fbeditor markup, not beautiful but it will work with multiple models. <fb:editor-custom label="Due Date"> <%=datetime_select :task, :duedate,:order => [:month,:day,:year],:twelve_hour => true,:minute_step => 15, :use_short_month => true %> </fb:editor-custom> I put a bunch of form examples in my blog a while back: http://jnylund.typepad.com/joels_blog/2008/02/facebooker-form.html Joel On Feb 15, 2008, at 2:25 PM, Matthieu Ruiz wrote:> Hi, > > I try to learn how to use facebooker plugin. > I would like to edit *multiple models in one form* that''s why I use > "field_for" helper. > Unfortunately, it does not react as "facebook_form_for" since is > does not create an <fb:editor> context. Furthermore, It does not > work even though I put a "fields_for" within a "facebook_form_for" > scope. > > Is there a way to use the standard rails form helpers, converted > into the facebook specific version, within a "fields_for" as it is > done within a "facebook_form_for". > > Thanks a lot for your help > > Matt > > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk
Mike Mangino
2008-Feb-15 19:49 UTC
[Facebooker-talk] "fields_for" and "facebook_form_for" helpers...
I think you can just pass in :builder=>Facebooker::Rails::FacebookFormBuilder Mike On Feb 15, 2008, at 1:25 PM, Matthieu Ruiz wrote:> Hi, > > I try to learn how to use facebooker plugin. > I would like to edit *multiple models in one form* that''s why I use > "field_for" helper. > Unfortunately, it does not react as "facebook_form_for" since is > does not create an <fb:editor> context. Furthermore, It does not > work even though I put a "fields_for" within a "facebook_form_for" > scope. > > Is there a way to use the standard rails form helpers, converted > into the facebook specific version, within a "fields_for" as it is > done within a "facebook_form_for". > > Thanks a lot for your help > > Matt > > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk-- Mike Mangino http://www.elevatedrails.com
Matthieu Ruiz
2008-Feb-15 20:11 UTC
[Facebooker-talk] "fields_for" and "facebook_form_for" helpers...
It works, thanks ! :) Matt On Fri, Feb 15, 2008 at 8:49 PM, Mike Mangino <mmangino at elevatedrails.com> wrote:> I think you can just pass > in :builder=>Facebooker::Rails::FacebookFormBuilder > > Mike > > On Feb 15, 2008, at 1:25 PM, Matthieu Ruiz wrote: > > > Hi, > > > > I try to learn how to use facebooker plugin. > > I would like to edit *multiple models in one form* that''s why I use > > "field_for" helper. > > Unfortunately, it does not react as "facebook_form_for" since is > > does not create an <fb:editor> context. Furthermore, It does not > > work even though I put a "fields_for" within a "facebook_form_for" > > scope. > > > > Is there a way to use the standard rails form helpers, converted > > into the facebook specific version, within a "fields_for" as it is > > done within a "facebook_form_for". > > > > Thanks a lot for your help > > > > Matt > > > > > > _______________________________________________ > > Facebooker-talk mailing list > > Facebooker-talk at rubyforge.org > > http://rubyforge.org/mailman/listinfo/facebooker-talk > > -- > Mike Mangino > http://www.elevatedrails.com > >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/facebooker-talk/attachments/20080215/221548f8/attachment.html