def create_rails_view
      name = @view.underscore
      Rails.application.eager_load! if ApplicationController.descendants.length == 0
      controllers = ApplicationController.descendants.map { |cont| cont.name.gsub('Controller', '').underscore }
      dirname = controllers.include?(name) ? name : name.pluralize
      empty_directory "app/views/#{dirname}"
      if Gem.loaded_specs.has_key? 'haml-rails'
        file = "app/views/#{dirname}/index.html.haml"
        copy_file "boilerplate/views/rails_view.html.haml", file
        gsub_file file, /placeholder/, name
      else
        file = "app/views/#{dirname}/index.html.erb"
        copy_file "boilerplate/views/rails_view.html.erb", file
        gsub_file file, /placeholder/, name
      end
    end
def create_rails_view
      name = @view.underscore
      Rails.application.eager_load! if ApplicationController.descendants.length == 0
      controllers = ApplicationController.descendants.map { |cont| cont.name.gsub('Controller', '').underscore }
      dirname = controllers.include?(name) ? name : name.pluralize
      empty_directory "app/views/#{dirname}"
      if Gem.loaded_specs.has_key? 'haml-rails'
        file = "app/views/#{dirname}/index.html.haml"
        copy_file "boilerplate/views/rails_view.html.haml", file
        gsub_file file, /placeholder/, name
      else
        file = "app/views/#{dirname}/index.html.erb"
        copy_file "boilerplate/views/rails_view.html.erb", file
        gsub_file file, /placeholder/, name
      end
    end
ASSUMPTION: Rails controllers will be PascalCased, file & directory names will be snake_cased