Ruby

M1MacでRubyのインストールに失敗する

エラー Installing ruby-3.1.0... ruby-build: using readline from homebrew ruby-build: using libyaml from homebrew ruby-build: using gmp from homebrew BUILD FAILED (macOS 13.3.1 using ruby-build 20230512) Inspect or clean up the working tree at /var/folders/nk/d88m3z390qjbgp5yjln8nnt80000gn/T/ruby-build.20230526145532.33223.Lm7fcQ Results logged to /var/folders/nk/d88m3z390qjbgp5yjln8nnt80000gn/T/ruby-build.20230526145532.33223.log Last 10 log lines: linking shared-library libruby.3.1.dylib transdb.h updated ld: library not found for -lcapstone clang: error: linker command failed with exit code 1 (use -v to see invocation) make:

Devise_token_auth導入時にURLを変更する方法

導入そのものについては参考になる他記事がたくさんあるので省略。 他記事でよく見かけたroutes Rails.application.routes.draw do namespace :api do namespace :v1, defaults: {format: :json } do mount_devise_token_auth_for 'User', at: 'auth', controllers: { registrations: 'api/v1/registrations', sessions: 'devise_token_auth/sessions' }