Permalink
Browse files

add users#man

  • Loading branch information...
naoty committed Jul 27, 2012
1 parent 871d777 commit 40e1cf6fcba1c72df598422574cb1302b3c06166
Showing with 5 additions and 0 deletions.
  1. +4 −0 app/controllers/users_controller.rb
  2. 0 app/views/users/man.text.erb
  3. +1 −0 config/routes.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
No changes.
View
@@ -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'

0 comments on commit 40e1cf6

Please sign in to comment.