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
24sharon
  • 1,859
  • 7
  • 40
  • 65
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…
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. <% @activities.each do…
Don Giulio
  • 2,946
  • 3
  • 43
  • 82
0
votes
1 answer

Rails button_to for Custom Name / Value Submit

In Rails is it possible to achieve an HTML output like this using button_to? What are the reasons for using button_to over manually…
benedict_w
  • 3,543
  • 1
  • 32
  • 49
0
votes
1 answer

Rails button_to with multiple line text

I'm writing a Rails application and I have button that I create as follows: <%= button_to t('.upload_html'), ... %> where the ... stand for the other options. So the button should have the text pointed to by .upload_html and it does. Now I want…
1 2 3 4
5
image name description status Options