-1
我的问题属于Rails命名约定难题。我的应用程序已经注册,登录,注销功能。Rails命名约定问题
对于注册页面,我使用了form_for(@user)
帮手。
对于登录页面,我使用了form_for(:session, url: sessions_path)
。但是在我的routes.rb文件中,我已经包含了resources :sessions
而不是如登录页面中form_for helper参数中提到的单数形式。
,如果有人能:
1)解决这种特殊的form_for问题
2.) More importantly point me in the direction where I can learn/read about Rails naming conventions, I would be highly indebted.
所以你基本上是说,存在之间没有相关性:在的form_for助手和会话符号的资源:会议?我可以调用任何参数,即form_for(:foobar,sessions_path)? –
这正是我所说的 –