It will not degrade automatically, you'll have to tell it to do so
adding an :href property:

 link_to_remote "Delete this post",
    { :update => "posts", :url => { :action => "destroy", :id => post.id } },
    :href => url_for(:action => "destroy", :id => post.id)

-
Maurício Linhares
http://codeshooter.wordpress.com/ | http://twitter.com/mauriciojr



On Mon, Aug 24, 2009 at 8:41 AM, James
West<rails-mailing-l...@andreas-s.net> wrote:
>
> I'm just looking at adding some AJAX to my app and am considering
> turning some link_to's into link_to_remotes and I could do with knowing
> if link_to_remote degrades to an HTML request if javascript is not
> enabled in a users browser?
> If so, is there anything special I need to do with the link_to_remote
> call to make that happen?
>
> Thanks
> --
> Posted via http://www.ruby-forum.com/.
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to