ERB is a simple templating system for Ruby, embedding code in any plain-text document.
Sometimes it's more convenient to print in <%%>. How to do it in Rails?
ruby-on-rails erbI have an ERB template for sending an email. Name: <%= @user.name %> <% if @user.phone.present? %> …
ruby-on-rails erbI would like to use some erb in my .coffee files, like the following example myLatlng: new google.maps.LatLng(&…
ruby-on-rails erb coffeescriptI have no trouble making typical AJAX calls to and from Rails(3) with JSON objects and jQuery-rails (jQuery library plus …
jquery ruby-on-rails ajax json erbPossible Duplicate: Checking if a variable is defined in Ruby using Tilt's template render method, I pass in #... t setup ... …
ruby erbI'm using simple_form with Bootstrap and I would like to have my "Remember me" check box be inline to …
ruby twitter-bootstrap erb simple-formOn a Content model have an attribute named slug. When creating a new record, I want to use a helper …
ruby-on-rails erbI've got the following code in a Javascript ERB file: $(document).ready(function() { $("#workout-week").append( <%= escape_javascript(render :partial =&…
javascript ruby-on-rails ruby erbI have a simple fixture.yml file: label: body: "<%= variable %>" The issue is that the ERB code is …
ruby-on-rails unit-testing erb fixture