Ruby debug ERB template displaying in ruby

Question: Instead of converting the output from my ERB template, is there a parameter, parameter, or hack that I can use that will output the raw ruby ​​code that is generated just before the conversion starts?

Rationale: I am having trouble figuring out an ERB template syntax error and I would like to see a simple ruby ​​code that the ERB generates. If anyone has alternative methods for debugging and tracking specific problems in the ERB, please log in.

TIA

+1


a source to share


1 answer


You can get information about the objects you are using with debug (@object). It can help you understand what you are working with and what you can do with it.



+2


a source







All Articles