This error is related to Logger class where the silence method was missing from the configuration. This error happens when you enable the logging like the following: config.logger = Logger.new(STDOUT) If you comment it out or remove this line,...
Snippet
Puma caught this error: undefined method 'silence' f...
gem install mimemagic -v '0.3.10' --source 'https://rubygems.org/' Building native extensions. This could take a while... ERROR: Error installing mimemagic: ERROR: Failed to build gem native extension. Solution brew install shared-mime-info...
Snippet
Error installing mimemagic. Error: Failed to build g...
> User.reflect_on_all_associations.map(&:name) > [:addresses, :cookies, :posts]
Snippet
Fetch names of associated ActiveRecord models in Rub...
Admin
Sep 27, 2021
13 comments
657
Error on installing mailcatcher The command: gem install mailcatcher fails with error: - ERROR: Error installing mailcatcher: ERROR: Failed to build gem native extension make "DESTDIR=" compiling parser.c parser.rl:112:17: warnin...
Snippet
Error installing mailcatcher
Admin
Sep 27, 2021
6 comments
804
Error on installing mailcatcher The command: gem install mailcatcher fails with error: - ERROR: Error installing mailcatcher: ERROR: Failed to build gem native extension Solution gem install mailcatcher -- --with-cflags="-Wn...
Snippet
Error installing mailcatcher
Admin
Jul 11, 2020
14 comments
751
Suppose you want to remove a 'comments' table from a blog application. You can do so by performing the following tasks from the command line (e.g., Terminal). Step one: $ rails console Step two: $ ActiveRecord::Migration.drop_table(:c...
Snippet
Delete table
Admin
Jun 23, 2020
13 comments
646
Issue 1 - Error in installing pg gem Installing pg 0.19.0 with native extensions Gem::Ext::BuildError: ERROR: Failed to build gem native extension. current directory: /home/luke/.rvm/gems/ruby-2.4.1/gems/pg-0.19.0/ext /home/luke/.rvm/rub...
Snippet
Common Ruby on Rails gem installation errors
Admin
Mar 25, 2017
13 comments
1.03K
When you change any of your javascripts or stylesheets in the production environment, you need to run rake assets:precompile; this task compiles and compresses the various .js and .css files and creates the application.js and application.css files...
Snippet
Clear the cache from the Rails asset pipeline
Introduction Often when developing apps with Rails you need to set up environment variables to keep sensitive information secure in your code. This article looks at how to set up environment config variables in Rails. We’ll look at why we need to...
Snippet
Managing Environment Configuration Variables in Rails
In your application controller file app/controllers/application_controller.rb include the following private method: class ApplicationController < ActionController::Base private # Overwriting the sign_out redirect path method de...
Snippet
Change the redirect path after signing out: Rails us...