Sha256: c1d9d95f3d08a045072b12cd6321939999d67d67d4f4338bce31e31ce434813c

Contents?: true

Size: 482 Bytes

Versions: 1

Compression:

Stored size: 482 Bytes

Contents

class Test < Merb::Controller
  
  before :bfilter
  before lambda{|c| puts 'lambda filter called'}
  
  def bfilter
    puts "Filter Called!"
  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 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.6 examples/sample_app/dist/app/controllers/test.rb