Top "Erb" questions

ERB is a simple templating system for Ruby, embedding code in any plain-text document.

Is there a way to use a Ruby loop inside of HAML's :javascript region?

Inside of HAML, can we have a loop inside the :javascript region? This will work: - 10.upto(20) do |i| :javascript …

javascript ruby loops haml erb
Add class to custom form_for label

How do I add a custom class to a form_for else statement? <%= form_for(@user) do |f| %> . . . &…

ruby-on-rails ruby erb form-for