Please write your question in detail here.
(Example) I am making a ●● system with PHP (CakePHP).
The following error message occurred while implementing the ■■ function.
I'm making a blog with a personal application, but when jumping from the new button to the view, I got an ActionView :: MissingTemplate in Articles # new error.
Thanks for your cooperation
ActionView :: MissingTemplate in Articles # new
<% = render 'form', article: @article%>This is said to be strangeApplicable source code
Create a new blog
<% = image_tag 'design_img_f_1617241_s.png', class: 'article-image padding-top-15'%>
<% = render 'form', article: @article%>The error points out here.
By the way, in _form.html.erb,
<% = form_for article do | f |%>
<% = f.label: title, 'title'%>
<% = f.text_field: title, class: 'form-control'%>
<% = f.label: body, 'Body'%>
<% = f.text_area: body, rows: 10, class: 'form-control'%>
<% = f.submit 'Create new', class: 'btn btn-success'%>
It is specified like this.
<% = render 'form', article: @article%>If i change render to link_to, the title and body will disappear.
Please state what you tried for the problem here.
<% = link_to 'form', article: @article%>
Please provide more detailed information here.
Answer # 1
<% = render 'form', article: @article%>This is said to be strange
The error message is correct. It seems that
_form.html.erbdoes not exist.
- ruby on rails 5 - actionview :: template :: error cannot be resolved
- ruby - resolve actionview :: missingtemplate in devise :: sessions # new
- ruby on rails - about deploying apps using s3 function
- ruby - how to use rails link_to
- ruby on rails - multi-level category children method
- ruby on rails - rails intermediate table save
- the ruby on rails each method does not repeat well
- ruby on rails - the capacity shortage of cloud 9 and ec2 cannot be solved
- 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 want to keep the selected image when a validation error occurs in an article post
- ruby on rails - rails server cannot be started
- ruby on rails implementation of purchase history page when two are purchased at the same time
- ruby on rails 6 - please tell me how to read a constant file with helper in rails
- ruby on rails 6 - if you use multiple link_to in rails6 helper, only the last one will be reflected
- ruby on rails - rails search all columns of the parent table including specific columns of the child table when performing a par
- [ruby on rails] i can no longer start the app in the local environment
- ruby - [rails] actioncontroller :: parametermissing is displayed when using fields_for and data is not saved
- ruby on rails - i want to pass a systemspec that deletes a user
- ruby - i want rails controller @user = userwhere (logged user's date of birth + -3 years)
- ruby on rails - how to manage good images with git in rails projects
- 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