Forum: Ruby on Rails actioncontroller sans view

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.
6f7c877de704c7cc03c8a3b2dc52df92?d=identicon&s=25 Carmen --- (carmen)
on 2006-03-11 04:04
just wondering if theres a more idiomatic way to avoid the
`assert_existance_of_template_file' error than passing an empty block to
render :update (or hacking up the actionview::base class). ive tried
various things like render :template => false/nil etc and havent seem to
found a magic trick..

i realize most times a controller would want a view but various cases
during development, as well as forwarding the controller data over local
pipes to audio daemons etc, sometimes the browser needs nothing in the
way of view updates
D2b2017098da3e2fd1cdcfbb72ecdbfb?d=identicon&s=25 Jason Edgecombe (Guest)
on 2006-03-11 18:03
(Received via mailing list)
carmen wrote:
>
>
Try render :text :

# Renders the clear text "hello world" with status code 200
  render :text => "hello world!"


See:
http://api.rubyonrails.org/classes/ActionControlle...


Jason
This topic is locked and can not be replied to.