Hi, What''s the best way to render nothing ? I am making an ajax call to an action on my controller that does not need to make any changes to the view. Not sure how do that yet as I get an exception in the logs saying xxx.rhtml not found.... Thank you all !! -- Posted via http://www.ruby-forum.com/.
Doh !! Never mind got it > render :nothing => true -- Posted via http://www.ruby-forum.com/.
Check this out: http://www.xml.com/pub/a/2005/11/02/rest-on-rails.html Best, Mike Pence On 12/18/05, KiteSurfer KiteSurfer <fernand-YPVloBjEdNw@public.gmane.org> wrote:> Hi, > > What''s the best way to render nothing ? I am making an ajax call to > an action on my controller that does not need to make any changes to the > view. > > Not sure how do that yet as I get an exception in the logs saying > xxx.rhtml not found.... > > Thank you all !! > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
On Sun, Dec 18, 2005 at 06:55:13PM +0100, KiteSurfer KiteSurfer wrote:> What''s the best way to render nothing ? I am making an ajax call to > an action on my controller that does not need to make any changes to the > view. > > Not sure how do that yet as I get an exception in the logs saying > xxx.rhtml not found....def some_ajax_action # do stuff... render :nothing => true end marcel -- Marcel Molina Jr. <marcel-WRrfy3IlpWYdnm+yROfE0A@public.gmane.org>