`
bound
  • 浏览: 15990 次
  • 性别: Icon_minigender_1
  • 来自: 上海
最近访客 更多访客>>
社区版块
存档分类
最新评论

ROR ERROR:Couldn't find Book without an ID

 
阅读更多
Here are two solution :

1:
change
<form action="../update/" method="POST">
to
<form action="../update/<%=@book.id%>" method="POST">

2:
change
<input id="book_id" name="book[id]" size="30" type="hidden" value="<%=@book.id%>"/>
to
<input id="id" name="book[id]" size="30" type="hidden" value="<%=@book.id%>"/>


分享到:
评论
2 楼 bound 2006-10-30  
我才学,还不知道helper这个东西

我来看看helper是干什么的
1 楼 cookoo 2006-10-30  
为什么不直接用helper呢?

相关推荐

Global site tag (gtag.js) - Google Analytics