Comments

  • Avatar
    fibonacci
    1 day later:

    wow, thanks for this. very cool


  • Avatar
    Ryan Heneise
    1 day later:

    The only thing is that eventually you’re going to want to go through and rename all those *.beta.erb files to *.html.erb.


  • Avatar
    Paul Canavese
    11 days later:

    You say, “You don’t have to do every view in the site because Rails will fall back to .html.erb for any views without a .beta.erb version.” I am using Rails 2.1 and I am not seeing this behavior. I get a “Template is missing” error if a template does not exist for the specified format.

    I’m using register_alias in my mime_types.rb, and I see that getting picked up.

    What Rails version are you using?


  • Avatar
    Wynn Netherland
    11 days later:

    @Paul, You caught me! After you comment, I tested and it appears that it only works if your html templates are still .rhtml (as ours still are).

    Sorry for that. I’ll update the article. Thanks!




Have a take?