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:
<%=form_for:article, :url=>articles_pathdo|f|%>
solved the problem.
925 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
577 Who developed the "avformat-59.dll" that comes with FFmpeg?
574 rails db:create error: Could not find mysql2-0.5.4 in any of the sources
585 PHP ssh2_scp_send fails to send files as intended
626 Uncaught (inpromise) Error on Electron: An object could not be cloned
© 2024 OneMinuteCode. All rights reserved.