Forum: Ruby on Rails Render Nothing....

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
F7975423060c2c9e4395dca3ae870771?d=identicon&s=25 De Railed (kitesurfer)
on 2005-12-18 18:55
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 !!
F7975423060c2c9e4395dca3ae870771?d=identicon&s=25 De Railed (kitesurfer)
on 2005-12-18 18:58
Doh !! Never mind got it > render :nothing => true
5c6727e573b7be20dea6a6880856a888?d=identicon&s=25 Mike Pence (Guest)
on 2005-12-18 19:26
(Received via mailing list)
Cee0292fffa691f1fb320d5400200e99?d=identicon&s=25 Marcel Molina Jr. (Guest)
on 2005-12-18 20:59
(Received via mailing list)
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
This topic is locked and can not be replied to.