我使用有效管理员的所有网站都有此问题
我的登录表单中有额外的文字。
有没有人见过这个
Html输出
<ol>Email<li class="email input required autofocus stringish" id="admin_user_email_input"><label class="label" for="admin_user_email">Email<abbr title="required">*</abbr></label><input autofocus="autofocus" id="admin_user_email" maxlength="255" name="admin_user[email]" type="email" value="">
</li>Password<li class="password input required stringish" id="admin_user_password_input"><label class="label" for="admin_user_password">Password<abbr title="required">*</abbr></label><input id="admin_user_password" maxlength="128" name="admin_user[password]" type="password">
</li>Remember me<li class="boolean input optional" id="admin_user_remember_me_input"><input name="admin_user[remember_me]" type="hidden" value="0"><label class="" for="admin_user_remember_me"><input id="admin_user_remember_me" name="admin_user[remember_me]" type="checkbox" value="1">Remember me</label>
</li></ol>
系统管理员/ admin_user.rb
ActiveAdmin.register AdminUser do
permit_params :email, :password, :password_confirmation
index do
selectable_column
id_column
column :email
column :current_sign_in_at
column :sign_in_count
column :created_at
actions
end
filter :email
filter :current_sign_in_at
filter :sign_in_count
filter :created_at
form do |f|
f.inputs "Admin Details" do
f.input :email
f.input :password
f.input :password_confirmation
end
f.actions
end
end