diff options
Diffstat (limited to 'app/views/admin/blog/categories/_form.html.erb')
-rw-r--r-- | app/views/admin/blog/categories/_form.html.erb | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/app/views/admin/blog/categories/_form.html.erb b/app/views/admin/blog/categories/_form.html.erb index 0c5b9c4..247f31b 100644 --- a/app/views/admin/blog/categories/_form.html.erb +++ b/app/views/admin/blog/categories/_form.html.erb @@ -1,6 +1,14 @@ <% form_for [:admin, @blog_category] do |f| -%> - <%= f.error_messages %> - + <% if Rails.version < '3.0.0'%> + <%= f.error_messages %> + <% else %> + <%= render :partial => "/shared/admin/error_messages", + :locals => { + :object => f.object, + :include_object_name => true + } %> + <% end %> + <div class='field'> <%= f.label :title -%> <%= f.text_field :title, :class => 'larger widest' -%> |