
class HelloController < ApplicationController def there @data_hash = params[:cruncher] @cruncher = Cruncher.new(@data_hash[:crunch]) @data = @cruncher.crunch end def input @cruncher = Cruncher.new("AAA") end end
class HelloController < ApplicationController def there @data_hash = params[:cruncher] @cruncher = Cruncher.new(@data_hash[:crunch]) @data = @cruncher.crunch end def input @cruncher = Cruncher.new("AAA") end end