remove .empty? which shouldn't be here

This commit is contained in:
rulingcom authored and ihower committed 2011-04-13 18:22:49 +08:00
1 parent c44b86f284
commit d28a71f5bf
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -2,7 +2,7 @@
<p>
<%= f.label :name, t('admin.name') %>
<% if @page.parent_id.nil? || @page.parent_id.empty? %>
<% if @page.parent_id.nil? %>
<%= f.text_field :name, :class => 'text', :value => 'home', :disabled => true %>
<%= f.hidden_field :name, :value => 'home' %>
<% else %>