Jonathan Otto
2008-Mar-24 17:52 UTC
[Facebooker-talk] link_to_remote and restful routes/urls
is there a way to access a restful resource with mike''s new link_to_remote helper? something like: <%= link_to_remote h(user.name), :update => "div_id", :url => user_url(user) %> of course, that doesn''t work. i have also been trying things like: :url => controller.asset_host + "/users/#{user.id}?method=get" %> to no avail.
Mike Mangino
2008-Mar-24 18:32 UTC
[Facebooker-talk] link_to_remote and restful routes/urls
user_url(:id=>user,:canvas=>false) Mike On Mar 24, 2008, at 12:52 PM, Jonathan Otto wrote:> is there a way to access a restful resource with mike''s new > link_to_remote helper? > > something like: > > <%= link_to_remote h(user.name), > :update => "div_id", > :url => user_url(user) %> > > of course, that doesn''t work. > > i have also been trying things like: > > :url => controller.asset_host + "/users/#{user.id}?method=get" %> > > to no avail. > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk-- Mike Mangino http://www.elevatedrails.com
Jonathan Otto
2008-Mar-24 21:06 UTC
[Facebooker-talk] link_to_remote and restful routes/urls
any way to specify the request as GET? users_url(:canvas=>false, :method => :get) is sending a POST request so its taking me to the create method On Mon, Mar 24, 2008 at 1:32 PM, Mike Mangino <mmangino at elevatedrails.com> wrote:> user_url(:id=>user,:canvas=>false) > > Mike > > > > On Mar 24, 2008, at 12:52 PM, Jonathan Otto wrote: > > is there a way to access a restful resource with mike''s new > > link_to_remote helper? > > > > something like: > > > > <%= link_to_remote h(user.name), > > :update => "div_id", > > :url => user_url(user) %> > > > > of course, that doesn''t work. > > > > i have also been trying things like: > > > > :url => controller.asset_host + "/users/#{user.id}?method=get" %> > > > > to no avail. > > _______________________________________________ > > Facebooker-talk mailing list > > Facebooker-talk at rubyforge.org > > http://rubyforge.org/mailman/listinfo/facebooker-talk > > -- > Mike Mangino > http://www.elevatedrails.com > > > >