Patches: Browse | Submit New | Admin

[#16372] Rails 2.0 controller-view switching

Date:
2007-12-17 13:01
Priority:
3
Submitted By:
Igor Drozdov (igor_drozdov)
Assigned To:
Tom Ten Thij (tomtt)
Category:
None
State:
Open
Summary:
Rails 2.0 controller-view switching

Detailed description
Rails 2.0 has new default extension for view files .html.erb in place of .rhtml. Attached patch fixes automatic switching
between the controller and the view.

Note: this will break work with rails 1.2 projects. 

suggestion: defining new file extension in .emacs file (defvar rails-templates-list ...) should be enough. It did not
work for me, for some reason, so I had to hack rails.el file.

Add A Comment: Notepad

Please login


Followup

Message
Date: 2008-04-29 19:21
Sender: Tom Ten Thij

Code has better support for additional extensions since this
patch was submitted. Is a patch still required?

Attached Files:

Name Description Download
rails_2_views_patch.txt Download

Changes:

Field Old Value Date By
assigned_tonone2008-04-29 19:22tomtt
File Added2958: rails_2_views_patch.txt2007-12-17 13:01igor_drozdov