Sha256: 204d656281c6b2aa8e177647618796198d952fcae717187160143ef8b699f101

Contents?: true

Size: 619 Bytes

Versions: 30

Compression:

Stored size: 619 Bytes

Contents

class BindingTestController < ActionController::Base

  def is_up
    render :text => up?.to_s
  end

  def up_target
    render :text => up.target
  end

  def up_is_target
    tested_target = params[:tested_target].presence
    tested_target or raise "No target given"
    render :text => up.target?(tested_target).to_s
  end

  def is_up_validate
    render :text => up.validate?.to_s
  end

  def up_validate_name
    render :text => up.validate_name
  end

  def set_up_title
    up.title = 'Pushed document title'
    render :text => 'text'
  end

  def text
    render :text => 'text from controller'
  end

end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
unpoly-rails-0.37.0 spec_app/app/controllers/binding_test_controller.rb
unpoly-rails-0.36.2 spec_app/app/controllers/binding_test_controller.rb
unpoly-rails-0.36.1 spec_app/app/controllers/binding_test_controller.rb
unpoly-rails-0.36.0 spec_app/app/controllers/binding_test_controller.rb
unpoly-rails-0.35.2 spec_app/app/controllers/binding_test_controller.rb
unpoly-rails-0.35.1 spec_app/app/controllers/binding_test_controller.rb
unpoly-rails-0.35.0 spec_app/app/controllers/binding_test_controller.rb
unpoly-rails-0.34.2 spec_app/app/controllers/binding_test_controller.rb
unpoly-rails-0.34.1 spec_app/app/controllers/binding_test_controller.rb
unpoly-rails-0.34.0 spec_app/app/controllers/binding_test_controller.rb
unpoly-rails-0.33.0 spec_app/app/controllers/binding_test_controller.rb
unpoly-rails-0.32.0 spec_app/app/controllers/binding_test_controller.rb
unpoly-rails-0.31.2 spec_app/app/controllers/binding_test_controller.rb
unpoly-rails-0.31.1 spec_app/app/controllers/binding_test_controller.rb
unpoly-rails-0.31.0 spec_app/app/controllers/binding_test_controller.rb
unpoly-rails-0.30.1 spec_app/app/controllers/binding_test_controller.rb
unpoly-rails-0.30.0 spec_app/app/controllers/binding_test_controller.rb
unpoly-rails-0.29.0 spec_app/app/controllers/binding_test_controller.rb
unpoly-rails-0.28.1 spec_app/app/controllers/binding_test_controller.rb
unpoly-rails-0.28.0 spec_app/app/controllers/binding_test_controller.rb