instance method
readme
Ruby on Rails 4.0.13
Since v3.0.20Signature
readme(path)
Reads the given file at the source root and prints it in the console.
readme "README"
Parameters
-
pathreq
Source
# File railties/lib/rails/generators/actions.rb, line 231
def readme(path)
log File.read(find_in_source_paths(path))
end
Defined in railties/lib/rails/generators/actions.rb line 231
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Rails::Generators::Actions