How to print array or objects in rails like php print_r

    You can do this by using following code
    puts YAML::dump(<object or array name to print>)
    5
    Average: 5 (1 vote)

    User login