条件を指定して検索しています。すべての条件を解除する
20時間前 -When submitting an order, there are two fields to select the customer and the product. However, the logs (and db) show that the customer (customer.email) and ...
5時間前 -【Rails】gem geocoderを使用する際のバリデーションについて. Ruby · Rails ... validates :address, presence: true validates :latitude, presence: true validates ...
23時間前 -North-South rails include a wire support channel for integrated home run ... This certification not only validates the quality of our product but also ...
7時間前 -こんにちは、okumudです。 今回は曜日を基準に計算するときの tips を投稿します。スケジュールの繰り返しで翌月の特定の日を求める際に役立ちます。
12時間前 -SEMA News - FTC Validates Right To Install Aftermarket Parts: https://www.sema.org/sema-enews/2011/01/ftc-validates-right-to-install-aftermarket-parts. FTC ...
19時間前 -North-South rails include a wire support channel for integrated home run ... This certification not only validates the quality of our product but also ...
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...
11時間前 -以下のようなクラスにしたとします。 class Todo < ApplicationRecord belongs_to :user validates :content, uniqueness: { scope: :user_id } end ... Ruby on Railsの開発 ...
4時間前 -... バリデーションエラーを起こしますなのでシーケンスを使ってユニークバリデーションを持つデータを生成して防ぎます. Copied! sequence(:user_name) { |n| "test_user ...
21時間前 -Now that Whit and Biz are seasoned in the media it's becoming very apparent that they don't need him to keep the pod on rails. ... validates him as some member of ...
22時間前 -validate (⭐61) - Automatically validates struct fields with tags. Editor Plugins / Libraries for creating HTTP middlewares. coc-go language server extension ...