Seems like this is a pain point for most people taking this course. I’m also one of them.
I’m not exactly sure what’s happening here.
https://www.codecademy.com/courses/learn-rails/lessons/one-model/exercises/one-model-controller
It’s throwing me an error even after following the instructions (to the best of my knowledge).
My routes.rb
Rails.application.routes.draw do
get 'messages' => 'messages#index'
end
My messages_controller.rb
class MessagesController < ApplicationController
def index
@messages = Message.all
end
end
I don’t think I’m in the know enough yet to decipher the error message it’s throwing at me.
Can anyone help? or at least point me in the right direction