Horje
button in rails Code Example
button in rails
<%= button_to "Delete Image", image_path(@image), method: :delete %>
#first argument is the button text; the second argument is an expression of a route, and method is used to tell the form to send its payload as an HTTP DELETE action




18

Related
integer to string ruby Code Example integer to string ruby Code Example
iterate over string ruby Code Example iterate over string ruby Code Example
how do I add index's to a migration in rails Code Example how do I add index's to a migration in rails Code Example
drop rails all db Code Example drop rails all db Code Example
ruby is int Code Example ruby is int Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9