Sha256: 64f1a29c9ddad2f726e6ce05dc1b85198ecb058096170d4274fbba17d93fb7b8
Contents?: true
Size: 667 Bytes
Versions: 10
Compression:
Stored size: 667 Bytes
Contents
module Merb::Test::Fixtures::Controllers class Testing < Merb::Controller self._template_root = File.dirname(__FILE__) / "views" end class SimpleRedirect < Testing def index redirect("/") end end class PermanentRedirect < Testing def index redirect("/", :permanent => true) end end class RedirectWithMessage < Testing def index redirect("/", :message => { :notice => "what?" }) end end class ConsumesMessage < Testing def index message[:notice].inspect end end class SetsMessage < Testing def index message[:notice] = "Hello" message[:notice] end end end
Version data entries
10 entries across 10 versions & 1 rubygems