-
-
Save grosser/59394 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class TasksController < ApplicationController | |
make_resourceful do | |
actions :all | |
response_for :create_failed do |format| | |
format.html { redirect_to project_url(@task.project)} | |
end | |
end | |
protected | |
def load_object | |
Project.find_by_title!(params[:project_title]).tasks.find(params[:id]) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment