class Rspec::Generators::ScaffoldGenerator

def ns_file_name

support for namespaced-resources
def ns_file_name
  return file_name if ns_parts.empty?
  "#{ns_prefix.map(&:underscore).join('/')}_#{ns_suffix.singularize.underscore}"
end