Skip to content

Commit

Permalink
removed older sessions controller, unnecessary comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Joe Ellis committed Jul 24, 2011
1 parent 0d1709f commit c5ce730
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 65 deletions.
44 changes: 0 additions & 44 deletions app/controllers/sessions_controller.rb

This file was deleted.

22 changes: 3 additions & 19 deletions app/controllers/users_controller.rb
Expand Up @@ -10,7 +10,7 @@ def index
end

respond_to do |format|
format.html # index.html.erb
format.html
format.js
format.xml { render :xml => @users }
end
Expand All @@ -20,7 +20,7 @@ def show
@user = current_user

respond_to do |format|
format.html # show.html.erb
format.html
format.xml { render :xml => @user }
end
end
Expand All @@ -30,19 +30,16 @@ def new
3.times { @user.missions.build }

respond_to do |format|
format.html # new.html.erb
format.html
format.xml { render :xml => @user }
end
end

# GET /users/1/edit
def edit
@user = current_user
(3-@user.missions.size).times { @user.missions.build }
end

# POST /users
# POST /users.xml
def create
@user = User.new(params[:user])

Expand Down Expand Up @@ -75,8 +72,6 @@ def create
end
end

# PUT /users/1
# PUT /users/1.xml
def update
respond_to do |format|
if current_user.update_attributes(params[:user])
Expand All @@ -89,15 +84,4 @@ def update
end
end

# # DELETE /users/1
# # DELETE /users/1.xml
# def destroy
# @user = User.find(params[:id])
# @user.destroy
#
# respond_to do |format|
# format.html { redirect_to(users_url) }
# format.xml { head :ok }
# end
# end
end
2 changes: 0 additions & 2 deletions doc/README_FOR_APP

This file was deleted.

0 comments on commit c5ce730

Please sign in to comment.