Ruby On Rails submit with image button
Hi all,
I will share you about adding image on rails. Please follow me.
1. code html:
2. code rails:
Please using image_submit_tag I hope this article is usefully.
I will share you about adding image on rails. Please follow me.
1. code html:
2. code rails:
<%= form_tag fast_tracks_path, :method => 'get' do %>
product search <%= image_submit_tag("/assets/icon-search.png") %>
<%= text_field_tag 'variant[name]' %>
<% end %>
Please using image_submit_tag I hope this article is usefully.
Komentar
Posting Komentar
terimakasih komentarnya