Mpumelelo

Joined

100 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

generate devise:views:bootstrapped
rails generate devise:views:bootstrapped
/Users/mpumelelohlatshwayo/.rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/fileutils/version.rb:4: warning: already initialized constant FileUtils::VERSION
/Users/mpumelelohlatshwayo/.rvm/rubies/ruby-2.6.3/lib/ruby/gems/2.6.0/gems/fileutils-1.2.0/lib/fileutils/version.rb:4: warning: previous definition of VERSION was here
/Users/mpumelelohlatshwayo/.rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/fileutils.rb:1267: warning: already initialized constant FileUtils::Entry_::S_IF_DOOR
/Users/mpumelelohlatshwayo/.rvm/rubies/ruby-2.6.3/lib/ruby/gems/2.6.0/gems/fileutils-1.2.0/lib/fileutils.rb:1267: warning: previous definition of S_IF_DOOR was here
/Users/mpumelelohlatshwayo/.rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/fileutils.rb:1540: warning: already initialized constant FileUtils::Entry_::DIRECTORY_TERM
/Users/mpumelelohlatshwayo/.rvm/rubies/ruby-2.6.3/lib/ruby/gems/2.6.0/gems/fileutils-1.2.0/lib/fileutils.rb:1547: warning: previous definition of DIRECTORY_TERM was here
/Users/mpumelelohlatshwayo/.rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/fileutils.rb:1542: warning: already initialized constant FileUtils::Entry_::SYSCASE
/Users/mpumelelohlatshwayo/.rvm/rubies/ruby-2.6.3/lib/ruby/gems/2.6.0/gems/fileutils-1.2.0/lib/fileutils.rb:1549: warning: previous definition of SYSCASE was here
/Users/mpumelelohlatshwayo/.rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/fileutils.rb:1595: warning: already initialized constant FileUtils::OPT_TABLE
/Users/mpumelelohlatshwayo/.rvm/rubies/ruby-2.6.3/lib/ruby/gems/2.6.0/gems/fileutils-1.2.0/lib/fileutils.rb:1602: warning: previous definition of OPT_TABLE was here
/Users/mpumelelohlatshwayo/.rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/fileutils.rb:1649: warning: already initialized constant FileUtils::LOW_METHODS
/Users/mpumelelohlatshwayo/.rvm/rubies/ruby-2.6.3/lib/ruby/gems/2.6.0/gems/fileutils-1.2.0/lib/fileutils.rb:1656: warning: previous definition of LOW_METHODS was here
/Users/mpumelelohlatshwayo/.rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/fileutils.rb:1656: warning: already initialized constant FileUtils::METHODS
/Users/mpumelelohlatshwayo/.rvm/rubies/ruby-2.6.3/lib/ruby/gems/2.6.0/gems/fileutils-1.2.0/lib/fileutils.rb:1663: warning: previous definition of METHODS was here

Posted in Rails Application Templates Discussion

generate devise:views:bootstrapped
rails generate devise:views:bootstrapped
/Users/mpumelelohlatshwayo/.rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/fileutils/version.rb:4: warning: already initialized constant FileUtils::VERSION
/Users/mpumelelohlatshwayo/.rvm/rubies/ruby-2.6.3/lib/ruby/gems/2.6.0/gems/fileutils-1.2.0/lib/fileutils/version.rb:4: warning: previous definition of VERSION was here
/Users/mpumelelohlatshwayo/.rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/fileutils.rb:1267: warning: already initialized constant FileUtils::Entry_::S_IF_DOOR
/Users/mpumelelohlatshwayo/.rvm/rubies/ruby-2.6.3/lib/ruby/gems/2.6.0/gems/fileutils-1.2.0/lib/fileutils.rb:1267: warning: previous definition of S_IF_DOOR was here
/Users/mpumelelohlatshwayo/.rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/fileutils.rb:1540: warning: already initialized constant FileUtils::Entry_::DIRECTORY_TERM
/Users/mpumelelohlatshwayo/.rvm/rubies/ruby-2.6.3/lib/ruby/gems/2.6.0/gems/fileutils-1.2.0/lib/fileutils.rb:1547: warning: previous definition of DIRECTORY_TERM was here
/Users/mpumelelohlatshwayo/.rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/fileutils.rb:1542: warning: already initialized constant FileUtils::Entry_::SYSCASE
/Users/mpumelelohlatshwayo/.rvm/rubies/ruby-2.6.3/lib/ruby/gems/2.6.0/gems/fileutils-1.2.0/lib/fileutils.rb:1549: warning: previous definition of SYSCASE was here
/Users/mpumelelohlatshwayo/.rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/fileutils.rb:1595: warning: already initialized constant FileUtils::OPT_TABLE
/Users/mpumelelohlatshwayo/.rvm/rubies/ruby-2.6.3/lib/ruby/gems/2.6.0/gems/fileutils-1.2.0/lib/fileutils.rb:1602: warning: previous definition of OPT_TABLE was here
/Users/mpumelelohlatshwayo/.rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/fileutils.rb:1649: warning: already initialized constant FileUtils::LOW_METHODS
/Users/mpumelelohlatshwayo/.rvm/rubies/ruby-2.6.3/lib/ruby/gems/2.6.0/gems/fileutils-1.2.0/lib/fileutils.rb:1656: warning: previous definition of LOW_METHODS was here
/Users/mpumelelohlatshwayo/.rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/fileutils.rb:1656: warning: already initialized constant FileUtils::METHODS
/Users/mpumelelohlatshwayo/.rvm/rubies/ruby-2.6.3/lib/ruby/gems/2.6.0/gems/fileutils-1.2.0/lib/fileutils.rb:1663: warning: previous definition of METHODS was here

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!!!!

logo Created with Sketch.

Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

© 2020 GoRails, LLC. All rights reserved.