redirect logged in users to news, others to home
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user