I find it difficult to understand how ActiveAdmin (http://activeadmin.info/) works with existing controllers
I have the following controllers
app/controllers/projects_controller.rb
and I was able to successfully implement the ActiveAdmin interface according to my views in the above controller. But my question is: I added the following before_filter to my controller.
class StaticContentsController < ApplicationController before_filter :list_content_types def index @static_contents = StaticContent.all end end
But this filter does not seem to be executed, in fact I changed the code inside the index method to
@static_contents = abc StaticContent.all
The error due to the "abc" section is also given, but surprisingly my application is working with an error. I assume that "ActiveAdmin" reads controllers, my own, not existing ones.
this is my pointer action path
http:
and this is in development mode
Can someone help me understand how the controllers work with ActiveAdmin or am I missing something here?
My configs are listed below
rails (3.0.0) ruby โโ1.8.7 activeadmin (0.3.2)
early
Sameera
source share