mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-27 20:38:48 +01:00
empty non-saved project caused rss builder to fail
This commit is contained in:
parent
54b106d96b
commit
80974fb0d5
3 changed files with 4 additions and 4 deletions
|
|
@ -20,7 +20,6 @@ class ProjectsController < ApplicationController
|
|||
else
|
||||
@projects = current_user.projects
|
||||
end
|
||||
@new_project = current_user.projects.build
|
||||
@active_projects = current_user.projects.active
|
||||
@hidden_projects = current_user.projects.hidden
|
||||
respond_to do |format|
|
||||
|
|
@ -31,6 +30,7 @@ class ProjectsController < ApplicationController
|
|||
@completed_count = current_user.projects.completed.count
|
||||
@no_projects = current_user.projects.empty?
|
||||
current_user.projects.cache_note_counts
|
||||
@new_project = current_user.projects.build
|
||||
end
|
||||
format.m do
|
||||
@completed_projects = current_user.projects.completed
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue