[Updated from time to time] Ruby on Rails Convenient methods

I want to know the aliased attribute.

pry(main)> Member.attribute_aliases
=> { "user_name"=>"UserName", "mail_address"=>"MailAddress",}

I want to search with grep from the method list obtained by the methods method.

pry(main)> Member.methods.grep /attribute_aliases/i
=> [:attribute_aliases, :attribute_aliases?, :attribute_aliases=]

Recommended Posts

[Updated from time to time] Ruby on Rails Convenient methods
[Ruby on Rails] From MySQL construction to database change
How to use Ruby on Rails
[Ruby on Rails] Convenient helper method
Memorandum Poem (updated from time to time)
From 0 to Ruby on Rails environment construction [macOS] (From Homebrew installation to Rails installation)
From Ruby on Rails error message display to Japanese localization
Ruby on Rails --From environment construction to simple application development on WSL2
[Ruby on Rails] How to use CarrierWave
Deploy to Heroku [Ruby on Rails] Beginner
Preparing to introduce jQuery to Ruby on Rails
Summary of results of research on object orientation [Updated from time to time]
[Ruby on Rails] How to use redirect_to
How to convert param to hash with Rails controller (updated from time to time)
[Ruby on Rails] How to use kaminari
[Ruby on Rails] Button to return to top
Change from SQLite3 to PostgreSQL in a new Ruby on Rails project
Ruby on Rails DB Tips for creating methods to reduce the load
Environment construction of Ruby on Rails from 0 [Cloud9] (From Ruby version change to Rails installation)
Deploy to Ruby on Rails Elastic beanstalk (EB deploy)
[Reverse lookup] Spring Security (updated from time to time)
[Ruby on Rails] How to display error messages
How to add / remove Ruby on Rails columns
SpringBoot useful site collection (updated from time to time)
[Updated from time to time] Links that are indebted
Touch all Spring "Guides" (updated from time to time)
[Ruby on Rails] How to install Bootstrap in Rails
[Ruby on Rails] How to use session method
Ruby on Rails Elementary
Ruby on Rails basics
From Java to Ruby !!
Ruby On Rails Association
Git commands that new engineers should look back on [updated from time to time]
Method summary to update multiple columns [Ruby on Rails]
[Ruby on Rails] How to write enum in Japanese
Introduction to programming for college students (updated from time to time)
[Ruby on Rails] How to change the column name
[Ruby on Rails] Change URL id to column name
Deploy to Ruby on Rails Elastic beanstalk (Environment construction)
[Ruby On Rails] How to reset DB in Heroku
[Eclipse] Summary of environment settings * Updated from time to time
(Ruby on Rails6) Reflecting the posted content from the form
(Ruby on Rails6) How to create models and tables
Settings to be done when changing from Sublime Text to VScode (when writing Ruby On Rails)
[Ruby on rails + Mysql] Data migration procedure memo when switching from heroku to AWS
[Ruby On Rails] De-root_path! Redirect notation from a nested "child" view to a nested "parent": show
Ruby on rails learning record -2020.10.03
Ruby on rails learning record -2020.10.04
[Ruby on Rails] Debug (binding.pry)
Ruby on rails learning record -2020.10.05
Ruby on rails learning record -2020.10.09
Ruby on Rails config configuration
Ruby on Rails basic learning ①
[Ruby on Rails] about has_secure_password
Ruby on rails learning record-2020.10.07 ②
Commentary on partial! --Ruby on Rails
Ruby on rails learning record-2020.10.07 ①
Cancel Ruby on Rails migration
Ruby on rails learning record -2020.10.06
Ruby on Rails validation summary
Ruby on Rails Basic Memorandum