Joerg Diekmann
2006-Jan-10 09:10 UTC
[Rails] Returning :success or :failure to remote function calls
Hi, When calling remote functions (AJAX), I can test for :success and :failure. But how do I return a :success or :failure to my AJAX function call from my action? Thanks Joerg -- Posted via http://www.ruby-forum.com/.
Vivek Krishna
2006-Jan-10 11:11 UTC
[Rails] Returning :success or :failure to remote function calls
In your controller render :nothing, :status=>200 # calls success render :nothing ,:status=>500 #calls failure ,any status other than 2XX On 1/10/06, Joerg Diekmann <joergd@pobox.com> wrote:> > Hi, > > When calling remote functions (AJAX), I can test for :success and > :failure. But how do I return a :success or :failure to my AJAX function > call from my action? > > Thanks > Joerg > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060110/97a6b142/attachment.html