diff options
Diffstat (limited to 'app/monsters_controller.rb')
-rw-r--r-- | app/monsters_controller.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/app/monsters_controller.rb b/app/monsters_controller.rb new file mode 100644 index 0000000..4f947b3 --- /dev/null +++ b/app/monsters_controller.rb @@ -0,0 +1,9 @@ +class MonstersController < ApplicationController + def index + @monsters = Monster.all.order(:name) + end + + def show + @monster = Monster.find(params[:id]) + end +end |