redirect logged in users to news, others to home

This commit is contained in:
jomo
2014-06-23 02:59:48 +02:00
parent 229089d547
commit 9e60048c82
2 changed files with 9 additions and 1 deletions

View File

@@ -1,5 +1,13 @@
class StaticsController < ApplicationController
def index
if current_user
redirect_to blogposts_path
else
redirect_to home_statics_path
end
end
def home
end