Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Views for jobs created #43

Merged
merged 6 commits into from
Oct 12, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
resolved controller testes
danilocandido committed Sep 26, 2017
commit 8f1fb27c0f71d86b1f3bdbe0a5140713223d5d46
4 changes: 2 additions & 2 deletions app/controllers/jobs_controller.rb
Original file line number Diff line number Diff line change
@@ -16,7 +16,7 @@ def new

def create
build_job
save_job || render(institution_job(@job.institution), status: :unprocessable_entity)
save_job || render(:new, status: :unprocessable_entity)
end


@@ -30,7 +30,7 @@ def edit

def update
build_job
save_job || render(edit_institution_job_path(@job.institution, @job), status: :unprocessable_entity)
save_job || render(:edit, status: :unprocessable_entity)
end