similar to: Can I refresh a remotely updated section once?

Displaying 20 results from an estimated 20000 matches similar to: "Can I refresh a remotely updated section once?"

2006 Jun 15
1
Ok, I''m stumped on arrays of form fields
My Alert object has_many Links. I''ve got the whole system setup where, once I have the Alert object created, I can use a nice form_remote to show the user all the Links currently attached, and add more. But the form itself starts out with 0 links. What I''d like to do now is construct the form with a couple of default "Place link here" objects in the array, and
2006 Jun 02
3
Where are the best AJAX examples?
Googling for this has not solved my problems. Is there a particular site that is recommened for its examples and tutorials on Rails'' AJAX capabilities? I know exactly what I want to do, just not how to do it, and am looking for some code to pore over. 1) I have a dropdown that represents the name of an image in a library. When the dropdown value is changed, I would like to refresh
2006 Jun 09
4
View into a String?
I''ve got a nice XML view of my data that works just fine when I call it from the browser. Now I''d like a different controller method to take that XML and write it to the file system. Since the XML view lives in an RXML file, is there a trick to telling the controller "Get your output into a string" instead of writing it back to the browser? After writing it out
2012 Feb 01
6
Does Devise make use of a "status" method? Weird bug.
So I''ve inherited a legacy application and I''m trying to work around the edges as I put an admin tool interface on top of the existing code base. I install Devise for user authentication, since I''ve used it in the past. I change none of the default code. And yet, on successful sign in, I get an error: Render and/or redirect were called multiple times in this action.
2012 Jan 30
4
Reaching into a has_and_belongs_to_many - will :through work?
Hi. I''m hoping somebody can tell me that I''ve just gotten my syntax wrong and I can in fact do what I want to do. I''ve got a Group, and a Group has_many Campaigns. Campaign has_and_belongs_to_many Users (and, naturally, vice versa). So I''ve got a groups table, a campaigns table (that has a group_id), a campaigns_users join table (with campaign_id and
2009 Mar 31
3
Accept POST data from external source?
Ok, this is harder than I thought. I''ve got a hunk of XML coming in from an entirely external source that I do not control (but another department in my company does, so it''s not like a giant security hole). I was hoping to just have them POST their data to me, and then I''d read the raw stream and parse it. I''m sure folks know what I ran into -- Invalid
2006 Nov 07
2
ActionMailer outside of Rails?
Does anyone know of issues using ActionMailer outside of Rails? I''m already selectively using ActiveRecord, so I thought perhaps I could use ActionMailer as well. (To solve one of those last minute "And could you make the app email me if it throws any errors" questions that was never in the original spec...) When I built a single file to test with, it worked fine and I
2006 Feb 08
3
OpenRico LiveGrid or similar
Hi Has anyone used OpenRico''s "on-demand listbox" LiveGrid or something similar in a Rails app already? How well does it behave? I''m asking this because I need a scrollable list but the number of records in the table could be well above 5000. In the past I''ve used similar "on-demand fetchings" in desktop apps and it was a real blessing (the
2006 Jan 03
4
Set the foreign key constraint column name?
I am applying Rails to an existing schema and not sure how much the existing developers will let me go in and rename things. So I need to discover the limits of what I can change with Rails. I''ve found set_table_name and set_primary_key, which have been very useful. If I have a "foo has_one :bar" relationship, but then in the bar table my column is named "fooid"
2007 Oct 19
1
Managing a lopsided has_and_belongs_to_many relationship
I''ve got a fixed list of several thousand Things, and a User base that may grow to who knows how big (we can only hope ,right?) Users have and belong to many Things. I want to display a list of top Things, based on how many users each has. Things with 0 users are not displayed. Two questions. First, I expect the density of the relatioships to focus on a small percentage of the
2006 Feb 12
2
AJAX calls don''t do validation
Chatting on the IRC channel today to people (thanks!) it came up that submitting a form remote bypasses the :validates... in the model. At least thats how it looks from my tests and what people said is the current behaviour. Is this the case? If so, is there a way around it or will it change in the future? I can imagine good reasons for the current behaviour. have fun, SteveC
2006 Jun 07
2
Making an HTTP request to an external machine
During one of my controller actions I want to call an external machine before I do anything. It''s not a real web service, more like a REST-style thing where I''ll just be tweaking a servlet running on another machine and sending it some data. Does Rails give me anything to work with for doing that? I read the web service stuff but it''s overkill for what I need. I
2005 Mar 23
2
Does X100P clone provide Timer?
Does anyone know if the X100P clone cards provide the timer needed to run MOH and the Conferencing service? I have no need for a T1 card, but I'm running asterisk on a dual processor machine with the wrong kind of USB devices, so none of the dummy timers will work for me. Also, I'm running Asterisk@Home (2.4 Kernel). Anyone know if upgrade to the 2.6 kernel will allow me to use the
2006 Jun 02
2
What''s the model pattern for just storing an array of ints?
Maybe this question is obvious, but I''m missing the answer. I want one of the fields in my model to be an array of int. These are not indexes into another model. I''m cool with creating another database table if I have to, but then do I need to do a join to access the data? Or does Ruby have some cool trick where I can translate my array of ints into a String, store it in
2006 Jun 08
1
Is there an official CVS library? And, where would I put it
Two questions. First, I''m wondering if there''s a library already written that will enable Ruby to interface with CVS. I did find one (cvs.m17n.org/~akr/ruby-cvs/) but it''s unclear to me if that is still maintained. Some download links are broken and it seems to be at version 0.2. That''s why I ask if there''s an "official" one? Is that
2006 Jun 15
1
Switching from mysql to postgres
My company uses Postgres, but while developing my Rails app I''ve used mysql on my local machine. I would love to demonstrate the coolness of Rails to my coworkers by recreating my schema on the central database in as few steps as possible. I''ve gotten the feeling that this can be done, something with Rake which I have not yet played with. Can somebody offer a pointer? Is
2006 Jun 22
1
Anybody got a character counting widget?
Just demo''d my app for marketing and they asked whether, on the big text fields, I could give a dynamic character counter so that as they approach the guideline maximum they''ll know. Seems like something that could be written by looking for key click events in the text field. Before I go writing one, though, I thought I''d check and see if anybody knows of such a
2009 May 28
1
Why won't my ActionMailer work inside the controller?
I''ve got a basic mailer setup and am simply trying to get a Hello message through. If I go into script/console and execute Emailer.deliver_message("myself-3Q2Tfjf0mexWk0Htik3J/w@public.gmane.org","My subject", "My message") it works fine. However, if I fire up a controller with a test method that invokes the same thing def test
2006 Jun 14
0
Force rendering an otherwise remotely updated section
I''ve got a place where the user can add lines to an array of data, refreshing the form remotely in place so that every time you submit, a new line of output shows up and you can continue editing. When the user comes back to this page, though, I would like to start by showing all the array elements that are already in there. In other words, I want to render the partial once, that
2006 Mar 14
2
Max retries exceeded to host...
The past two days, I've been having issues with my two VoIP service providers where calls just suddenly hang up. The following is from the log: Mar 14 13:50:55 WARNING[5887] chan_iax2.c: Max retries exceeded to host 64.34.45.100 on IAX2/voipjet-3 (type = 6, subclass = 11, ts=250000, seqno=80) Mar 14 13:50:55 DEBUG[10428] channel.c: Didn't get a frame from channel: IAX2/voipjet-3 Mar