Browse the Ruby on Rails Community.

You are here: Forums Ask a Rails expert difference between erb &rhtml...

Replytotopic

difference between erb &rhtml

Posted in Forums : Ask a Rails expert

 
Warrior

Authority 12
Posting Rating 3
Sign in to rate this post

hi to everyone whats the difference between html.erb & rhtml

 
Me

Authority 62
Posting Rating 100
Sign in to rate this post

Nothing, really. It’s just a change of philosophy between Rails 1 and Rails 2. Before Rails 2, you had file.rhtml, file.rxml and file.rjs. In Rails, that changed to file.content_type.template_engine. So with file.html.erb, the content type is html and the template engine is ERb. rxml is now xml.builder and rjs should now (mostly) be js.rjs.

 
Warrior

Authority 12
Posting Rating 3
Sign in to rate this post

Thanku

Replytotopic

Other Recent Topics

Ask a Rails expert : How to work with ror 2.1.1 using Netbeans IDE 6.1

Ask a Rails expert : json gem error

Ask a Rails expert : Problem with break

Ask a Rails expert : activesupport string first method error

Ask a Rails expert : url_for broken ?

Ask a Rails expert : map.routes.rb pls help

Ask a Rails expert : how to h tag in controller

Ask a Rails expert : Problem with Restful routing and partial form

Ask a Rails expert : will_paginate, search and ajax

Ask a Rails expert : captcha

Formatting Help
  • *bold*       _italics_      
    bq. (quotes)
  • "DSC":http://www.dsc.net
  • * or # (lists)
or cancel