instance method
variable_name
Ruby on Rails 3.0.20
Since v3.0.20 Last seen in v3.0.20Signature
variable_name()
No documentation comment.
Source
# File actionpack/lib/action_view/template.rb, line 150
def variable_name
@variable_name ||= @virtual_path[%r'_?(\w+)(\.\w+)*$', 1].to_sym
end
Defined in actionpack/lib/action_view/template.rb line 150
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionView::Template