Top "Erb" questions

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

What is the difference between .erb , .rhtml and .html.erb?

What is the difference between .erb, .rhtml and .html.erb?

ruby-on-rails erb rhtml
Should I use haml or erb or erubis for potentially high traffic site?

I have been playing with Haml recently and really like the way the resulting code looks to me...the developer. …

ruby-on-rails ruby haml erb eruby
rails page titles

I don't like the way rails does page titles by default (just uses the controller name), so I'm working on …

html ruby-on-rails title erb
Ruby ternary operator in erb?

How can I make this code look better: <%=raw manuscript.uploaded_to_s3? ? "<span style=\"color:green;\">" : "&…

ruby ruby-on-rails-3 erb ternary-operator
ERB vs HAML conversion of an if condition?

I am getting started with HAML and am working on my converting my first file. The ostensibly correct omission of …

ruby-on-rails haml erb
Passing argument to '.js.erb' template

I want to pass some arguments to the my Javascript template in Rails3 application What I try with respond_to …

ruby-on-rails ruby-on-rails-3 erb
Create file using template.erb

I am fairly new to ruby and chef, I wanted to know if there is a way to create a …

ruby erb chef-infra
Leaflet Marker not found production env

I got a problem with leaflet. Everything is working fine in development, but in production, my app isn't able to …

javascript ruby-on-rails leaflet erb
Proper place to define variables used by my erb templates + layouts for HTML styles?

I have a local variable in an erb template: <% thumbnail_width = 50 %> I'm using this for sizing some thumbnail …

ruby-on-rails erb
application.css not being served as an asset

EDIT 4, 5 and 6 8 hours in, any more ideas are welcome :) Maybe this bug is already known and solved, but I get …

ruby-on-rails css erb asset-pipeline pre-compilation