Sha256: be360980b7c30ca31bd59d57bb9f490f5b26542725470c5e327309fc6a9b177a

Contents?: true

Size: 744 Bytes

Versions: 5

Compression:

Stored size: 744 Bytes

Contents

class PeopleController < ActionController::Base
  respond_to :xml, :pdf

  def index
    @people = Person.all

    @parameter_defined_in_the_controller = "I'm a parameter. I was defined in the controller"

    respond_with @people
  end

  def compile_time_error_report
    respond_with []
  end

  def runtime_error_report
    respond_with []
  end

  def nil_datasource
    @parameter_defined_in_the_controller = "I'm a parameter. I was defined in the controller"
    respond_with nil
  end

  def java_parameter
    title = (Rjb::import 'java.lang.String').new("The Beatles")
    @parameter_that_is_a_java_class = (Rjb::import 'java.util.HashMap').new
    @parameter_that_is_a_java_class.put("title", title)

    respond_with nil
  end

end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
jasper-rails-2.0.0.beta1 spec/internal/app/controllers/people_controller.rb
obrientimothya-jasper-rails-0.0.2 spec/internal/app/controllers/people_controller.rb
obrientimothya-jasper-rails-0.0.1 spec/internal/app/controllers/people_controller.rb
jasper-rails-1.0.3 spec/internal/app/controllers/people_controller.rb
jasper-rails-1.0.2 spec/internal/app/controllers/people_controller.rb