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.
Rails 3 が html5 フォーム ヘルパーを提供すると主張しているのに、新しい入力タイプでしか停止しない理由が理解できないと思います。「必須」属性などの追加機能を許可する計画 (または現在の方法) はありますか?
必須を設定できます
text_field_tag 'text', 'text', :required => true
また、Railsは「audio_tag」と「video_tag」でhtml5オーディオとビデオのサポートを追加しました
あなたが話しているすべての機能は、現在 Rasil の範囲外であり、実際には や のような宝石によって提供されているformtasticと思いsimple_formます。
formtastic
simple_form