【发布时间】:2015-01-02 11:12:54
【问题描述】:
我有一个ActiveRecord::Base 类Box 那个has_many Cards 模型。
盒子show.html.erb里面有一些卡片是这样的:
views/boxes/show.html.erb
...
<% @cards.each do |card| %>
<%= best_in_place card, :front %>
<% end %>
...
我想使用best_in_place 来编辑值,但是它将请求发送到BoxesController 而不是CardsController 并最终出现错误AbstractController::ActionNotFound - The action 'update' could not be found for BoxesController:。
如何使用best_in_place 指定控制器?
【问题讨论】:
标签: ruby-on-rails ruby best-in-place