Skip to content
This repository has been archived by the owner on Sep 4, 2021. It is now read-only.

Commit

Permalink
don't be strict on view template type selection when offering to crea…
Browse files Browse the repository at this point in the history
…te a new view template
  • Loading branch information
Remco van 't Veer committed Apr 8, 2011
1 parent 591809a commit 6fb2402
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rails-controller-layout.el
Expand Up @@ -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" ""
Expand Down
2 changes: 1 addition & 1 deletion rails-navigation.el
Expand Up @@ -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))))))
Expand Down

0 comments on commit 6fb2402

Please sign in to comment.