remove .empty? which shouldn't be here

This commit is contained in:
rulingcom 2011-01-31 11:31:33 +08:00 committed by ihower
parent c44b86f284
commit d28a71f5bf
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ class User
mount_uploader :avatar, AvatarUploader mount_uploader :avatar, AvatarUploader
field :admin, :type => Boolean, :default => false field :admin, :type => Boolean, :default => true
field :active_attributes, :type => Array field :active_attributes, :type => Array
embeds_many :user_attributes embeds_many :user_attributes

View File

@ -2,7 +2,7 @@
<p> <p>
<%= f.label :name, t('admin.name') %> <%= 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.text_field :name, :class => 'text', :value => 'home', :disabled => true %>
<%= f.hidden_field :name, :value => 'home' %> <%= f.hidden_field :name, :value => 'home' %>
<% else %> <% else %>