Errors in Rails Deployment

Asked 2 years ago, Updated 2 years ago, 38 views

https://railsguides.jp/getting_started.html
I am creating an application for rails in accordance with the url tutorial above, but in 5.2 First Form, I will
read the contents of new.html.erb. <%=form_for:article, url:articles_pathdo|f|%>
A syntax error was ejected when changing to .
This is a syntax error, so check how to write form for
http://www.sejuku.net/blog/13163,
I found this site
<%=form_forarticle, url:articles_pathdo|f|%>
or
<%=form_for @article, url:articles_pathdo|f|%>
The syntax error continues to appear after rewriting to .
How is it right to rewrite this sentence?
Or is there another cause?
If you know anything about rails, please reply.

The operating system is Windows 7, ruby is 2.4.2, and rails is 5.1.4.
The following error occurred:

blog (application folder)/app/views/articles/new.html.erb:2:syntax error, unexpected':'[email protected]:articles_pathdo|f|@output_^blog/app/views/articles/new.htitle.ktnerx:20:sentax:

ruby-on-rails ruby

2022-09-30 18:01

1 Answers

<%=form_for:article, :url=>articles_pathdo|f|%> solved the problem.


2022-09-30 18:01

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.