Skip to content

Commit

Permalink
End of chapter 2 - First Controller
Browse files Browse the repository at this point in the history
  • Loading branch information
tundal45 committed Jul 12, 2020
1 parent 9f2f278 commit 1680d11
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/controllers/quotes_controller.rb
@@ -0,0 +1,6 @@
class QuotesController < Rulers::Controller
def a_quote
# quote = system("fortune -s")
"There is nothing either good or bad but thinking makes it so."
end
end
3 changes: 3 additions & 0 deletions config/application.rb
@@ -1,5 +1,8 @@
require "rulers"

$LOAD_PATH << File.join(File.dirname(__FILE__), "..", "app","controllers")
require "quotes_controller"

module BestQuotes
class Application < Rulers::Application
end
Expand Down

0 comments on commit 1680d11

Please sign in to comment.