Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add users#man

  • Loading branch information...
commit 40e1cf6fcba1c72df598422574cb1302b3c06166 1 parent 871d777
@naoty authored
View
4 app/controllers/users_controller.rb
@@ -18,6 +18,10 @@ def item
end
end
+ def man
+ @user = User.find_by_name(params[:id])
+ end
+
def create
@user = User.new(params)
if @user.save
View
0  app/views/users/man.text.erb
No changes.
View
1  config/routes.rb
@@ -3,6 +3,7 @@
get 'users' => 'users#index'
get ':id' => 'users#show'
get ':id/:item' => 'users#item'
+ get ':id/man' => 'users#man'
post 'signup' => 'users#create'
put ':id' => 'users#update'
delete ':id' => 'users#destroy'
Please sign in to comment.
Something went wrong with that request. Please try again.