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:

the red arrow points elements button in fact links, styled. can same in app.
Comments
Post a Comment