module ::Phoenix module Admin class <%= class_name.pluralize %>Controller < ::Phoenix::AdminController crudify :'phoenix/<%= singular_name %>'<% if (title = attributes.detect { |a| a.type.to_s == "string" }).present? and title.name != 'title' %>, :title_attribute => '<%= title.name %>'<% end %><% if plural_name == singular_name %>, :redirect_to_url => :admin_<%= singular_name %>_index_path <% end %>, :xhr_paging => true end end end