ruby on rails 3 - Print a variable to console in Haml to debug Rspec -
has just landed on a Rail 3 app which uses HEMM I am running a test of rupees and one for console I am trying to print the variable value. In the ARB or in a .rb file, you just do:
p my_variable.inspect or string interpolation:
p "This is my variable # {my_variable}" I have tested my own Let me run, evaluating my variables get a good printout on the console. Now, how do you do in Hemel?
Then use the bus at Hall:
- p my_variable
Comments
Post a Comment