Use href in HTML instead of link_to [Rails]
If you want to use href in HTML instead of link to. It's equivalent link_to in Rails.
And if you want to use method you must use data-method in a tag.
Reference: http://blog.umutbey.com/en/equivalent-link_to-in-html
And if you want to use method you must use data-method in a tag.
Reference: http://blog.umutbey.com/en/equivalent-link_to-in-html
Yorumlar
Yorum Gönder