Akiva
Akiva

Reputation: 341

Why doesn't Rails 3 allow for full html5 form specs?

I don't think I understand why Rails 3 claims to offer html5 form helpers, but stops only at new input types. Are there plans (or any current way) to allow for additional features, such as the "required" attribute, etc?

Upvotes: 0

Views: 227

Answers (2)

galulex
galulex

Reputation: 146

You can set required

text_field_tag 'text', 'text', :required => true

Also Rails added support of html5 audio and video with "audio_tag" and "video_tag"

Upvotes: 1

oldhomemovie
oldhomemovie

Reputation: 15129

I believe all the features your are talking about are currently out of the Rasil's scope, actually being provided by gems like formtastic and simple_form.

Upvotes: 0

Related Questions