タイトルのままです 子モデルのデータをdescやascで取得方法を変えるには下記の方法でいけます 参考記事 Ruby On Rails: Order by child attribute
カテゴリーアーカイブ: Ruby on Rails
active recordで特定カラムを空で保存できるように修正
これで対応できました 参考記事 Validate attribute only if it present (only if user fill in it)
deviseログイン後にrails_adminにredirectさせる
下記のように記述を行うことでdashboardに飛ばすことができます 参考記事 なし
TypeError: no implicit conversion of Symbol into String from
scopeを作成してクエリしていたらタイトルのエラーが発生 よくコードを確認してみたら、joins をjoin と記載してしまっていました typoには気をつけるように 参考記事 なし
Applying coupons to Stripe Connect
調べた所PaymentIntentに対応していないらしく、割引を適用する場合は自分で対応してね、とのことです。 To implement a coupon or discount structure with Payme …
Move Model Logic into the Model
タイトルの警告を解消するには下記のように修正すれば行けます # config/rails_best_practices.yml MoveModelLogicIntoModelCheck: use_count: 4 ign …
Stripe Connectのテスト用の銀行口座
Railsでconnectのテストを行うときにいつも忘れてしまうのでメモ Bank Code 1100 Branch Code 000 Account Number 0001234 Account Owner Name …
Capybara::ElementNotFound:
capybaraでselectにfill_inを利用していたらタイトルのエラーが発生 上記の方法で対応できます 参考記事 Capybara::ElementNotFound: Unable to find visible …
Selenium::WebDriver::Error::WebDriverError: Could not find Firefox binary (os=macosx). Make sure Firefox is installed or set the path manually with Selenium::WebDriver::Firefox::Binary.path=
railsでcapybaraを走らせようとしたらタイトルのエラーが発生 上記コード走らせてfirefox入れたら解決できました 参考記事 RSpecでCould not find Firefox binary (os=m …
missing FROM-clause entry for table
railsでscopeを追加していたら上記のエラーが発生しました やりたいこと parentの中身を検索したいのですが、なぜか入らず調べてみたら、joinsした後のテーブルの指定方法が悪かったみたいです 解決策 join …