mirror of https://github.com/rails/rails
script/new_controller should create directory for views even when no actions are specified [bitsweat]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@36 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
parent
eec4638eb6
commit
9200dad7c9
|
@ -61,6 +61,9 @@ module Generator
|
|||
# Function test.
|
||||
generate_file "controller_test.erb", "test/functional/#{file_name}_controller_test.rb"
|
||||
|
||||
# Create the views directory even if there are no actions.
|
||||
FileUtils.mkdir_p "app/views/#{file_name}"
|
||||
|
||||
# View template for each action.
|
||||
@actions.each do |action|
|
||||
generate_file "controller_view.rhtml",
|
||||
|
|
Loading…
Reference in New Issue