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 : HTML to XML ---> get title & description

Ask a Rails expert : Accessing controller actions from scripted page?

Ask a Rails expert : seledted option for select_tag

Ask a Rails expert : Merging fields from two tables into one, including duplicates

Ask a Rails expert : saving has_many :through

Ask a Rails expert : Use Rails to develop sites for both Designer and Programmer

Ask a Rails expert : Rails+RS232

Ask a Rails expert : Is this a good way to add Admin section

Ask a Rails expert : RSS feed maker in rails 2.1

Ask a Rails expert : Syncing with ugly legacy databases

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