Tag: object

  • Debugging with Exceptions – Ruby on Rails

    Ran into a bit of trouble with a model today, after a bit of a google I came across this technique which helped me solve it: #Raise exception on object.inspect raise Object.inspect #Example 1 raise order.inspect #Example 2 raise [sub_orders.count].inspect This simply allows you display variable values as an exception. By placing a few of…

Create a website or blog at WordPress.com