diff --git a/.gitignore b/.gitignore index dcc5b36..7f4b696 100644 --- a/.gitignore +++ b/.gitignore @@ -1,23 +1 @@ -# See https://help.github.com/articles/ignoring-files for more about ignoring files. -# -# If you find yourself ignoring temporary files generated by your text editor -# or operating system, you probably want to add a global ignore instead: -# git config --global core.excludesfile '~/.gitignore_global' - -# Ignore bundler config. -/.bundle - -# Ignore the default SQLite database. -/db/*.sqlite3 -/db/*.sqlite3-journal - -# Ignore all logfiles and tempfiles. -/log/* -/tmp/* -!/log/.keep -!/tmp/.keep - -/node_modules -/yarn-error.log - -.byebug_history +.editorconfig diff --git a/app/controllers/admin/admin_controller.rb b/app/controllers/admin/admin_controller.rb new file mode 100644 index 0000000..dccc4d1 --- /dev/null +++ b/app/controllers/admin/admin_controller.rb @@ -0,0 +1,7 @@ +class Admin::AdminController < ActionController::Base + def index + render html: 'Hello world' + end +end + + \ No newline at end of file diff --git a/config/routes.rb b/config/routes.rb index 787824f..89cced4 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,3 +1,6 @@ Rails.application.routes.draw do # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html + namespace :admin do + root "admin#index" + end end