gregbell/active_admin — Issue #894: "New Resource" button appears when validation errors
Author: bubaz
Created: 2012-01-05 13:14:11+00:00
State: open

Now

```ruby
def add_default_action_items
# New Link on all actions except :new and :show
add_action_item :except => [:new, :show] do
if controller.action_methods.include?('new')
link_to(I18n.t('active_admin.new_model', :model => active_admin_config.resource_name), new_resource_path)
end
end
```
need

```ruby
def add_default_action_items
# New Link on all actions except :new and :show
add_action_item :except => [:new, :show, :create] do
if controller.action_methods.include?('new')
link_to(I18n.t('active_admin.new_model', :model => active_admin_config.resource_name), new_resource_path)
end
end
```