2012-11-23 34 views

回答

2

你應該檢查http://activeadmin.info/docs/8-custom-actions.html#member_actions,並且,你可以設定行動:

actions :update 

在會員行爲您可以集中精力來更新實例。

-

嗨再次,今天我做了這樣的事情,簡單的,這就是我所做的:

  1. 賺了指數看起來像一個博客http://activeadmin.info/docs/3-index-pages/index-as-blog.html
  2. 僅使用行動:指數,編輯,更新
  3. 使用範圍http://activeadmin.info/docs/2-resource-customization.html#scoping_the_queries(另外,如果你想叫你只能使用範圍,而不是scope_to範圍從模型)。

希望它有幫助。

相關問題