Icon_search

Items tagged with "erb"

Show:  All  |  News Items  |  Blog Posts

Blog Posts

Rails inline ERb effects on HTML structure

Mar 20, 2007 by Travis

When using Ruby on Rails, ERb (embedded Ruby) is used a LOT in the X/HTML. There are two types of ERb, An evaluation block: <% some_code %> And an output block: <%= @print_this_variable %> These blocks are necessary when using Rails, and I've noticed that when I do a 'View Source' (via the Web Developer addon for Firefox, of course), I se...

Tagged: ruby on rails, rails, ruby, erb, xhtml