mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-07 01:38:50 +01:00
initial version of reviewing
This commit is contained in:
parent
2563532022
commit
b320dd60a8
8 changed files with 25 additions and 125 deletions
|
|
@ -51,6 +51,20 @@ class ProjectsController < ApplicationController
|
|||
render
|
||||
end
|
||||
|
||||
def set_reviewed
|
||||
template = 'projects/update.js.erb'
|
||||
|
||||
#@source_view = 'project'
|
||||
@project = current_user.projects.find(params[:id])
|
||||
|
||||
@project.todos.each do |todo|
|
||||
todo.created_at = Time.now
|
||||
todo.save
|
||||
end
|
||||
|
||||
redirect_to :action => 'show'
|
||||
end
|
||||
|
||||
def projects_and_actions
|
||||
@projects = current_user.projects.active
|
||||
respond_to do |format|
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue