Sha256: 1131a29c1e4a6bfa8729b4368254704eddcda438a85224e8033cec40c2f85025
Contents?: true
Size: 569 Bytes
Versions: 1
Compression:
Stored size: 569 Bytes
Contents
class Test < Merb::Controller before :authenticate before lambda{|c| puts 'lambda filter called'} def bfilter puts "Filter Called!" #throw :halt end def hello # Assign the parameter to an instance variable @name = params[:id] render end def glob "<html><body><h2>#{params[:rest]}</h2></body></html>" end def json @post = Post.find :first render_js end def foo @args = params render end def to_s "<html><body>Test controller, no mathing action</body></html>" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
merb-0.0.7 | examples/sample_app/dist/app/controllers/test.rb |