条件を指定して検索しています。すべての条件を解除する
1日前 -To validate a JWT on jwt.io, you need the secret key used to sign it. In Rails, this is usually secret_key_base. How to access secret_key_base: From the Rails ...
6日前 -I can successfully append new nested fields for Links into my form for a new Gift object. For each new Link, I set the index of the field using SecureRandom.hex ...
1日前 -Conclusions. The paper establishes a model for the wear of turnout rails and validates it with measured data. The following conclusions can be drawn: (1). The ...
1日前 -What Is SimpleCaptchaGuard? · Generates simple alphanumeric CAPTCHA codes. · Obfuscates them with lines and effects. · Validates user input against the CAPTCHA.
1日前 -Copied! validates :name, presence: true, message: "を入力してください" validates :text, presence: true, message: "を入力してください". 感想. ymlファイルは ...
6日前 -記事の組み合わせが重複しないようにするにはDBにユニーク制約をつけて、アプリ側でもバリデーションチェックを行う。 migrate/create_junctions.rb. class ...
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...
3日前 -The court's decision validates the Committee's concerns that NHDOT and FHWA violated federal law when they abandoned the original design plans for the expansion ...
3日前 -The server validates the credentials against a database and, upon successful validation: Creates a session record in the database (stateful component) ...
1日前 -"This is an important turning point. The court's decision validates the Committee's concerns that NHDOT and FHWA violated federal law when they abandoned the ...
4時間前 -特に、 activerecord.attributes や errors.messages の項目を丁寧に設定しておくと、バリデーションエラーもきれいに日本語で表示されます。 ☑️ 5. 今後の拡張について