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

How do you change vbulletin's home page to the forums instead of the default (CMS or Activity Stream)? -

c++ - Troubles when compiling phash program -