similar to: lib/ directory not working?

Displaying 20 results from an estimated 80000 matches similar to: "lib/ directory not working?"

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 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 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
2006 Jan 26
1
Action variables not available in views with Ajax
The title pretty much describes my problem. I have a standard Ajax call to an action the updates a portion of my view. However, variables set inside the action are not available in my view. In fact, NOTHING that happens in my action seems to affect my view. Calling render :layout => false still gives me the flipping layout. However, I know the Ajax call itself is working because I can do
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 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 Feb 02
0
REST on Rails implementation / lib directory and Controllers
Has anyone tried to install/deploy the REST on Rails example from XML.com? (http://www.xml.com/pub/a/2005/11/02/rest-on-rails.html) Being fairly new to Rails, I don''t think I am putting the right pieces in the right places and could use some advice. The primary file associated with the install I have saved in the "lib" directory but my Controller doesn''t seem able
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
2010 Oct 11
0
multiple comparison correction
dear list, i just found this post in the archive: ---------------- On 23-Apr-05 Bill.Venables at csiro.au <https://stat.ethz.ch/mailman/listinfo/r-help> wrote: >:* -----Original Message-----*>:* From: r-help-bounces at stat.math.ethz.ch <https://stat.ethz.ch/mailman/listinfo/r-help> *>:* [mailto:r-help-bounces at stat.math.ethz.ch
2009 Nov 17
0
No such file or directory - /usr/local/lib/ruby/1.8/sparc-solaris2.10/readline.so (LoadError)
I am trying to run console on a Solaris server and I get this error: -bash-3.00$ script/console Loading development environment (Rails 2.3.4) /usr/local/lib/ruby/1.8/sparc-solaris2.10/readline.so: ld.so.1: ruby: fatal: libedit.so.0: open failed: No such file or directory - /usr/ local/lib/ruby/1.8/sparc-solaris2.10/readline.so (LoadError) from /usr/local/lib/ruby/1.8/irb/completion.rb:10
2009 Apr 22
1
Tests for my gem cannot find classes in gems lib directory ..
I am writing a gem and using RSpec to drive my development. However, whenever I describe a class within the gems lib I get an uninitialized constant error. I am placing my folder structure, spec.rake and first spec below. I feel I must be missing something obvious. Additionally, I did output the value of f in lib inclusion code and it is traversing the lib folder correctly and I can
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.
2012 Nov 06
1
Understanding the Rails /lib/ Directory
I am trying to learn how the Rails /lib/ directory works - and how to reference variables defined in a file placed in the the /lib/ directory for use in a View. I have a file called helloworld.rb and it''s saved in the /lib/ directory in my Rails application. The helloworld.rb file has the following code: module HelloWorld def hello @howdy = "Hello World!"
2007 May 05
0
Installing http_authentication plugin leaves out lib directory
When I install the http_authentication plugin thusly: $ script/plugin -v install http://svn.rubyonrails.org/rails/plugins/http_authentication/ Plugins will be installed using http fetching from ''http://svn.rubyonrails.org/rails/plugins/ http_authentication/'' + ./http_authentication/README + ./http_authentication/Rakefile + ./http_authentication/init.rb +
2004 Feb 08
2
strange behaviour with -C
Hi! This problem gave me quite a headache tonight... I more or less have this source directory: hop@krautesel:/var/tmp$ ls -laR from/ from/: total 12 drwxrwxr-x 3 hop hop 4096 Feb 8 03:34 . drwxrwxrwt 6 root root 4096 Feb 8 03:34 .. drwxrwxr-x 2 hop hop 4096 Feb 8 03:18 CVS -rw-rw-r-- 1 hop hop 0 Feb 8
2006 May 03
0
Accessing the params hash in a functional test not working
I am having problems reading params in a functional test (Rails 1.1.2). My test looks like this: fixtures :users def test_auth_bob @request.session[:return_to] = "/bogus/location" post :login, :user => { :email => "bob@example.com", :password => "test" } assert_session_has :user assert_equal @bob, @response.session[:user]
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