Permalink
Browse files

changes from .rhtml to .html.erb

  • Loading branch information...
1 parent dc8d6c4 commit ccf020045e77cbfa68f5e17307bcc1b0fb27759d @eschulte committed Dec 27, 2008
Showing with 3 additions and 3 deletions.
  1. +2 −2 rhtml-mode.el
  2. +1 −1 rhtml-navigation.el
View
@@ -53,7 +53,7 @@
;; disable if you don't want it...
(rhtml-activate-fontification))
-(add-to-list 'auto-mode-alist '("\\.rhtml$" . rhtml-mode))
+(add-to-list 'auto-mode-alist '("\\.html\\.erb$" . rhtml-mode))
(define-key ruby-mode-map
"\C-c\C-v" (lambda () (interactive) (toggle-buffer 'rails-view)))
@@ -63,7 +63,7 @@
(defun extract-partial (begin end partial-name)
(interactive "r\nsName your partial: ")
(kill-region begin end)
- (find-file (concat "_" partial-name ".rhtml"))
+ (find-file (concat "_" partial-name "\\.html\\.erb"))
(yank)
(pop-to-buffer nil)
(insert (concat "<%= render :partial => '" partial-name "' %>\n")))
View
@@ -38,7 +38,7 @@
(defun rhtml-find-partial (partial)
(interactive "MPartial: ")
- (find-file (concat "_" partial ".rhtml")))
+ (find-file (concat "_" partial "\\.html\\.erb")))
;; utility functions

0 comments on commit ccf0200

Please sign in to comment.