Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
HTMLの入力に挿入した値を、データベースにあるデータと比較するだけの簡単なログインフォームを作成しようとしています。どうすればいいですか?
コントローラーをセットアップし、params ハッシュを比較します。
expected_value = '...' if params[:form_value] == expected_value do_something() else do_something_else() end