On 8/26/05, Benjamin Jackson
<ben-p14LI7ZcAE/pVLaUnt/cCQC/G2K4zDHf@public.gmane.org>
wrote:> Just looked at this:
>
> http://jlaine.net/blog/73/using-rails-ajax-helpers-to-create-safe-
> state-changing-links
> >
> > Fortunately link_to_remote has a fallback system:
> >
> > <%= link_to_remote "Delete",
> > {:url => {:controller => "monkey",
> > :action => "delete",
> > :id => monkey.id},
> > :update => "monkeys"},
> > {:href => url_for(:controller => "monkey",
> > :action => "delete",
> > :id => monkey.id)} %>
>
>
> Is there any way to set link_to_remote to degrade automatically to the
> same url as the AJAX action if the user has JS turned off?
That''s what the :href option does.
--
rick
http://techno-weenie.net