similar to: Alternative to nested form tags

Displaying 20 results from an estimated 20000 matches similar to: "Alternative to nested form tags"

2008 Jul 21
2
using image with submit_to_remote
Hi How can I give an image to submit_to_remote .I could successfully do it with link_to_remote as below..But the same not working with submit_to_remote <%= link_to_remote( image_tag("/images/cancel.png", {:alt => ''Cancel'', :class=>"noborder",:title=>"Cancel"}), {:update => "search_contact_div", :url
2006 Mar 08
6
Difficulty with params hash and submit_to_remote
Hi, Is there any trick to initializing the params hash via submit_to_remote()? I have a form with two submit methods - the regular, non-AJAX method, and the AJAX method. The regular method works like a champ. The submit_to_remote invokes the correct controller, but the params hash is empty except for the values for :action and :controller. I''d show my code, but it''s on
2006 Apr 14
2
Nested AJAX remote_form in form?
I''d like to achieve something that is better described by the following code: <%= start_form_tag :action => ''create'' %> <%= text_area ''place'', ''description'', :cols => 100, :rows => 4 %> <div id="categories"> <%= form_remote_tag :update => ''categories'',
2007 Feb 25
5
Dynamically uploading a list that's already in a form
I have the classic case of: Posts, and Categories. When the user submits a post, he has a drop-down list of categories. I want to put a "Add category" link next to the list of categories. This is already inside a form, so a "link_to_remote" that creates a small AJAX form inside the "submit post" form will not work because that will mean to embed a form in another
2009 Jan 18
2
InvalidAuthenticityToken error with remote_form_for
Hi All - I have a form_for that I''m trying to convert to remote_form_for, and I keep get this error: ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken): /usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/request_forgery_protection.rb:86:in `verify_authenticity_token''
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
2006 Jul 21
10
Using an image button for "link_to_remote"
All, I want to do an AJAX request using a custom image button. I currently have this as a standard button action using "button_to". What I need is the button equivalent of "link_to_remote". Is there a helper that I can use, or do I need to build it by hand? I see button_to_function(), but that sets me up to call a Javascript function, not post to a Rails action. Or can
2006 Apr 11
2
link_to_remote to update multiple components
How would go about to update multiple components when using link_to_remote? I''ve got a button that lets you switch between languages and it has to update every component in my application (like, let''s say: the main screen, the top navigation bar and the search bar). Each component is created in a different DIV and whenever the language is switched, the entire application
2006 Feb 17
7
FCGI hanging w/ lighttpd and RoR 1.0 (need to kill -9)
Hi, everyone, I''m currently running a Rails 1.0 project using lighttpd-1.4.9 behind Apache 2 on RHEL 3. My fcgi process (I''m only using one right now) always hangs after some time, which is something I haven''t experienced before (e.g., I''ve run this same app. on a TextDrive account and it works fine there). So ... any ideas on what could be causing this?
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
2005 Aug 12
10
Anyone using Firebird w/ Rails?
I saw that there''s a patch in the queue (http://dev.rubyonrails.com/ticket/1874) for a Firebird adapter. Just wondering if anyone is using this, the other Firebird adapter, or something else w/ Rails. My main interest is that sometimes Windows is a target platform, and Firebird is stable on Windows, whereas I''ve heard that the Windows version of PostgreSQL isn''t
2006 Jul 31
4
Text field not being submitted via form_remote_tag; works via form_tag
Hi everyone, Newbie here. I''m trying to get a textual form element to submit in the context of a form_remote_tag block and having little success. Oddly (or perhaps not), using regular old form_tag in its place does cause the elements to be submitted. Here''s the relevant partial ERb code: <%= form_remote_tag( { :url => { :action => :out, :id => pending_task } } )
2006 Aug 15
2
Are form_remote_tag and submit_to_remote mutually exclusive?
Do I need to use submit_to_remote in conjunction with or instead of form_remote_tag? The description in the API docs. is confusing. Is the combination of form_tag/submit_to_remote valid? Is the combination of from_remote_tag/submit_tag valid? Thanks, Wes -- Posted via http://www.ruby-forum.com/.
2005 Dec 14
4
Fuzzy search on a phrase
I''m trying to use Ferret to do fuzzy searches. If I use fuzzy search for just one word, it works fine: index.search(''name:gogle~0.4'') However, if I try to use a phrase, it doesn''t work: index.search(''name:"gogle search engine"~0.4'') On the other hand, I could do: index.search(''name:gogle~0.4 AND
2010 Jun 30
1
rails 3 submit_to_remote
How do you do ajax functions like submit_to_remote or link_to_remote to ajax update stuff on the page in rails 3? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to
2001 Nov 28
2
Can't connect from Windows 2000
I recently upgraded my Linux install (Debian potato to woody) and now Samba is no longer playing nice with Windows 2000. I can use smbclient on the samba machine to connect to itself, so at least that's working. The error from Windows is: "The semaphore timeout period has expired.". I deleted the smb.log file at one point in an effort to reset it. I figured it'd be created
2005 Aug 24
3
Motherboards and IRQs
Someone mentioned earlier (I can't find the message now) that they had a motherboard that allowed you to change IRQ assignments in BIOS. Does anyone happen to know how to identify motherboards that can do this? I'm going to put together a new machine now and I'm having trouble picking a motherboard for it (ordering from Dell or other online vendor is not an option, since I need
2005 Aug 25
4
VoIP providers -- California, U.S.
Hi, Just wondering if people could suggest a good VoIP provider that can service the San Francisco Bay Area and the Los Angeles area. I've tried race.com (recommended to me) but they're kind of hard to get ahold of. Any other suggestions? This is for a business, so reliability is key. I did see the recent thread about this, and while I saw a few mentioned, I didn't see anything
2006 Mar 28
3
(slightly OT) Reporting tools (Jasper, DataVision, etc.)
We''re evaluating reporting tools right now, both open source and closed. I saw that a bunch of people on this list have considered Jasper/iReport -- is this coincidence, or is this the best open source report writer right now? The proprietary tool we''re comparing them to is Crystal Reports. Reports will need to be editable by end users, and they''re running Mac OS
2006 Mar 15
3
Special characters in ERB
I''m pulling text out of a database that contains special characters, like the trademark sign. For example, a typical string might be like this: string_from_database => "Some Special Brand\231 is for sale this Thursday through Friday." The \231 is the trademark sign (TM). ERB converts this to question marks. So, my question is -- how can I get it to display the trademark