irb (main): 010: 0>profile.user_id = user.id
Traceback (most recent call last):
1: from (irb): 10
NameError (undefined local variable or method `user 'for main: Object)
Did you mean? Super
irb (main): 011: 0>
I want to create a console, but I get an error.
Confirmed by User.count, one is included.
Learning while watching the video, the video seems to work normally.
I have researched various things, but I can't find a clue for the solution.
Answer # 1
profile.user_id = user.id ｀user = User. For example,user = User.first`
- ruby on rails 5 - undefined local variable or method error cannot be resolved
- ruby on rails - when i make a message, i want the date to be displayed, but i get "undefined method` strftime' for nil: nil
- ruby on rails - nameerror in looks # index
- ruby on rails - i want to resolve rails nameerror
- ruby - i can't build a rails local server rails s
- ruby on rails 6 - undefined method `id'for: article: symbol resolution in rails
- ruby on rails - undefined method `merge'for
- ruby on rails 6 - use the local wsdl file in the soap client
- ruby on rails - can't connect to local mysql server through socket'/tmp/mysqlsock' (2 "no such file or director error"
- [ruby on rails] i can no longer start the app in the local environment
- ruby on rails - nameerror in contacts # index
- ruby on rails 5 - undefined method `tomorrow'for 00: i would like to know how to solve bigdecimal
- ruby on rails - i want to resolve nameerror in micropostscontroller # search
- ruby on rails - please tell me how to solve the undefined method `errors' for nil:nilclass
- ruby - rails: fattachment_field gives undefined method error
- ruby on rails: undefined method ʻuser'for nil: about nomethoderror of nilclass
- ruby - [rails] about nameerror
- slim - nameerror in ruby on rails
- ruby on rails - i get an error when i log in
- ruby on rails data is not saved in db? ??
- 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
- python - you may need to restart the kernel to use updated packages error
- 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
- xcode - pod install [!] no `podfile 'found in the project directory
- vuejs - [vuetify] unable to locate target [data-app] i want to unit test to avoid warning
- i want to call a child component method from a parent in vuejs