spec/application/tasks_controller.rb in remarkable_rails-3.0.1 vs spec/application/tasks_controller.rb in remarkable_rails-3.0.2
- old
+ new
@@ -1,34 +1,34 @@
-class TasksController < ApplicationController
- filter_parameter_logging :password
-
- def index
- @tasks = Task.find(:all)
- render :text => 'index'
- end
-
- def new
- render :nothing => true
- end
-
- def show
- @task = Task.find(params[:id])
-
- respond_to do |format|
- format.html { render :text => 'show' }
- format.xml { render :xml => @task.to_xml }
- end
- end
-
- def destroy
- @task = Task.find(params[:id])
- @task.destroy
-
- flash[:notice] = 'Task deleted.'
- session[:last_task_id] = 37
-
- respond_to do |format|
- format.html { redirect_to project_tasks_url(10) }
- format.xml { head :ok }
- end
- end
-end
+class TasksController < ApplicationController
+ filter_parameter_logging :password
+
+ def index
+ @tasks = Task.find(:all)
+ render :text => 'index'
+ end
+
+ def new
+ render :nothing => true
+ end
+
+ def show
+ @task = Task.find(params[:id])
+
+ respond_to do |format|
+ format.html { render :text => 'show' }
+ format.xml { render :xml => @task.to_xml }
+ end
+ end
+
+ def destroy
+ @task = Task.find(params[:id])
+ @task.destroy
+
+ flash[:notice] = 'Task deleted.'
+ session[:last_task_id] = 37
+
+ respond_to do |format|
+ format.html { redirect_to project_tasks_url(10) }
+ format.xml { head :ok }
+ end
+ end
+end