Sha256: ffe8fdbca9fe3049e529b81eb2845d788534e2a07f4b4f207691028190919c4f

Contents?: true

Size: 236 Bytes

Versions: 20

Compression:

Stored size: 236 Bytes

Contents

prepend Respond, Actions

# Respond with json:
respond.with_json

# This method should return HTML, even thought this controller responds with JSON.
on 'hello-world' do
	succeed! content: "<p>Hello World</p>", :type => 'text/html'
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
utopia-2.11.1 spec/utopia/controller/respond_spec/html/controller.rb
utopia-2.11.0 spec/utopia/controller/respond_spec/html/controller.rb
utopia-2.10.0 spec/utopia/controller/respond_spec/html/controller.rb
utopia-2.9.5 spec/utopia/controller/respond_spec/html/controller.rb
utopia-2.9.3 spec/utopia/controller/respond_spec/html/controller.rb
utopia-2.9.2 spec/utopia/controller/respond_spec/html/controller.rb
utopia-2.9.1 spec/utopia/controller/respond_spec/html/controller.rb
utopia-2.9.0 spec/utopia/controller/respond_spec/html/controller.rb
utopia-2.8.2 spec/utopia/controller/respond_spec/html/controller.rb
utopia-2.8.1 spec/utopia/controller/respond_spec/html/controller.rb
utopia-2.8.0 spec/utopia/controller/respond_spec/html/controller.rb
utopia-2.7.0 spec/utopia/controller/respond_spec/html/controller.rb
utopia-2.6.0 spec/utopia/controller/respond_spec/html/controller.rb
utopia-2.5.5 spec/utopia/controller/respond_spec/html/controller.rb
utopia-2.5.4 spec/utopia/controller/respond_spec/html/controller.rb
utopia-2.5.3 spec/utopia/controller/respond_spec/html/controller.rb
utopia-2.5.1 spec/utopia/controller/respond_spec/html/controller.rb
utopia-2.5.0 spec/utopia/controller/respond_spec/html/controller.rb
utopia-2.4.1 spec/utopia/controller/respond_spec/html/controller.rb
utopia-2.4.0 spec/utopia/controller/respond_spec/html/controller.rb