Sha256: 18a02277fb76a67adab7f4b28e678f52bff89d06cf81e5500d94dd3abe1e986b
Contents?: true
Size: 727 Bytes
Versions: 6
Compression:
Stored size: 727 Bytes
Contents
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.title(false).inspect} was removed" session[:last_task_id] = 37 respond_to do |format| format.html { redirect_to project_tasks_url(10) } format.xml { head :ok } end end end
Version data entries
6 entries across 6 versions & 1 rubygems