And for anyone following this thread with the same problem, by
method:'delete' i mean method:'get' lol I copy & pasted from an
example.

On Nov 26, 10:28 am, "Jeffrey L. Taylor" <[email protected]>
wrote:
> Brian,
>   Sounds good.
>
> Jeffrey
>
> Quoting brianp <[email protected]>:
>
> > The 'new' action creates 3 empty models and displays the form to fill
> > in the properties for the 3 new objects (all from 1 form).
>
> > Create is followed from new to save the objects to the db etc via post
> > as expected.
>
> > So I suppose the best idea would be to find a way to make the
> > Ajax.Updater run via :get instead of :post. So I may keep my proper
> > RESTful resources.
>
> > The script for the Ajax.updater is:
>
> > function reloadPane(pane, src) {
> >   new Ajax.Updater(pane, src, {asynchronous:1, evalScripts:true,
> > onLoading:function(request){pane.innerHTML='<img alt="Wait" src="/
> > images/spinner.gif" style="vertical-align:-3px" /> Loading...'}})
> > }
>
> > method:'delete'
>
> > I tried using:
> > function reloadPane(pane, src) {
> >   new Ajax.Updater(pane, src, {asynchronous:1, evalScripts:true,
> > method:delete,  onLoading:function(request){pane.innerHTML='<img
> > alt="Wait" src="/images/spinner.gif" style="vertical-align:-3px" />
> > Loading...'}})
> > }
>
> > This didn't work but just now I found an example with:
> > method:'delete' . Maybe the lack of quotes is what killed the script.
> > I'll try that as soon as I get home and post back.

--

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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.


Reply via email to