We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support optional Active Model methods:
to_param() Link
Returns a string representing the object's key suitable for use in URLs, or nil if persisted? is false.
person = Person.new person.to_param # => "1"
to_partial_path() Link
Returns a string identifying the path associated with the object. ActionPack uses this to find a suitable partial to represent the object.
person = Person.new person.to_partial_path # => "people/person"
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Support optional Active Model methods:
to_param() Link
Returns a string representing the object's key suitable for use in URLs, or nil if persisted? is false.
to_partial_path() Link
Returns a string identifying the path associated with the object. ActionPack uses this to find a suitable partial to represent the object.
The text was updated successfully, but these errors were encountered: