2011-11-28 1 views
0

Active Admin 용 dashboards.rb 파일에서이 부분을 만들었습니다. 부분에 변수를 전달해야하므로/Admin의 대시 보드 섹션에서 해당 데이터를 렌더링 할 수 있습니다. 제어기에서 방정식을 만들거나 부분 방정식을 얻을 수있는 곳에서 부분 방정식을 전달해야합니다. 활성 관리자는 어디에서 그렇게 할 수 있습니까? 이 링크는 더 이상 작동하지 않습니다"@answers = Answer.all"과 같은 컨트롤러 논리를 Active Admin 부분에 전달

https://github.com/gregbell/active_admin/wiki/

답변

1

그것은 좋은 설명뿐만 아니라 다른 케이크 여기을 가지고, 위키를 사용해보십시오. 업데이트 된 링크 및 답변.
+0

... 피드백에 대한 – santuxus

+1

감사 :

# == Render Partial Section # The block is rendered within the context of the view, so you can # easily render a partial rather than build content in ruby. # section "Month One Statistics" do div do render 'recent_graphs' # => this will render /app/views/admin/dashboard/_recent_posts.html.erb end end 

관련 문제