更新时间:2021-12-27 22:27:38
这对很多人都有用反复试验的结果:
This worked for me after lots of trial and error:
<%= button_to'Vote',request_upvote_path(request_id:request.id),remote:true,方法: :post,onclick: upvote(#{request.id})%>
为什么我的 Storyboard 中的视图控制器不断消失?
为什么不从视图中调用我的控制器