Sha256: 2e4676bf8954fc4e7dd8f88f9c20d80af091373911bbad6cfac17999c4b01d6a

Contents?: true

Size: 188 Bytes

Versions: 15

Compression:

Stored size: 188 Bytes

Contents

class RootController < ApplicationController

  def index
    if User.first
      redirect_to User.first
    else
      redirect_to controller: 'users', action: 'index'
    end
  end

end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
edit_mode-1.0.5 test_app/app/controllers/root_controller.rb
edit_mode-1.0.4 test_app/app/controllers/root_controller.rb
edit_mode-1.0.3 test_app/app/controllers/root_controller.rb
edit_mode-1.0.2 test_app/app/controllers/root_controller.rb
edit_mode-1.0.1 test_app/app/controllers/root_controller.rb
edit_mode-1.0.0 test_app/app/controllers/root_controller.rb
edit_mode-0.0.9 test_app/app/controllers/root_controller.rb
edit_mode-0.0.8 test_app/app/controllers/root_controller.rb
edit_mode-0.0.7 test_app/app/controllers/root_controller.rb
edit_mode-0.0.6 test_app/app/controllers/root_controller.rb
edit_mode-0.0.5 test_app/app/controllers/root_controller.rb
edit_mode-0.0.4 test_app/app/controllers/root_controller.rb
edit_mode-0.0.3 test_app/app/controllers/root_controller.rb
edit_mode-0.0.2 test_app/app/controllers/root_controller.rb
edit_mode-0.0.1 test_app/app/controllers/root_controller.rb