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 - missing required keys: i'm having trouble resolving the [: id] error
- ruby on rails - how to transition from the top page
- ruby on rails - i want to implement a function for administrator users to register luggage for general users in rails
- ruby on rails - things associated with a foreign key cannot be called in view
- ruby on rails 6 - environment construction of ruby on rails
- ruby on rails 5 - actioncontroller :: invalidauthenticitytoken cannot be resolved
- ruby on rails - error in controller when transitioning with rails6 destory action
- ruby on rails - access fails after seed after deploying to heroku
- ruby on rails runtime error cannot be resolved
- ruby - the last db setting doesn't work when deploying rails app on aws
- ruby on rails - rails s can't
- bootstrap display in ruby on rails is broken
- ruby - [rails] i can't install the add favorite button
- ruby on rails - dealing with wrong number of arguments (given 1, expected 2)
- ruby on rails - seed fails on heroku
- ruby on rails - cannot pass id to destroy action of intermediate table
- ruby on rails - how to manage prefectures in rails web applications
- ruby on rails - i want to post an image by dragging and dropping