gregbell/active_admin — Issue #678: can't render edit page
Author: holden
Created: 2011-10-25 11:26:40+00:00
State: open

I can easily redirect but I'd like to do a render so I carry over all the validation methods into the form.

If I try render :action => 'edit' I get a template missing page
I also tried render active_admin_template('edit.html.arb') which gives me a page within a page, but no errors.

Any ideas?

member_action :state do
space = Space.find(params[:id])
if space.send(params[:state])
#space.send(params[:state]+"!")
flash[:notice] = "State Changed!"
redirect_to :action => :index
else
#render :action => 'edit'
#render active_admin_template('edit.html.arb')
flash[:error] = "#{space.errors}"
redirect_to :action => :edit
end
end