Ruby, Programming, Ruby on Rails, Web Development.
the #p method ?? #p is similar to #puts in that it adds a new line to the end of output. However, #p calls the #inspect method on the object While #puts calls the #to_s method. also one of the most important feature of #p is that, unlike the other two methods, it doesn’t return nil. puts 1 1 => nil