Hi,
Is there a way to change to the views’ file extensions from .rhtml
to .html ?? If yes, how can I do that?
Thanks,
Prasad
Hi,
Is there a way to change to the views’ file extensions from .rhtml
to .html ?? If yes, how can I do that?
Thanks,
Prasad
On 11 Jun 2008, at 14:24, Prasad wrote:
Hi,
Is there a way to change to the views’ file extensions from .rhtml
to .html ?? If yes, how can I do that?
Not quite sure why you would want to do that, but
ActionView::Template.register_template_handler :html,
TemplateHandlers::ERB
might do the trick (in rails 2.1)
Fred
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs