Saving Data#3. Controller


#1

I keep getting this error..And I made sure I created my 'Messages' controller by running rails generate controller Messages

This is what my messages controller looks like:
App/Controllers/messages_controller.rb

class MessagesController < ApplicationController
def index
@messages = Message.all
end
end


#2

Hi @edwinxc,

Could you please post a screenshot of the page with messages_controller.rb open?


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.