similar to: Action variables not available in views with Ajax

Displaying 20 results from an estimated 6000 matches similar to: "Action variables not available in views with Ajax"

2006 Jul 18
8
Including files from lib/
I asked about this a few days ago and got no replies, so I''m asking again. I have a file called string_extensions.rb. In it, I extend the String class to include some extra functionality. I put this file into the lib/ directory of my app. But the changes made to String don''t take effect. The program acts as though the files aren''t being included. I''ve stopped
2005 Dec 28
8
Rails app lags after inactivity
Hi all. I have two Rails applications. Each is on its own VPS hosted by Pipespring (excellent service btw). My app runs lightning quick - AFTER the first load. If I visit my site after a period of inactivity (i.e. no visitors to my site), it takes up to 10 seconds to load that first time. After that I can hop around with no problems. Has anyone run into this before? Ideas? - Rabbit
2006 Aug 01
8
Dumb views?
Hello again! I''ve another "what would you do in this situation" question. You''ve got 6 controllers, one named base. The other 5 controllers extend base. Currently they share one layout. Your layout displays navigation. However, there are two actions inside base for which you do not want navigation displayed (index, new). Do you... a) Add logic to your layout telling
2006 Jan 25
1
Routes working with subdirectories repeat subdirectory...
Hi all. Views associated with admin controllers must always specify both :controller and :action when using link_to. Example: <%= link_to ''Edit'', { :controller => ''/raid_manager'', :action => ''edit_raid_template'', :id => raid_template.id } %> The above is being called from within the Admin::RaidManagerController. The
2006 Jan 21
4
Ruby processes consuming 1,000 megs of swap space
Hi all. The subject pretty much says it. I''m running on a VPS-style shared server at pipespring.com. I''ve got Typo setup, and have been running it fine for about a month. However, today I got an e-mail from my host saying they disabled Ruby (chmod 000) because it was using waaay too much swap space. I haven''t changed anything with my server at all (Rails or otherwise)
2006 Jan 28
13
What''s the verb form of id?
Random question: I''ve written a method for the String class that turns an arbitrary line of text in to an identifier, e.g.: "My, what a beautiful day!" => "my_what_a_beautiful_day" "(anb*#NF(AMNV" => "anb_NF_AMNV" We''ve got all these great names already like underscore, classify, titleize and things like that. I''d
2006 Jul 24
8
Views in one controller reaching out to other controllers (best practices)
Hello all. For the purpose of my question, let''s imagine we''re building some search functionality. You''re a sales person (you poor sap). And you''re hanging out in the SalesCenterController. You need to do a search for available productions; you''ve decided to be cool and use Ajax. Do you... a) Make a remote call to an action in your current controller
2005 Nov 19
3
Permissions problem I don't understand
I am try to use rsync from my windows box (under cygwin) to back up "My Documents" on to a debian server (known on my home network as roo.home) running rsyncd from inetd where it is run as root. my rsyncd.conf file sets the gid and uid to user backup.backup thusly:- syslog facility = daemon uid = backup gid = backup hosts allow = 192.168.0.0/24 hosts deny = 0.0.0.0/0 timeout = 600
2006 Jul 22
4
Accessing the controller name in your views?
I need to know what controller and action the user is currently in to do various things in my layouts/application.rhtml file. Isn''t there is a better way than: <% if params[:controller] == "whatever" && params[:action] == "whatever" %>some html<% end %> I know in the controllers you can just use controller_name, but that is not provided
2009 Nov 15
1
Help with unstack() function
Hi Everyone, I am trying to understand the unstack() function but after struggling for two days, I have given up. More specifically, I am trying the exercises at the end of Chapter 1 of Data Analysis and Graphics Using R by Maindonald and Braun, 2nd ed. Exercise 18 (p. 41) asks to unstack the Rabbit data frame from the MASS package to get a certain data frame that is shown in the exercise.
2007 Aug 13
2
Policy routing question
Hi, I have a testing multihome setup, with the default gateway being one of the links and using policy routing to honor requests for a specific link. Everything works as expected when I request a specific IP to bind to. But if I request a specific interface things fall apart in ways that I can not explain: default gw (WORKS) ---------- rabbit@Thesaurus:~$ ping -c 1 yahoo.com PING yahoo.com
2001 Feb 20
2
Wine just won't work! Baffled.
I just compiled and installed Wine 20010216 snapshot. Compiles fine, installs fine. I set up my configuration to use my Windows install, but when I try to run something, I get messages similar to this: # wine notepad.exe err:module:BUILTIN32_dlopen failed to load .so lib for builtin shell32.dll: /usr/local/lib/librpcrt4.so: undefined symbol: dbch_ole err:module:BUILTIN32_dlopen failed to load
2004 Sep 14
3
Audio Resampling Library Suggestions?
Can anyone recommend a good library for performing audio downsampling? I intend to start playing around with "libresample" (http://ccrma-www.stanford.edu/~jos/resample/README-libresample-0.1.3.txt), as well as taking a look at "Secret Rabbit Code" (http://www.mega-nerd.com/SRC/), but I'd love some opinions before I get too involved with either. Free would be best, but
2001 Dec 04
2
Serial problem with Zworld
I just installed SuSE 7.3 linux including the supplied wine distro. I'm trying to run a single board computer from Zworld called the Rabbit. The specific app name is dcrab619.exe. The gui comes up with no problem but when it tries to talk to the serial port I get these messages from wine: err:string:CompareStringA (s1=(null),s2=""...): Invalide NULL string
2008 Mar 13
3
Splitting a set of vectors in a list
I have a set of character vectors of uneven length that I have stored in a list. I can easily enough get any column of them using lapply but what I want is to be able to create a matrix of them. Other than some kind of brute force looping approach I have drawn a blank. Would somebody please suggest something? Thanks Example. mylist <- list(aa=c("cat","peach" ),
2016 Mar 27
0
DW_TAG_member extends beyond the bounds error on Linux
If you're going to use clang built binaries with lldb, you'll want to pass -fstandalone-debug - this is the default on platforms where lldb is the primary debugger (Darwin and freebsd) Not sure if that is the problem you are seeing, but will be a problem sooner or later On Mar 26, 2016 4:16 PM, "Jeffrey Tan via llvm-dev" <llvm-dev at lists.llvm.org> wrote: > Hi, >
2006 Aug 02
2
Behaviour that I don't understand
I am trying to set up rsync as a daemon under WindowsXP (professional) in order to be able to backup this machine on to a linux server. I am struggling with an issue I don't understand. I don't know whether it is an Rsync issue or a Cygwin issue, so I am asking both mailing lists. My WindowsXP machine has ip address 192.168.0.25 and name rabbit.home My Linux machine has ip address
2006 Jan 08
2
ICONV and REXML
Hi all. I''m having trouble getting REXML to play nicely with an RSS feed that uses an encoding type called WINDOWS-1250. My application works when I comment out the references to the lines that utilize the REXML library. After visiting my app and being told that Rails could not start properly, my server.log file says: FastCGI: comm with server
2016 Mar 27
1
DW_TAG_member extends beyond the bounds error on Linux
Thanks David. I meant to send to lldb maillist, but glad to hear response here. Our binary is built from gcc: String dump of section '.comment': [ 1] GCC: (GNU) 4.9.x-google 20150123 (prerelease) Is there any similar flags we should use? By doing "strings -a [binary] | grep -i gcc", I found the following flags being used: GNU C++ 4.9.x-google 20150123 (prerelease)
2006 Feb 11
16
Why does''nt rails pick up more metadata from a mysql schema?
Hi, when I define a db column to be non-nullable or of length 20 or as numeric, I would expect rails to validate that, but that doesn''t seem to be the case. Any idea why that is? The metadata is accessible, at least in the mysql case. I am using rails 1.0 with mysql 5. Cheers, Mariano