similar to: button_to with image

Displaying 20 results from an estimated 300 matches similar to: "button_to with image"

2006 Mar 25
5
button_to with image?
I''m trying to use button_to and have it use an image in place of the submit button. I had figured it would work the same as link_to like so: button_to(image_tag("editicon", :size => "16x16", :border => 0), :action => ''edit'', :id => person.id) but this instead displays the image code as the button name. Surely there is a simple way to
2008 Feb 12
0
button_to problem http://localhost:3000/art/151470;edi
hi all, now i am facing problem with button_to , it shows the path like http://localhost:3000/art/151470;edit instead of http://localhost:3000/art/edit/151470 the path is not displaying problem, so i got the error , no route found. in application_helper : def button_to(name, options = {}, html_options = nil) html_options = html_options.stringify_keys
2006 Jul 24
2
:disable_with for button_to ???
With form_tag submit buttons I use the " :disable_with => ''button label while processing'' " option so that visitors with slow connections aren''t able to submit forms twice. How do I do the same thing with button_to? I''ve got several pages where there are multiple forms on the page being updated with Ajax so I can''t wrap the whole
2007 Feb 24
2
RESTful PUT and button_to
I''m working on a RESTful app, and I''ve hit a snag. Here''s a simplified example of the problem. (Excuse me if this example code isn''t strictly correct; I''m typing from memory.) Suppose I have a table which models a simple counter. It has a single column, "count": class CreateCounters < ActiveRecord::Migration def self.up
2010 Nov 06
0
multi lines in button_to
I am using ROR 2.2.2. In order to make my layout look a bit better I would like to put two words on a button label and have them on two lines. I tried to put a break in the label text but it just ended up as escaped html. Is there any way to put in multi-lines other than writing my own button_to helper? I couldn''t find any help in the documentation or on google. Thanks Norm --
2007 May 19
4
button_to_function with image?
Hi: does button_to_function allow the use of an image? I tried it in place of the text with "image_tag" and it doesn''t work. Maybe some form of button_to? Any direction you can give would be great! Mike -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups
2006 Jan 22
6
Destructive behavior with link_to, button_to, :post=>true
Hello- I would like to know what the suggested practice is for having multiple submit buttons on a relatively complicated input page. Let''s use the example of a Contact. There is lots of info there, including name, address, phone number. There is also a list of "contact associations" which can be modified on the same page. Ideally, the user could have one
2014 Sep 02
0
CentOS-docs Digest, Vol 94, Issue 1
Thanks, I can edit the requested pages. However I can't create a personal home page, I get the error "You are not allowed to edit this page" when I click on the "Create my home page now!" link. > On Sep 2, 2014, at 8:00 AM, centos-docs-request at centos.org wrote: > > Send CentOS-docs mailing list submissions to > centos-docs at centos.org > > To
2006 Apr 04
0
Customized buttons for button_to()?
I wanted to use custom buttons, is there a way I can specify those? -- Posted via http://www.ruby-forum.com/.
2007 Oct 15
6
Form with two buttons
Hi, I need to make a form with two buttons. But I do wrong. And why not can be. form: ------------------------------- <%= form_tag :controller => ''establishment_contents'', :action => ''llamada'', :opMenu => opcionMenu %> [...] <%= image_submit_tag ("../images/incluir.gif", :op=>"addImage") %> [...] <%=
2006 May 19
4
why no multiple submit?
is it by design? is it standard? how do you give users multiple actions on a form? -- Posted via http://www.ruby-forum.com/.
2006 Jan 20
1
form_tag and multiple buttons inside problem
Hi, I have a bit of a problem with a form in rails. Well, the problem really is me not fully understanding the mechanism of the form_tag, so here''s what i try to do: The idea is to present a some edit fields for some @product attributes and then present a table showing the @product.pieces (pieces for every @product) and to include a "Edit Piece" and "Delete Piece"
2007 Sep 04
2
How can i add a confirmation dialog to a submit_tag?
When i use button_to or link_to, i can easily request a confirmation dialog with (for example) <%= button_to "Delete this story", { :controller => "story", :action => "delete", :id => @story.id }, :confirm => "Delete story: are you sure?" %> I also want to do this for the submit buttons on my forms, which are
2014 Sep 01
1
Wiki write access request
Hi, I'd like write access to the wiki - initially to just the following pages: http://wiki.centos.org/Cloud/Docker ? Add how-to build the Docker base images yourself. (There are cases -such as an isolated private cloud- where this may be necessary) http://wiki.centos.org/HowTos/Subversion ? Refresh for CentOS 7 / SVN 1.8 / Add AD integration how-to I would also like to have the rights to
2007 Mar 06
1
link_to, image_submit_tag, "changes only with POST" and "usability without Javascript" question
Hello, I want to have the following features in my rails application: 1. the program should have AJAX if Javascript available 2. I want to protect my application described in http://www.w3.org/2001/tag/doc/whenToUseGet.html - means GET should be safe 3. if Javascript is disabled the application should work too (without AJAX) If I use "GET should be safe" option (verify) and link_to
2006 Jun 01
2
submit_to_remote with an image-tag?
Hi All, I am searching for a way to use an image as a submit button. I''m not having much luck using submit_to_remote with a image-tag, and I can''t use link_to_remote because I need to submit some form fields. I know this must be possible but I am missing something... Ideas anyone? Thanks in advance, Jens
2008 Oct 24
4
Railscast 75, Observe_field and Shopping Cart
Hi all, I have the shopping cart page where a user can add items dynamically through ajax as explained in Railscast episode 75. I am using observe_field to observe the ''quantity'' and ''cost'' fields to update the total field for each item. This does not work however, for records that are added through the Ajax. How can i name the fields and observe them as i have
2007 Jun 23
2
type image submit tags on IE dropping the params
I have noticed that on IE, the @params[:commit] does not come through on image submit tags, but it does when the image is removed. this fails: <%= submit_tag( "Schedule", {:type => "image", :src=>"/images/buttons/schedulecard.gif", :alt=>"Schedule Card", :class=>"button"})%> but this works: <%= submit_tag(
2006 Jan 13
9
form_remote_tag breaks inside table
i guess its better form to keep form tags outside of table tags anyways, but it took a lot of trial and error to figure out thats why @params were no longer showing up after switching form_tag to form_remote_tag. not sure if this is a prototype ''bug'' or ''feature'' or what. but my next step was to switch to a seperate form tag for each row to reduce needless
2011 May 28
0
Two buttons respond do same action.??
Hey I am using rails 3.0.7.I created two buttons simply as: <%= button_to "Great", :action => "click"%> <%= button_to "click me", :action => "work"%> Router.rb file looks like: Check::Application.routes.draw do # get "gne/clg" get "posts/index" resources :posts do end #get