On Tuesday 21 April 2009 21:37:14 Wesley C. wrote:
I want a book talking about rhtml, with most of the tags included.
No you don’t. That would be a horrible book.
Here’s what ERB is:
<% some ruby code %>
That will evaluate the string “some ruby code” as Ruby.
<%= some ruby code %>
That will evaluate the string “some ruby code” as Ruby, and insert its
value into the document.
That is it. That’s all. You can play with this in Rails by creating a
document and inserting those tags into it – obviously, with real Ruby,
instead of just the text “some ruby code”.
Everything else you see in an “RHTML” document is HTML, not ERB. There
nothing magic about RHTML – it is simply the combination of HTML and
So, what you probably want is a book on HTML and CSS before you even
with Rails. You might also want a book on just Ruby, before you try
Also, this list is about Ruby, not Rails. If you have Rails-specific
you should ask the Rails list.