Permalink
Browse files

ommented out the functions we don't want users to be able to use (for…

… now.)
  • Loading branch information...
1 parent dc375ce commit e4455d8bb4c21aa6050cd29b8c1024aef35c806d @leenookx committed Feb 26, 2011
View
36 app/controllers/notes_controller.rb
@@ -56,28 +56,28 @@ def create
# PUT /notes/1
# PUT /notes/1.xml
def update
- @note = Note.find(params[:id])
-
- respond_to do |format|
- if @note.update_attributes(params[:note])
- format.html { redirect_to(@note, :notice => 'Note was successfully updated.') }
- format.xml { head :ok }
- else
- format.html { render :action => "edit" }
- format.xml { render :xml => @note.errors, :status => :unprocessable_entity }
- end
- end
+# @note = Note.find(params[:id])
+#
+# respond_to do |format|
+# if @note.update_attributes(params[:note])
+# format.html { redirect_to(@note, :notice => 'Note was successfully updated.') }
+# format.xml { head :ok }
+# else
+# format.html { render :action => "edit" }
+# format.xml { render :xml => @note.errors, :status => :unprocessable_entity }
+# end
+# end
end
# DELETE /notes/1
# DELETE /notes/1.xml
def destroy
- @note = Note.find(params[:id])
- @note.destroy
-
- respond_to do |format|
- format.html { redirect_to(notes_url) }
- format.xml { head :ok }
- end
+# @note = Note.find(params[:id])
+# @note.destroy
+#
+# respond_to do |format|
+# format.html { redirect_to(notes_url) }
+# format.xml { head :ok }
+# end
end
end
View
36 app/controllers/project_roles_controller.rb
@@ -56,28 +56,28 @@ def create
# PUT /project_roles/1
# PUT /project_roles/1.xml
def update
- @project_role = ProjectRole.find(params[:id])
-
- respond_to do |format|
- if @project_role.update_attributes(params[:project_role])
- format.html { redirect_to(@project_role, :notice => 'ProjectRole was successfully updated.') }
- format.xml { head :ok }
- else
- format.html { render :action => "edit" }
- format.xml { render :xml => @project_role.errors, :status => :unprocessable_entity }
- end
- end
+# @project_role = ProjectRole.find(params[:id])
+#
+# respond_to do |format|
+# if @project_role.update_attributes(params[:project_role])
+# format.html { redirect_to(@project_role, :notice => 'ProjectRole was successfully updated.') }
+# format.xml { head :ok }
+# else
+# format.html { render :action => "edit" }
+# format.xml { render :xml => @project_role.errors, :status => :unprocessable_entity }
+# end
+# end
end
# DELETE /project_roles/1
# DELETE /project_roles/1.xml
def destroy
- @project_role = ProjectRole.find(params[:id])
- @project_role.destroy
-
- respond_to do |format|
- format.html { redirect_to(project_roles_url) }
- format.xml { head :ok }
- end
+# @project_role = ProjectRole.find(params[:id])
+# @project_role.destroy
+#
+# respond_to do |format|
+# format.html { redirect_to(project_roles_url) }
+# format.xml { head :ok }
+# end
end
end
View
36 app/controllers/sprints_controller.rb
@@ -56,28 +56,28 @@ def create
# PUT /sprints/1
# PUT /sprints/1.xml
def update
- @sprint = Sprint.find(params[:id])
-
- respond_to do |format|
- if @sprint.update_attributes(params[:sprint])
- format.html { redirect_to(@sprint, :notice => 'Sprint was successfully updated.') }
- format.xml { head :ok }
- else
- format.html { render :action => "edit" }
- format.xml { render :xml => @sprint.errors, :status => :unprocessable_entity }
- end
- end
+# @sprint = Sprint.find(params[:id])
+#
+# respond_to do |format|
+# if @sprint.update_attributes(params[:sprint])
+# format.html { redirect_to(@sprint, :notice => 'Sprint was successfully updated.') }
+# format.xml { head :ok }
+# else
+# format.html { render :action => "edit" }
+# format.xml { render :xml => @sprint.errors, :status => :unprocessable_entity }
+# end
+# end
end
# DELETE /sprints/1
# DELETE /sprints/1.xml
def destroy
- @sprint = Sprint.find(params[:id])
- @sprint.destroy
-
- respond_to do |format|
- format.html { redirect_to(sprints_url) }
- format.xml { head :ok }
- end
+# @sprint = Sprint.find(params[:id])
+# @sprint.destroy
+#
+# respond_to do |format|
+# format.html { redirect_to(sprints_url) }
+# format.xml { head :ok }
+# end
end
end
View
36 app/controllers/statuses_controller.rb
@@ -56,28 +56,28 @@ def create
# PUT /statuses/1
# PUT /statuses/1.xml
def update
- @status = Status.find(params[:id])
-
- respond_to do |format|
- if @status.update_attributes(params[:status])
- format.html { redirect_to(@status, :notice => 'Status was successfully updated.') }
- format.xml { head :ok }
- else
- format.html { render :action => "edit" }
- format.xml { render :xml => @status.errors, :status => :unprocessable_entity }
- end
- end
+# @status = Status.find(params[:id])
+#
+# respond_to do |format|
+# if @status.update_attributes(params[:status])
+# format.html { redirect_to(@status, :notice => 'Status was successfully updated.') }
+# format.xml { head :ok }
+# else
+# format.html { render :action => "edit" }
+# format.xml { render :xml => @status.errors, :status => :unprocessable_entity }
+# end
+# end
end
# DELETE /statuses/1
# DELETE /statuses/1.xml
def destroy
- @status = Status.find(params[:id])
- @status.destroy
-
- respond_to do |format|
- format.html { redirect_to(statuses_url) }
- format.xml { head :ok }
- end
+# @status = Status.find(params[:id])
+# @status.destroy
+#
+# respond_to do |format|
+# format.html { redirect_to(statuses_url) }
+# format.xml { head :ok }
+# end
end
end
View
36 app/controllers/tasks_controller.rb
@@ -56,28 +56,28 @@ def create
# PUT /tasks/1
# PUT /tasks/1.xml
def update
- @task = Task.find(params[:id])
-
- respond_to do |format|
- if @task.update_attributes(params[:task])
- format.html { redirect_to(@task, :notice => 'Task was successfully updated.') }
- format.xml { head :ok }
- else
- format.html { render :action => "edit" }
- format.xml { render :xml => @task.errors, :status => :unprocessable_entity }
- end
- end
+# @task = Task.find(params[:id])
+#
+# respond_to do |format|
+# if @task.update_attributes(params[:task])
+# format.html { redirect_to(@task, :notice => 'Task was successfully updated.') }
+# format.xml { head :ok }
+# else
+# format.html { render :action => "edit" }
+# format.xml { render :xml => @task.errors, :status => :unprocessable_entity }
+# end
+# end
end
# DELETE /tasks/1
# DELETE /tasks/1.xml
def destroy
- @task = Task.find(params[:id])
- @task.destroy
-
- respond_to do |format|
- format.html { redirect_to(tasks_url) }
- format.xml { head :ok }
- end
+# @task = Task.find(params[:id])
+# @task.destroy
+#
+# respond_to do |format|
+# format.html { redirect_to(tasks_url) }
+# format.xml { head :ok }
+# end
end
end
View
36 app/controllers/working_times_controller.rb
@@ -98,17 +98,17 @@ def create
# PUT /working_times/1.xml
# #####################################################
def update
- @working_time = WorkingTime.find(params[:id])
-
- respond_to do |format|
- if @working_time.update_attributes(params[:working_time])
- format.html { redirect_to(@working_time, :notice => 'WorkingTime was successfully updated.') }
- format.xml { head :ok }
- else
- format.html { render :action => "edit" }
- format.xml { render :xml => @working_time.errors, :status => :unprocessable_entity }
- end
- end
+# @working_time = WorkingTime.find(params[:id])
+#
+# respond_to do |format|
+# if @working_time.update_attributes(params[:working_time])
+# format.html { redirect_to(@working_time, :notice => 'WorkingTime was successfully updated.') }
+# format.xml { head :ok }
+# else
+# format.html { render :action => "edit" }
+# format.xml { render :xml => @working_time.errors, :status => :unprocessable_entity }
+# end
+# end
end
@@ -117,13 +117,13 @@ def update
# DELETE /working_times/1.xml
# #####################################################
def destroy
- @working_time = WorkingTime.find(params[:id])
- @working_time.destroy
-
- respond_to do |format|
- format.html { redirect_to(working_times_url) }
- format.xml { head :ok }
- end
+# @working_time = WorkingTime.find(params[:id])
+# @working_time.destroy
+#
+# respond_to do |format|
+# format.html { redirect_to(working_times_url) }
+# format.xml { head :ok }
+# end
end

0 comments on commit e4455d8

Please sign in to comment.