Sha256: 4b896805b4bf77f7cab20e492176e2eb4019e5aa3257b409d1634ae54bb8d281
Contents?: true
Size: 634 Bytes
Versions: 1
Compression:
Stored size: 634 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 rails puts session.inspect session[:foo] 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.8 | examples/sample_app/dist/app/controllers/test.rb |