into the Post model
In this case, can I only make one column on db?
If i have any other method, would you like to professor m () m
Answer # 1
The basics of this are explained in detail in 9 Creating Complex Forms in the Action View Form Helper in the Rails Guide. It's a good idea to read through the Action View Form Helper from the beginning.
To summarize the points, instead of adding a column to the Posts table, you will have a separate table to store the date, location, and contents, and associate it with a record in the Posts table.
- ruby on rails - i want to save multiple model columns with form_with
- ruby on rails - if you generate multiple form_with with rails 6, only the first two behaves strangely
- ruby - creating rails controller
- ruby on rails - collection_select multiple: true cannot be used well
- ruby on rails - how to distinct with two columns in activerecord
- ruby on rails - about rails db: seed when creating rails api in docker environment
- ruby on rails - when you want to add more columns after generating a migration file with rails and adding columns
- ruby on rails 5 - i want to return multiple link_to in decorator
- ruby on rails - while creating an ec site with rails, an error nomethoderror in cartscontroller#add_item appears when trying to
- ruby on rails - how to link multiple rails apps with docker-compose?
- ruby on rails - rails new post form for multiple views render destination is each view
- ruby on rails - if you specify multiple relations, test will not pass
- ruby - how to get "id" before creating "rails" record
- ruby on rails - the contents defined by enum cannot be displayed on the index or show screen
- ruby - i want to set something like the initial data of rails console
- ruby - about rails link_to
- ruby on rails - how to write a rails test on the top page
- ruby on rails - what should i do if heroku has a lot of storage fees other than images?
- ruby on rails - about paging using kaminari for search results using rakuten api
- ruby on rails - how to resolve actioncontroller :: urlgenerationerror
- python 3x - typeerror: 'method' object is not subscriptable
- python - you may need to restart the kernel to use updated packages error
- xcode - pod install [!] no `podfile 'found in the project directory
- android studio - unresolved reference comes out in kotlin
- android studio - emulator: dsound: could not initialize about the error message directsoundcapture
- vuejs - [vuetify] unable to locate target [data-app] i want to unit test to avoid warning
- django - oserror: [winerror 123] the file name, directory name, or volume label syntax is incorrect : '<frozen importlib_boot
- mysql startup failed [error] innodb: the innodb_system data file 'ibdata1' must be writable
- python 3x - import error "cannot import name '_imaging'"