view - Getting button_to to act like link_to - Rails -


i have button_to call essential want act link_to call. set use get request when click it, in url '?' appears on end of url. ex: /admins/new? instead of /admins/new. how remove ? url behaves link_to link?

button_to code

<%= button_to "new admin", new_admin_path, :method => :get %> 

take @ own question:

enter image description here

the red arrow points elements button in fact links, styled. can same in app.


Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -