Skip to content
Permalink
Browse files

Routes and redirects

  • Loading branch information
ImsirovicAjdin committed Dec 24, 2019
1 parent 0dbb091 commit 4f2f6e21d29c15dd1924c9e5de19b89b0c7f03f1
Showing with 16 additions and 4 deletions.
  1. +12 −0 app/controllers/play_controller.rb
  2. +4 −4 config/routes.rb
@@ -1,4 +1,16 @@
class PlayController < ApplicationController
def index
end
def home
redirect_to(
:controller => 'another',
:action => 'index')
end
def house
redirect_to(
:action => 'index')
end
def google
redirect_to('https://google.com')
end
end
@@ -1,8 +1,8 @@
Rails.application.routes.draw do
get 'yet_another/index'
get 'yet_another/update'
get 'yet_another/edit'
get 'yet_another/hello'
# get 'yet_another/index'
# get 'yet_another/update'
# get 'yet_another/edit'
# get 'yet_another/hello'
# get 'play/index'
# get ':controller(/:action(/:id))'
match "/", :to => "play#index", :via => :get

0 comments on commit 4f2f6e2

Please sign in to comment.
You can’t perform that action at this time.