Sha256: efb5d534afc0f8d23f200409362ee82969f127a9aa9fb03d873a0043a5aec251

Contents?: true

Size: 771 Bytes

Versions: 4

Compression:

Stored size: 771 Bytes

Contents

class MarkabyController < ApplicationController
  helper :test

  @@locals = { :monkeys => Monkey.find(:all) }

  def rescue_action(e) raise e end;

  def index
    @monkeys = Monkey.find(:all)
  end

  def create
    flash[:message] = 'Hello World'
  end

  def broken
  end

  def multiple_forms
  end

  def partial_rendering
    render :partial => 'monkeys', :locals => @@locals
  end

  def partial_rendering_with_stringy_keys_in_local_assigns
    render :partial => 'monkeys', :locals => { 'monkeys' => Monkey.find(:all) }
  end

  def inline_helper_rendering
    render_markaby(:locals => @@locals) { ul { monkeys.each { |m| li m.name } } }
  end

  def basic_inline_rendering
    render :inline => mab { ul { Monkey.find(:all).each { |m| li m.name } } }
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
dinsley-markaby-0.0.5 test/app_root/app/controllers/markaby_controller.rb
dinsley-markaby-0.0.6 test/app_root/app/controllers/markaby_controller.rb
dinsley-markaby-0.0.7 test/app_root/app/controllers/markaby_controller.rb
dinsley-markaby-0.0.9 test/app_root/app/controllers/markaby_controller.rb