instance method
field_id
Ruby on Rails 5.1.7
Since v5.1.7 Last seen in v5.1.7 Private — implementation detail, not part of the public APISignature
field_id(attribute_name)
No documentation comment.
Parameters
-
attribute_namereq
Source
# File railties/lib/rails/generators/named_base.rb, line 152
def field_id(attribute_name)
[singular_table_name, attribute_name].join("_")
end
Defined in railties/lib/rails/generators/named_base.rb line 152
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Rails::Generators::NamedBase