Forum: Ruby on Rails How to stop action in controller trying to render something?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
D5df9fcd7ef4c3c937435d7d6adeab2a?d=identicon&s=25 Greg Hauptmann (Guest)
on 2007-01-23 00:47
(Received via mailing list)

I have a B2B type action in a controller for which an external system
my site to provide updates.

Quesion - How do I stop my action in my controller trying to perform a
render, i.e. to keep my logs clean.  At the moment it trys to render but
course there is no page to render.

F607827e41b263e9d82947141a2b4253?d=identicon&s=25 ChrisR (Guest)
on 2007-01-23 00:56
(Received via mailing list)
Have you tried

render :nothing => true, :layout => false
2d0d904abb31102b049ad60e47c7af8e?d=identicon&s=25 Bart Gajderowicz (bart)
on 2007-01-23 07:18
(Received via mailing list)
You can always return false, but I think Chris' way is the official
Rails 1.2 way of doing this.

def my_method
  return false
D5df9fcd7ef4c3c937435d7d6adeab2a?d=identicon&s=25 Greg Hauptmann (Guest)
on 2007-01-23 21:45
(Received via mailing list)
thanks guys - Bart this seemed to work fine on rails 1.1.6
This topic is locked and can not be replied to.