Ruby on Rails not rendering HTML in browser

I've just noticed someone has come to our blog after searching for the terms in the title of this page. It reminded me of a frustrating hour or so when I first started using rails where the RHTML page I was writing was doing (or not doing) just that. Just in case anyone is having the same newbie problem I'll hold my hand up say it was this:

make sure any embeded Rails code is surrounded by these delimeters:


 <%=      %> #(note the equals)

and not these:


<% %>

Hope this helps.

Your rating: None

When starting out on something new it's all too easy too assume you've got something complex wrong when in fact it's something stupid