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

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -