Ruby On Rails submit with image button

Hi all,

I will share you about adding image on rails. Please follow me.
1. code html:
  
product search search

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

Postingan populer dari blog ini

EPrT English Proficiency Test Soal - soal

cara memunculkan dan menyembunyikan icon date, time, clock, volume, network, power battery, action center pada taskbar pada Windows 7

Cara Mengurus Perpanjang SIM dan Rincian Biaya di Lumajang.