条件を指定して検索しています。すべての条件を解除する
21時間前 -So I learned about validations that occur at the model-level, but I'm now trying to learn more about database validations. I was wondering if you guys could ...
6日前 -ActiveRecord(モデル)のバリデーション設定を行うことで、実際にデータが保存される前に不適合データを弾くことができます。ほとんどのデータベースはカラムに制約を設定 ...
6日前 -This style guide evolves over time as additional conventions are identified and past conventions are rendered obsolete by changes in Ruby itself. Tip. If you're ...
2日前 -r/rails: A subreddit for discussion and news about Ruby on Rails.
Is rails worth it?-What is Ruby on Rails in AI...-Is the Rails Revival Happening...
4日前 -... Rails instance can use to make requests upstream to a connected service backend. The public validation keys are published using OIDC discovery API endpoints.
4日前 -Once the form data has been validated on the client-side, it is okay to submit the form. And, since we covered validation in the previous article, we're ready ...
Q.Ruby on Railsのvalidatesの使い方について。 同ユーザーの同回答を防ぐためにvalidatesのuniqunessを使用していますが、これだと他のユーザーにも制限がかかってし...
A.回答を一意にするUserなのかどうかを判別するフラグを新たに持たせて、それをwith_optionsメソッドで判定すればいいです。 以下を参考にしてください。 Railsで特定の条件下で走る...
Q.Ruby On Rails のバリデーションに関する質問です。 validates を、メソッド内ではなく、クラスの直下で定義していますが、validates はプロパティなのでしょうか? それ...
A.validates は ActiveModel::Validations モジュールで 定義されてる特異メソッドで ActiveRecord::Base などの フィールドをチェックします。 今...
Q.個人でRubyでwebアプリを開発しています。 セキュリティについて不安があります。 そのwebアプリは動画販売サービスです。 クレジットカードはトークンを使用して支払いなどをするので安全だと...
A.データベースより前に、フロントエンドの脆弱性対策が先だと思います。 まずは、無料のツールを使ってみてはいかがですか。 https://yun-craft.com/admin-blog/tomiz...
2日前 -翻訳設定てきように用意しておく以下は英語翻訳で、属性に対しての翻訳ひとつのモデルに対してのエラーの種類の翻訳を指定した例api/config/locales/activerecord.e…
6日前 -Sometimes want to skip certain validations on your database models. Maybe you have a multi-step wizard or want admins to have more freedom in changing data.
2日前 -Imagine a world where your security and compliance requirements feed into an assessment engine, and that engine validates the implementation of the requirements ...
5時間前 -The fresh capital will help the firm develop its ledger-based interbank rails for real-time clearing and settlement.