My default templating engine is haml, but I would to sometimes change it to erb if i specify a specific parameter?
For example, I am pasting in some html code and would just like to test the code without HAML complaining about its format.
Any idea how to do this?
do something like:
and call the action with ?render_erb=true
or
and call it ?render=haml or ?render=erb (or nothing and it will use the default
at the end of the controller’s action that you are using