gregbell/active_admin — Issue #1088: Automatically check for custom views
Author: RKushnir
Created: 2012-02-29 10:46:53+00:00
State: open

I suggest that ActiveAdmin checks if user has custom views for current action. For example, if there's an `admin/categories/new.js.erb` file, then for AJAX requests it could use that view. Currently, if I override `new` action like this:

def new
@category = Category.new
respond_to do |format|
format.html
format.js
end
end

it will use the default view for HTML requests and custom file for JS, but this is a trivial code so why should I need to write it.