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:
David Heinemeier Hansson 2004-12-01 12:07:07 +00:00
parent eec4638eb6
commit 9200dad7c9
1 changed files with 3 additions and 0 deletions

View File

@ -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",