7stud -- wrote:
What about the params hash?
And the standard library module yaml can format the output for you:
require 'yaml'
params = {:name => "Ted", :age => 32, :email => "xxx@yyy.com"} puts YAML.dump(params)
--output:--
7stud -- wrote:
What about the params hash?
And the standard library module yaml can format the output for you:
require 'yaml'
params = {:name => "Ted", :age => 32, :email => "xxx@yyy.com"} puts YAML.dump(params)
--output:--