Home>
I want to jump to the show action of the Users controller when there is an error in the create action of the Messages controller in development with rails, but I don't know how to write it.
render template: "controller name/action name"
I knew that I could jump to the action of another controller by writing, but if it is a show action, I don't know how to jump to the show screen of a specific user.
Thanks for your cooperation.
-
Answer # 1
Related articles
- ruby - about rails controller new action
- ruby on rails - not saved by create action
- ruby on rails - about passing view and controller data with rails
- ruby on rails - unable to create controller
- ruby - pass the value from the controller in the rails model
- ruby on rails - unknown action error when trying to post a comment
- ruby on rails - [rails] unintended action is called by the search function using jquery
- ruby on rails - about rails create action
- ruby on rails 5 - rspec controller test doesn't work
- ruby - [rails aws ec2] action cable works on port 3000 on aws, but an error occurs on port 80 (http)
- ruby on rails - helper cannot be read by controller
- ruby on rails - create a chat feature with action cable on ec2 on rails aws
- ruby - how do you see the rails controller relative path? (carrierwave directory deleted)
- ruby on rails - join a group created by another user
- ruby on rails - when calling the create action, the name attribute changes depending on whether it is indexhtmlerb or newhtmlerb
- ruby - data is not updated by update action rails
- ruby on rails - error in controller when transitioning with rails6 destory action
- ruby on rails - how to retrieve id in controller with nested routing
- ruby on rails - cannot pass id to destroy action of intermediate table
Trends
- 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
- javascript - how to check if an element exists in puppeteer
- dart - flutter: the instance member'stars' can't be accessed in an initializer error
- sh - 'apt-get' is not recognized as an internal or external command, operable program or batch file
- i want to call a child component method from a parent in vuejs
- python 3x - typeerror: 'method' object is not subscriptable
See also: https://pikawaka.com/rails/redirect_to