instance method
complex_template
Ruby on Rails 2.3.18
Since v2.2.3 Last seen in v2.3.18Available in: v2.2.3 v2.3.18
Signature
complex_template(relative_source, relative_destination, template_options = {})
No documentation comment.
Parameters
-
relative_sourcereq -
relative_destinationreq -
template_optionsopt = {}
Source
# File railties/lib/rails_generator/commands.rb, line 309
def complex_template(relative_source, relative_destination, template_options = {})
options = template_options.dup
options[:assigns] ||= {}
options[:assigns]['template_for_inclusion'] = render_template_part(template_options)
template(relative_source, relative_destination, options)
end
Defined in railties/lib/rails_generator/commands.rb line 309
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Rails::Generator::Commands::Create