約2,440件1ページ目

日本語のみで絞り込む

条件を指定して検索しています。すべての条件を解除する

  • 最終更新日:1か月以内
  • 2024/6/12 -Hey there, I am having a heck of a time dealing with the sending of boolean values to a json schema for validation. My data is hitting a json schema…

    2024/6/18 -I use Bcrypt gem for password encryption. User model: class User < ApplicationRecord has_secure_password validates :password, presence: true ...

    2024/6/26 -TIL is an open-source project by Hashrocket that exists to catalogue the sharing & accumulation of knowledge as it happens day-to-day.

    1日前 -Danilo demonstrates how to validate form fields using JavaScript for client-side validation and Ruby on Rails controllers and actions for server-side validation ...

    2024/6/9 -Let's try out the new features added to Rails 6. This time it is case_sensitive. Rails 6 now gives a warning when using MySQL when using uniqueness validation.

    6日前 -Strong Parameters. It provides an interface for protecting attributes from end-user assignment. This makes Action Controller parameters forbidden to be used ...

    A.回答を一意にするUserなのかどうかを判別するフラグを新たに持たせて、それをwith_optionsメソッドで判定すればいいです。 以下を参考にしてください。 Railsで特定の条件下で走る...

    A.validates は ActiveModel::Validations モジュールで 定義されてる特異メソッドで ActiveRecord::Base などの フィールドをチェックします。 今...

    A.データベースより前に、フロントエンドの脆弱性対策が先だと思います。 まずは、無料のツールを使ってみてはいかがですか。 https://yun-craft.com/admin-blog/tomiz...

    2024/6/8 -But here we come across with one feature of this validation. It will allow to save identical filters, if attributes in them will be in a different order. That ...

    3日前 -Deprecation specifies the API used by Rails to deprecate methods, instance variables, objects and constants ... validates.rb. with.rb. validations.rb. validator.

    2024/6/18 -Define Validations. In the Post model ( app/models/post.rb ), add some validations: class Post < ApplicationRecord validates :title, presence: true validates ...

    5日前 -Validations. StoreModel supports all the validations shipped with ActiveModel . Start with defining validation for the store model: “by class Configuration ...