instance method destination_path

Ruby on Rails 2.3.18

Last seen in v2.3.18

Available in: v2.2.3 v2.3.18

Signature

destination_path(relative_destination)

Return the full path from the destination root for the given path. Example for destination_root = ‘/dest’:

destination_path('some/path.rb') == '/dest/some/path.rb'

Parameters

relative_destination req
Source
# File railties/lib/rails_generator/base.rb, line 153
      def destination_path(relative_destination)
        File.join(destination_root, relative_destination)
      end

Defined in railties/lib/rails_generator/base.rb line 153 · View on GitHub · Improve this page · Find usages on GitHub

Defined in Rails::Generator::Base

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close