Permalink
Browse files

don't be strict on view template type selection when offering to crea…

…te a new view template
  • Loading branch information...
1 parent 591809a commit 6fb24023d2d89bf743aa2a6b6085e0f8cb3eda2c @remvee committed Apr 8, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 rails-controller-layout.el
  2. +1 −1 rails-navigation.el
@@ -75,7 +75,7 @@
(completing-read (format "View for %s#%s not found, create %s.[%s]? "
controller-name action-name action-name type)
rails-templates-list
- nil t type))
+ nil nil type))
(setq rails-controller-layout:recent-template-type type)
(let ((file (rails-core:file (concat "app/views/"
(replace-regexp-in-string "_controller" ""
View
@@ -182,7 +182,7 @@
(when name
(let* ((default-type (or rails-controller-layout:recent-template-type (car rails-templates-list)))
(type (completing-read (format "Create %s.[%s]? " name default-type)
- rails-templates-list nil t default-type)))
+ rails-templates-list nil nil default-type)))
(rails-core:find-file (rails-core:file (format "app/views/layouts/%s.%s" name type)))
(if (y-or-n-p "Insert initial template? ")
(insert rails-layout-template))))))

0 comments on commit 6fb2402

Please sign in to comment.