Christopher Bailey
2008-Mar-06 05:21 UTC
[Facebooker-talk] facebook_url_rewriter not used in Publisher?
As per my last email, I''m generating links to our app outside of Facebook. Sorry for the onslaught of emails on this. I do link generation in Publisher based code as well. What I''m finding is that the Facebooker UrlRewriter doesn''t get used in Publisher. This makes sense if we assume that Publisher can be used outside of an HTTP request, and things like the UrlRewriter use the HTTP request. Yet, link_to, and url_for and such are there (probably sucked in via pulling in various other helpers and such). So, I wanted to find out the intent there. Link creation seems like something many folks would want to do when publishing into to a profile or to the feeds, etc. Maybe it''s just not working for me, or I''m off on use or something? I should note that I''ve tried both with using things like link_to or url_for, as well as using named routes, and also from within my Publisher class'' code, as well as the view template. -- Christopher Bailey Cobalt Edge LLC http://cobaltedge.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/facebooker-talk/attachments/20080305/0d9de813/attachment.html
Mike Mangino
2008-Mar-06 13:55 UTC
[Facebooker-talk] facebook_url_rewriter not used in Publisher?
This may be a rails 1.2 issue, as it works fine for me on rails 2.0. Can you share some code and some additional detail about what happens when you try to run it? Mike On Mar 5, 2008, at 11:21 PM, Christopher Bailey wrote:> As per my last email, I''m generating links to our app outside of > Facebook. Sorry for the onslaught of emails on this. I do link > generation in Publisher based code as well. What I''m finding is > that the Facebooker UrlRewriter doesn''t get used in Publisher. This > makes sense if we assume that Publisher can be used outside of an > HTTP request, and things like the UrlRewriter use the HTTP request. > Yet, link_to, and url_for and such are there (probably sucked in via > pulling in various other helpers and such). So, I wanted to find > out the intent there. Link creation seems like something many folks > would want to do when publishing into to a profile or to the feeds, > etc. Maybe it''s just not working for me, or I''m off on use or > something? > > > I should note that I''ve tried both with using things like link_to or > url_for, as well as using named routes, and also from within my > Publisher class'' code, as well as the view template. > > -- > Christopher Bailey > Cobalt Edge LLC > http://cobaltedge.com > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk-- Mike Mangino http://www.elevatedrails.com
Christopher Bailey
2008-Mar-06 17:23 UTC
[Facebooker-talk] facebook_url_rewriter not used in Publisher?
Well, I suspected that :) Last night I started a spike on getting up to date on Rails. This is involved for us since we currently use Appable Plugins, and I need to convert to Desert in order to even move to Rails 1.2.4 or later, so I''m working on that. I''ve got rake, db, and unit tests working, now to get functionals and RSpec stuff going. Heh, then I can start updating Rails :) Ok, nobody cares about that, but that''s where I am. As for the problem, it usually complains about missing "default_url_options". So, it actually finds link_to and url_for and such, but within the guts of all that, default_url_options comes up missing. I haven''t had a chance to dig into that yet. On 3/6/08, Mike Mangino <mmangino at elevatedrails.com> wrote:> > This may be a rails 1.2 issue, as it works fine for me on rails 2.0. > > Can you share some code and some additional detail about what happens > when you try to run it? > > Mike > > > On Mar 5, 2008, at 11:21 PM, Christopher Bailey wrote: > > > As per my last email, I''m generating links to our app outside of > > Facebook. Sorry for the onslaught of emails on this. I do link > > generation in Publisher based code as well. What I''m finding is > > that the Facebooker UrlRewriter doesn''t get used in Publisher. This > > makes sense if we assume that Publisher can be used outside of an > > HTTP request, and things like the UrlRewriter use the HTTP request. > > Yet, link_to, and url_for and such are there (probably sucked in via > > pulling in various other helpers and such). So, I wanted to find > > out the intent there. Link creation seems like something many folks > > would want to do when publishing into to a profile or to the feeds, > > etc. Maybe it''s just not working for me, or I''m off on use or > > something? > > > > > > I should note that I''ve tried both with using things like link_to or > > url_for, as well as using named routes, and also from within my > > Publisher class'' code, as well as the view template. > > > > -- > > Christopher Bailey > > Cobalt Edge LLC > > http://cobaltedge.com > > > _______________________________________________ > > Facebooker-talk mailing list > > Facebooker-talk at rubyforge.org > > http://rubyforge.org/mailman/listinfo/facebooker-talk > > > -- > Mike Mangino > http://www.elevatedrails.com > > >-- Christopher Bailey Cobalt Edge LLC http://cobaltedge.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/facebooker-talk/attachments/20080306/ab7512da/attachment.html
Mike Mangino
2008-Mar-06 17:27 UTC
[Facebooker-talk] facebook_url_rewriter not used in Publisher?
You might try defining "default_url_options" in your publisher. It should take a single optional hash parameter and return a hash. Mike On Mar 6, 2008, at 11:23 AM, Christopher Bailey wrote:> Well, I suspected that :) Last night I started a spike on getting > up to date on Rails. This is involved for us since we currently use > Appable Plugins, and I need to convert to Desert in order to even > move to Rails 1.2.4 or later, so I''m working on that. I''ve got > rake, db, and unit tests working, now to get functionals and RSpec > stuff going. Heh, then I can start updating Rails :) Ok, nobody > cares about that, but that''s where I am. > > > As for the problem, it usually complains about missing > "default_url_options". So, it actually finds link_to and url_for > and such, but within the guts of all that, default_url_options comes > up missing. I haven''t had a chance to dig into that yet. > > On 3/6/08, Mike Mangino <mmangino at elevatedrails.com> wrote: This may > be a rails 1.2 issue, as it works fine for me on rails 2.0. > > Can you share some code and some additional detail about what happens > when you try to run it? > > Mike > > > On Mar 5, 2008, at 11:21 PM, Christopher Bailey wrote: > > > As per my last email, I''m generating links to our app outside of > > Facebook. Sorry for the onslaught of emails on this. I do link > > generation in Publisher based code as well. What I''m finding is > > that the Facebooker UrlRewriter doesn''t get used in Publisher. This > > makes sense if we assume that Publisher can be used outside of an > > HTTP request, and things like the UrlRewriter use the HTTP request. > > Yet, link_to, and url_for and such are there (probably sucked in via > > pulling in various other helpers and such). So, I wanted to find > > out the intent there. Link creation seems like something many folks > > would want to do when publishing into to a profile or to the feeds, > > etc. Maybe it''s just not working for me, or I''m off on use or > > something? > > > > > > I should note that I''ve tried both with using things like link_to or > > url_for, as well as using named routes, and also from within my > > Publisher class'' code, as well as the view template. > > > > -- > > Christopher Bailey > > Cobalt Edge LLC > > http://cobaltedge.com > > > _______________________________________________ > > Facebooker-talk mailing list > > Facebooker-talk at rubyforge.org > > http://rubyforge.org/mailman/listinfo/facebooker-talk > > > -- > Mike Mangino > http://www.elevatedrails.com > > > > > > -- > Christopher Bailey > Cobalt Edge LLC > http://cobaltedge.com-- Mike Mangino http://www.elevatedrails.com