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

Version Path
merb-core-1.1.3 spec10/public/controller/controllers/redirect.rb
merb-core-1.1.2 spec10/public/controller/controllers/redirect.rb
merb-core-1.1.1 spec10/public/controller/controllers/redirect.rb
merb-core-1.1.0 spec10/public/controller/controllers/redirect.rb
merb-core-1.1.0.rc1 spec10/public/controller/controllers/redirect.rb
merb-core-1.1.0.pre spec10/public/controller/controllers/redirect.rb
merb-core-0.9.4 spec/public/controller/controllers/redirect.rb
merb-core-0.9.5 spec/public/controller/controllers/redirect.rb
merb-core-0.9.6 spec/public/controller/controllers/redirect.rb
merb-core-0.9.7 spec/public/controller/controllers/redirect.rb