.rhtml vs .html.erb

Forums > Book - Chapter 2 > .rhtml vs .html.erb

Login to post a new topic

Author Message
vgumiel
Member since 30 Sep 15:46
0 posts

I’m on page 35, and realized that generate controller generates view files with extension .html.erb instead of .rhtml. I imagine is because of a newer version. However when I type the code for listing all pages in index.html.erb, doesnt seem to work. The page loads but without the list of all pages, just the header and left menu.. Any pointers??

vgumiel
Member since 30 Sep 15:46
0 posts

hmmmm it’s working now, but one of those esoteric things. I’m not sure why is working now. I guess the “yield” call forwards rendering from layout to page view..