Tag: rails
All the articles with the tag "rails".
[Rails] How to disable autocomplete in Rails Console
Published: at 11:33 AM (1 min read)In Rails 7+, default console autocomplete can cause screen shifting, making command input challenging. Here are methods to disable this feature.
[Rails] Fix: undefined method `table_name' for ActiveRecord::SchemaMigration:Class
Published: at 10:52 AM (1 min read)How to resolve the error 'undefined method `table_name' for ActiveRecord::SchemaMigration:Class' in Rails.
[sidekiq] How to list Sidekiq jobs in the Rails console
Published: at 09:03 AM (1 min read)How to list all Sidekiq jobs in the Rails console without Sidekiq Web UI
[rails] 在 Rails console 顯示 debug 訊息(如 SQL)
Published: at 03:38 AM (2 min read)有時候在 Rails console 想要看到 debug 訊息,例如這段程式碼實際執行的 SQL...
[rails] 在 Rails 更新了 asset stylesheet 或 javascript 但卻沒有更新
Published: at 03:08 AM (1 min read)前陣子遇到在 Rails 6 的專案中更新了既有 asset stylesheet 或 javascript 的內容,但卻沒有更新...
[rails] Error: incompatible function pointer types passing 'VALUE (VALUE *)'
Published: at 02:12 AM (1 min read)How to fix the error: incompatible function pointer types passing 'VALUE (VALUE *)'
[rails] length, count and size 差別是什麼?
Published: at 02:49 PM (4 min read)TL;DR: 如果你總是遇到不知道該用 count, length 或 size,那你可以照下面簡單的步驟依序選擇哪個最適合你目前的應用場景
[rails] Latest N+1 queries 問題
Published: at 03:51 PM (5 min read)上一篇我們介紹過了 N+1 queries 是什麼與解決方式,這篇想更進一步介紹關於 latest N+1 queries 是什麼,可以如何解決?
[rails] /ruby/internal/anyargs_h_270_1)" is not a valid Ident
Published: at 03:51 PM (1 min read)這幾天在裝 RoR 的環境時,安裝 tiktoken_ruby 時遇到了 compile error
[rails] N+1 queries 是什麼
Published: at 03:41 PM (6 min read)寫過 Ruby on Rails 的人,面試肯定都會被問的其中一題,你知道什麼是 N+1 queries 嗎?