view
```haml
f.input :title, :input_html => { :data => { :type => "focus" } }
```

js
```javascript
$("[data-type=focus]").focus();
```