spec/internal/app/controllers/people_controller.rb in jasper-rails-1.0.1 vs spec/internal/app/controllers/people_controller.rb in jasper-rails-1.0.2
- old
+ new
@@ -1,20 +1,33 @@
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
+ def compile_time_error_report
respond_with []
end
-
- def runtime_error_report
+
+ 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