Link instead of submit_tag?

How I replace:

<%= submit_tag “Search” %>

with a text link? (like link_to or so?)


The only way to have a link to submit a form is with JavaScript.
Search for it and you’ll find many examples out there. There are a
couple of ways to do it.

Note that not all browsers support JavaScript, so you may need buttons
as alternates w/ .


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