<% if user.edited_courses.any? || user.edited_lectures.any? || - user.given_lectures.any? %> + user.given_lectures.any? || user.edited_media.any? %> <%= render partial: 'users/content', locals: { user: user, f: f } %> diff --git a/config/routes.rb b/config/routes.rb index 964976b33..a19b72ba5 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -859,7 +859,7 @@ authenticated :user do root to: 'main#start' end - + unauthenticated do root to: 'devise/sessions#new', as: :unauthenticated_root end @@ -873,8 +873,6 @@ get 'error', to: 'main#error' - get 'main/home' - get 'main/news', to: 'main#news', as: 'news'