Questions tagged [button-to]
67 questions
0
votes
1 answer
rails button_to replace quotes with single quoute
I try should get button_to but with no qoutes
while rendering
button_to "Delete",
radio_tag_path(tag),
:method=>:delete,
:class=>:destroy,
:confirm=>"Are you sure?"
the output is
0
votes
0 answers
button_to("delete", :confirm) will not pop up and immediately executes delete method
I've looked into this and it might be related to my javascript configs but not sure what I'm missing here:
Views
<%= button_to("Delete Collection", @collection, :confirm => "Really delete bundle and all its examples?", :method => :delete)…

dngoo
- 499
- 1
- 5
- 16
0
votes
1 answer
Change image_tag to button_to
I'm trying to figure out how to change this code:
%li.input.optional= link_to_remove_association image_tag('minus.png', {:alt => "#{t('blabla.remove_model', model: t('activerecord.models.template_instance_right.one'))}"}), f
to use a button…

Sodio Metallico
- 37
- 4
0
votes
1 answer
Button_to with text and image rails 3
How to create a button with label and image in Rails3?
This code only show an image:
<%= link_to image_tag("newRevision.png"), {:controller => :review_transitions, :action => :show_step}, {:class => "navBtn"} %>
but... the image with text?
<%=…

user1364684
- 800
- 2
- 8
- 28
0
votes
1 answer
Rails: First 'button_to' in a page is not surrounded by 'form'
I have this content in a html.erb file. The file is referred to from some view files with render.
image | name | description | status | Options |
---|