logo       

Re: InPlaceEditor trouble: msg#00072

lang.ruby.rails.spinoffs

Subject: Re: InPlaceEditor trouble

Jon, thanks very much, it was a typo, and now it works great.

On 11/11/05, Jon Tirsen <jon-fQK1VBTDpnXQT0dZR+AlfA@xxxxxxxxxxxxxxxx> wrote:
In Rails the best way is probably to use the URL itself rather than a
parameter. Like this:

new Ajax.InPlaceEditor('title-<%= book.id -%>',
               <%= url_for :action ="" 'update_book_title', :id => book.id %>);

I don't think the error you're getting is related to the InPlaceEditor
at all. It's probably some mistake or typo you've done in your action.

--
Roberto Saccon - http://rsaccon.com _______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@xxxxxxxxxxxxxxxx
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise