Text_field help

I want to make a form where, when the page first loads you can just
being typing away in the first text_field. I thought this was called
focus, so I tried

<%= text_field :group, :name %>
<%= javascript_tag “$(‘group_name’).focus()” %>

but that doesn’t seem to work for me. Is this called something else?


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs