I cloned the flea market apps.
I want to implement a like function on the user's detail page
I want to add a like function, but when I look it up, I can only find a like function for the posted one.
I want to add a like function to a user, but when I look it up, I can only find a like function for what I posted.
I would like you to teach me how to do it.
Or it would be helpful if you could tell me the site about it
Answer # 1
Make a new table
・ Liked user id
・ Liked user id
And make a column.
I think you should read and write the table.
- ruby on rails - implementation of validation function
- ruby on rails - [rails] i want to implement a filtering function and display the corresponding items on the list screen
- ruby - [rails] [asynchronous] like function: the number of likes is not displayed normally
- ruby on rails - view all tweets of the users you are following in chronological order
- ruby - [rails] the cart function cannot get the cart id associated with the user
- ruby on rails - i want to implement a function (destroy action) that can delete posted messages, but i am getting an active reco
- ruby on rails - comment posting function actioncontroller :: urlgenerationerror
- ruby on rails - i want to create an image posting function with react (typescript), formik, rails api, activestorage
- ruby on rails - cart function routing error cannot be resolved
- [ruby on rails 6] i implemented the tag function using acts-as-taggable-on, but i can't jump to the linked article from the list
- ruby - how nice! function routes do not pass well (relation) [rails]
- ruby on rails - with the product listing function, an error message appears only for the product description
- ruby on rails - i want to implement a function for administrator users to register luggage for general users in rails
- ruby on rails - rspec of the like function how to get the number of likes or how to reflect by clicking the icon
- ruby on rails - i can't implement the rails like function
- ruby on rails - [rails] chat function is being implemented jserb file cannot be read
- ruby on rails - i want to implement a report function, but i get an actioncontroller :: urlgenerationerror
- ruby on rails 6 - [rails]'unfollow' function does not work * no error message
- ruby - post photo&like function on rails self-introduction page
- python - you may need to restart the kernel to use updated packages error
- php - coincheck api authentication doesn't work
- php - i would like to introduce the coincheck api so that i can make payments with bitcoin on my ec site
- [php] i want to get account information using coincheck api
- the emulator process for avd pixel_2_api_29 was killed occurred when the android studio emulator was started, so i would like to
- python 3x - typeerror: 'method' object is not subscriptable
- i want to call a child component method from a parent in vuejs
- dart - flutter: the instance member'stars' can't be accessed in an initializer error
- xcode - pod install [!] no `podfile 'found in the project directory