I was trying to emulate the example given in the publisher.rb? # Before using, you must register your template by calling register. For this example # You would call TestPublisher.register_publish_action pastie of my class: http://pastie.org/331136 When i call in my controller ... fb_publisher = FBPublisher.new fb_publisher.register_publish_action I get: undefined method `register_publish_action'' for #<FBPublisher:0x247be34> tia -- web dev: www.polyrails.com artworks: www.danielnewman.info ph : 415-407-6239 :::::::::::::::::::::::::::::::::::::::::::::::::::::: -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/facebooker-talk/attachments/20081204/d57ca0c0/attachment.html>
Hi, You don''t need to instanciate the publisher. The register method is a class method. Just do : FBPublisher. register_publish_action HTH, -- St?phane Akkaoui http://www.socialbiz.com http://imeuble.info Le 4 d?c. 08 ? 20:03, Dan Newman a ?crit :> I was trying to emulate the example given in the publisher.rb? > > # Before using, you must register your template by calling register. > For this example > # You would call TestPublisher.register_publish_action > > pastie of my class: http://pastie.org/331136 > > When i call in my controller ... > > fb_publisher = FBPublisher.new > fb_publisher.register_publish_action > > I get: > > undefined method `register_publish_action'' for #<FBPublisher: > 0x247be34> > > tia > > > > -- > web dev: www.polyrails.com > artworks: www.danielnewman.info > ph : 415-407-6239 > :::::::::::::::::::::::::::::::::::::::::::::::::::::: > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk
Should I be manually creating the facebook_templates table? Mysql::Error: #42S02Table ''fbconnect_base_development.facebook_templates'' doesn''t exist: SHOW FIELDS FROM `facebook_templates` On Thu, Dec 4, 2008 at 11:10 AM, St?phane Akkaoui < stephane.akkaoui at imeuble.info> wrote:> Hi, > > You don''t need to instanciate the publisher. The register method is a class > method. > > Just do : FBPublisher. register_publish_action > > HTH, > > -- > St?phane Akkaoui > http://www.socialbiz.com > http://imeuble.info > > Le 4 d?c. 08 ? 20:03, Dan Newman a ?crit : > > I was trying to emulate the example given in the publisher.rb? >> >> # Before using, you must register your template by calling register. For >> this example >> # You would call TestPublisher.register_publish_action >> >> pastie of my class: http://pastie.org/331136 >> >> When i call in my controller ... >> >> fb_publisher = FBPublisher.new >> fb_publisher.register_publish_action >> >> I get: >> >> undefined method `register_publish_action'' for #<FBPublisher:0x247be34> >> >> tia >> >> >> >> -- >> web dev: www.polyrails.com >> artworks: www.danielnewman.info >> ph : 415-407-6239 >> :::::::::::::::::::::::::::::::::::::::::::::::::::::: >> _______________________________________________ >> Facebooker-talk mailing list >> Facebooker-talk at rubyforge.org >> http://rubyforge.org/mailman/listinfo/facebooker-talk >> > >-- web dev: www.polyrails.com artworks: www.danielnewman.info ph : 415-407-6239 :::::::::::::::::::::::::::::::::::::::::::::::::::::: -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/facebooker-talk/attachments/20081204/d9db68bb/attachment.html>
sorry - trigger fingers ... i see the generator now. regarding the facebook_templates On Thu, Dec 4, 2008 at 11:10 AM, St?phane Akkaoui < stephane.akkaoui at imeuble.info> wrote:> Hi, > > You don''t need to instanciate the publisher. The register method is a class > method. > > Just do : FBPublisher. register_publish_action > > HTH, > > -- > St?phane Akkaoui > http://www.socialbiz.com > http://imeuble.info > > Le 4 d?c. 08 ? 20:03, Dan Newman a ?crit : > > I was trying to emulate the example given in the publisher.rb? >> >> # Before using, you must register your template by calling register. For >> this example >> # You would call TestPublisher.register_publish_action >> >> pastie of my class: http://pastie.org/331136 >> >> When i call in my controller ... >> >> fb_publisher = FBPublisher.new >> fb_publisher.register_publish_action >> >> I get: >> >> undefined method `register_publish_action'' for #<FBPublisher:0x247be34> >> >> tia >> >> >> >> -- >> web dev: www.polyrails.com >> artworks: www.danielnewman.info >> ph : 415-407-6239 >> :::::::::::::::::::::::::::::::::::::::::::::::::::::: >> _______________________________________________ >> Facebooker-talk mailing list >> Facebooker-talk at rubyforge.org >> http://rubyforge.org/mailman/listinfo/facebooker-talk >> > >-- web dev: www.polyrails.com artworks: www.danielnewman.info ph : 415-407-6239 :::::::::::::::::::::::::::::::::::::::::::::::::::::: -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/facebooker-talk/attachments/20081204/a829a380/attachment-0001.html>
Not manually. User `rake db:migrate`. If you have used the generator (`script/generate publisher FB`) a migration should have been created. HTH, -- St?phane Akkaoui http://www.sociabliz.com http://imeuble.info Le 4 d?c. 08 ? 20:24, Dan Newman a ?crit :> Should I be manually creating the facebook_templates table? > > Mysql::Error: #42S02Table > ''fbconnect_base_development.facebook_templates'' doesn''t exist: SHOW > FIELDS FROM `facebook_templates` > > On Thu, Dec 4, 2008 at 11:10 AM, St?phane Akkaoui <stephane.akkaoui at imeuble.info > > wrote: > Hi, > > You don''t need to instanciate the publisher. The register method is > a class method. > > Just do : FBPublisher. register_publish_action > > HTH, > > -- > St?phane Akkaoui > http://www.socialbiz.com > http://imeuble.info > > Le 4 d?c. 08 ? 20:03, Dan Newman a ?crit : > > I was trying to emulate the example given in the publisher.rb? > > # Before using, you must register your template by calling register. > For this example > # You would call TestPublisher.register_publish_action > > pastie of my class: http://pastie.org/331136 > > When i call in my controller ... > > fb_publisher = FBPublisher.new > fb_publisher.register_publish_action > > I get: > > undefined method `register_publish_action'' for #<FBPublisher: > 0x247be34> > > tia > > > > -- > web dev: www.polyrails.com > artworks: www.danielnewman.info > ph : 415-407-6239 > :::::::::::::::::::::::::::::::::::::::::::::::::::::: > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk > > > > > -- > web dev: www.polyrails.com > artworks: www.danielnewman.info > ph : 415-407-6239 > ::::::::::::::::::::::::::::::::::::::::::::::::::::::
Inching forward ...could not figure out why this does not work FBPublisher.register_publish_action FBPublisher.deliver_action(@user) error method deprecated: http://pastie.org/331204 On Thu, Dec 4, 2008 at 11:10 AM, St?phane Akkaoui < stephane.akkaoui at imeuble.info> wrote:> Hi, > > You don''t need to instanciate the publisher. The register method is a class > method. > > Just do : FBPublisher. register_publish_action > > HTH, > > -- > St?phane Akkaoui > http://www.socialbiz.com > http://imeuble.info > > Le 4 d?c. 08 ? 20:03, Dan Newman a ?crit : > > I was trying to emulate the example given in the publisher.rb? >> >> # Before using, you must register your template by calling register. For >> this example >> # You would call TestPublisher.register_publish_action >> >> pastie of my class: http://pastie.org/331136 >> >> When i call in my controller ... >> >> fb_publisher = FBPublisher.new >> fb_publisher.register_publish_action >> >> I get: >> >> undefined method `register_publish_action'' for #<FBPublisher:0x247be34> >> >> tia >> >> >> >> -- >> web dev: www.polyrails.com >> artworks: www.danielnewman.info >> ph : 415-407-6239 >> :::::::::::::::::::::::::::::::::::::::::::::::::::::: >> _______________________________________________ >> Facebooker-talk mailing list >> Facebooker-talk at rubyforge.org >> http://rubyforge.org/mailman/listinfo/facebooker-talk >> > >-- web dev: www.polyrails.com artworks: www.danielnewman.info ph : 415-407-6239 :::::::::::::::::::::::::::::::::::::::::::::::::::::: -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/facebooker-talk/attachments/20081204/569cf2ae/attachment.html>
solved it ...here: FBPublisher.register_publish_action(@user) FBPublisher.deliver_publish_action(@user) On Thu, Dec 4, 2008 at 12:04 PM, Dan Newman <dpnewman at gmail.com> wrote:> Inching forward ...could not figure out why this does not work > > FBPublisher.register_publish_action > FBPublisher.deliver_action(@user) > > error method deprecated: http://pastie.org/331204 > > On Thu, Dec 4, 2008 at 11:10 AM, St?phane Akkaoui < > stephane.akkaoui at imeuble.info> wrote: > >> Hi, >> >> You don''t need to instanciate the publisher. The register method is a >> class method. >> >> Just do : FBPublisher. register_publish_action >> >> HTH, >> >> -- >> St?phane Akkaoui >> http://www.socialbiz.com >> http://imeuble.info >> >> Le 4 d?c. 08 ? 20:03, Dan Newman a ?crit : >> >> I was trying to emulate the example given in the publisher.rb? >>> >>> # Before using, you must register your template by calling register. For >>> this example >>> # You would call TestPublisher.register_publish_action >>> >>> pastie of my class: http://pastie.org/331136 >>> >>> When i call in my controller ... >>> >>> fb_publisher = FBPublisher.new >>> fb_publisher.register_publish_action >>> >>> I get: >>> >>> undefined method `register_publish_action'' for #<FBPublisher:0x247be34> >>> >>> tia >>> >>> >>> >>> -- >>> web dev: www.polyrails.com >>> artworks: www.danielnewman.info >>> ph : 415-407-6239 >>> :::::::::::::::::::::::::::::::::::::::::::::::::::::: >>> _______________________________________________ >>> Facebooker-talk mailing list >>> Facebooker-talk at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/facebooker-talk >>> >> >> > > > -- > web dev: www.polyrails.com > artworks: www.danielnewman.info > ph : 415-407-6239 > :::::::::::::::::::::::::::::::::::::::::::::::::::::: >-- web dev: www.polyrails.com artworks: www.danielnewman.info ph : 415-407-6239 :::::::::::::::::::::::::::::::::::::::::::::::::::::: -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/facebooker-talk/attachments/20081204/516422e4/attachment.html>