gregbell/active_admin — Issue #649: CustomController for non-model
Author: fu-media
Created: 2011-10-20 05:39:04+00:00
State: open

How can i make an Controller for non-active-record model, just for misceleanous stuff operations like generate statistics, export special format data etc?

my original problem:
i have a stats-model, but the onlies action on this should be to upload CSV data ( i need 5 input fields, for 5 different actions)

how can i do this on the index screen? i dont need to see the data.

i tried with

def index
#render my own template
end

but i fail with the layout

render :layout=>"active_admin" or render :layout=>"activeadmin" fails.

can anyone help me?