class Rspec::Generators::ScaffoldGenerator

def ns_table_name

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