search for: button_to_remot

Displaying 9 results from an estimated 9 matches for "button_to_remot".

Did you mean: button_to_remote
2010 Jun 18
1
how to pass params to button_to_remote ?
Hi folks, I have a form that I populate, and then submit with button_to_remote, but I would like to have all my fileds that I populated passed as parameters (like the params hash) with to my controller. How would you do that ? Reagrds -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails...
2010 Jul 18
0
button_to_remote using jQuery and Rails 3
Is this possible given the button_to_remote function seems to be defined as a Prototype helper? I''ve replaced my /public/javascripts/ rails.js with the jQuery driver. When I try to use button_to_remote I get the error undefined method ''button_to_remote'' for #<#<Class:0x000001078d7090>:0x0000010789ad20&gt...
2009 Sep 26
3
how to pass value to method in controller
how to pass value to method in controller using button_to_remote button_to_remote ''check avaliability'', :url => { :action => ''check_for_unique_login'', :login => @user.login} above code is not working. -- Posted via http://www.ruby-forum.com/.
2006 Aug 18
4
Button on view
Hi, I have a page containing 3 views (2 are partials). One of the partials needs to have a button that will clear a table called "messages" in the database. I can put a button like this "<%= button_to "Clear Messages", :action => ''clear_messages'' %>" and have the controller do "Message.delete_all". But the problem is that the
2007 Mar 23
11
Is there such a thing as button_to_remote?
I''ve changed my destructive link_to statements in favor of button_to. But what if I want to make an .rjs call with that button? Seems like we need something equivalent to link_to_remote, so that the button can make an ajax request instead submitting the form. Or am I missing the point entirely? Jeff --~--~---------~--~----~------------~-------~--~----~ You received this message
2009 Feb 09
0
submit_to_remote change from 2.1 to 2.2 now gives wrong number of arguments
...iew/helpers/prototype_helper.rb, line 421 421: def submit_to_remote(name, value, options = {}) 422: options[:with] ||= ''Form.serialize(this.form)'' 423: 424: html_options = options.delete(:html) || {} 425: html_options[:name] = name 426: 427: button_to_remote(value, options, html_options) 428: end now it wraps the lower level button_to_remote, but I don''t get why mine is failing, looks like submit and button to remote should be the same, but not sure what''s going on, any help is appreciated, Thank you, --~--~---------~...
2006 Apr 19
3
Custom Form Buttons
Is there a way to deliver options for a custom form button to the submit function? As in: <input type="image" name="submit" src="image.jpg" width="126" height="18"> -- Posted via http://www.ruby-forum.com/.
2007 May 11
2
Ajax, buttons, and firefox
I created a button_to_remote function that I use to call :toggle_blind visual_effect :toggle_blind, ''div_id'' It works great on Safari, Opera, IE, but in firefox the button does nothing. Is there a problem with firefox. I can''t seem to find much online about this issue. -- Amos King Ramped Medi...
2010 Mar 22
7
How to reference a select_tag within a form
Hi All, Inside my app\views\expenses\new.html.erb file, I had the code: <% form_for(@expense) do |f| %> [snip] <p> <%= f.label :vendor %><br /> <%= f.text_field :vendor %> <br /> <div id="vendor_droplist> <%= select_tag "test", options_for_select(@current_vendors.collect { |v| v.nickname }), {:multiple