method
public_path
v7.2.3 -
Show latest stable
- Class:
Rails
public_path()public
Returns a Pathname object of the public folder of the current Rails project, otherwise it returns nil if there is no project:
Rails.public_path # => #<Pathname:/Users/someuser/some/path/project/public>