Removed fancybox. Fixed profile, my ordergroup and tasks.
This commit is contained in:
parent
dce79802e0
commit
1d9815731c
37 changed files with 124 additions and 518 deletions
|
|
@ -8,12 +8,12 @@ class TasksController < ApplicationController
|
|||
end
|
||||
|
||||
def user
|
||||
@unaccepted_tasks = @current_user.unaccepted_tasks
|
||||
@accepted_tasks = @current_user.accepted_tasks
|
||||
@unaccepted_tasks = Task.unaccepted_tasks_for(current_user)
|
||||
@accepted_tasks = Task.accepted_tasks_for(current_user)
|
||||
end
|
||||
|
||||
def new
|
||||
@task = Task.new
|
||||
@task = Task.new(current_user_id: current_user.id)
|
||||
end
|
||||
|
||||
def create
|
||||
|
|
@ -31,6 +31,7 @@ class TasksController < ApplicationController
|
|||
|
||||
def edit
|
||||
@task = Task.find(params[:id])
|
||||
@task.current_user_id = current_user.id
|
||||
end
|
||||
|
||||
def update
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue