instance variable vs. symbol in ruby on rails (form_for)

前端 未结 2 1070
自闭症患者
自闭症患者 2020-11-27 06:29

i\'m new to ruby on rails and am working with version 2.3 on mac osx. i am trying to create the same functionality a scaffold creates, but on my own. i created a \"post\" co

2条回答
  •  一整个雨季
    2020-11-27 07:04

    One possible reason is that it makes the code for the form to create a new post more similar to the code for a form to update an existing post.

提交回复
热议问题