Permalink
Browse files

delete unused files

  • Loading branch information...
1 parent 9e4e31c commit 3f47c85ce3e214526b8d59c5fdea3afadcee3e4d @ranxian committed Oct 31, 2012
@@ -1,21 +0,0 @@
-= form_for @user do |f|
- - if @user.errors.any?
- #error_explanation
- h2 = "#{pluralize(@user.errors.count, "error")} prohibited this user from being saved:"
- ul
- - @user.errors.full_messages.each do |message|
- li = message
-
- .field
- = f.label :name
- = f.text_field :name
- .field
- = f.label :depart
- = f.text_field :depart
- .field
- = f.label :phone
- = f.text_field :phone
- .field
- = f.label :description
- = f.text_field :description
- .actions = f.submit 'Save'
@@ -1,8 +0,0 @@
-h1 Editing user
-
-== render 'form'
-
-= link_to 'Show', @user
-'|
-= link_to 'Back', users_path
-
@@ -1,25 +0,0 @@
-h1 Listing users
-
-table
- tr
- th Name
- th Depart
- th Phone
- th Description
- th
- th
- th
-
- - @users.each do |user|
- tr
- td = user.name
- td = user.depart
- td = user.phone
- td = user.description
- td = link_to 'Show', user
- td = link_to 'Edit', edit_user_path(user)
- td = link_to 'Destroy', user, :confirm => '你确定要删除吗?', :method => :delete
-
-br
-
-= link_to 'New User', new_user_path
@@ -1,5 +0,0 @@
-h1 New user
-
-== render 'form'
-
-= link_to 'Back', users_path
@@ -1,19 +0,0 @@
-- if notice
- p#notice.alert.alert-success = notice
-
-p
- strong Name:
- = @user.name
-p
- strong Depart:
- = @user.depart
-p
- strong Phone:
- = @user.phone
-p
- strong Description:
- = @user.description
-
-= link_to 'Edit', edit_user_path(@user)
-'|
-= link_to 'Back', users_path

0 comments on commit 3f47c85

Please sign in to comment.