Mpumelelo
Joined
80 Experience
0 Lessons Completed
0 Questions Solved
Activity
Posted in Invalid auth error
class MessagesController < ApplicationController
before_action :authenticate_user!
before_action :set_chatroom
def create
message = @chatroom.messages.new(message_params)
message.user = current_user
message.save
MessageRelayJob.perform_later(message)
end
private
def set_chatroom
@chatroom = Chatroom.find(params[:chatroom_id])
end
def message_params
params.require(:message).permit(:body)
end
end
Posted in Invalid auth error
Thanks for replying Bilal. What is your username, full name or email address on Github so can add you to my repo
Posted in Invalid auth error
ActionController::InvalidAuthenticityToken in MessagesController#create
please help me on this error.
I was following from part 1 until part 4 on group chat
Posted in Rails Application Templates Discussion
Hi Chris please help
when installing jumpstart it pause on bellow generator
rails generate devise:views:bootstrapped
Please help!!!!