#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2005
    Posts
    321
    Rep Power
    13

    Which one to choose - .erb or .rhtml?


    hi,
    I am using rails 2.1.1 and i read that .rhtml is phased out in favor of .erb. In our company's existing rails application ,all the views are saved as .rhtml. Can i still use .rhtml instead of .erb? Are there any special configs?

    Thanks!
    r2b2

    (see my signature for basic info about me)
    Status : Rails Newbie
    Description : PHP programmer learning Rails using the e-book Rails for PHP Developer
    Rails Version: 2.1.1
    OS : Kubuntu 8.04
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2003
    Location
    USA
    Posts
    334
    Rep Power
    11
    Even though the original extensions i.e. .rhtml and .rxml are not slated to be fully deprecated until Rails 3.0, I would strongly recommend that you start using the new extensions ASAP.

    Comments on this post

    • destin agrees

IMN logo majestic logo threadwatch logo seochat tools logo