similar to: question on when ruby classes are refreshed

Displaying 20 results from an estimated 1000 matches similar to: "question on when ruby classes are refreshed"

2005 Aug 06
1
Application doesn't run without a CD
Hello, I have a situation here. I use a French dictionary "Le Petit Robert 2003" on a daily basis for my studies and it's probably the only thing left that ties me to Microsoft Windows. The problem when running it with Wine is that I am asked for a CD to be inserted. This application just won't run without it. The thing is that it shouldn't require a CD since I have made a
2006 Feb 08
0
Classes indise lib folder not refreshed until reboot server ?
Hello, I just test to use the lib folder. I add simple test class with a function that return the argument.upcase. And this is working good. But if I change to argument.downcase, I always have upcase. Even if I quit the browser and return to the page. I must restart the server to see change. There is another solution. More easy ? So, if the site is online, on Textdrive. How apply change ?
2005 Jul 14
1
No locks available... help wanted!
In a last attempt to solve this rails issue, i keep hitting this error in whatever i do on the server. It seems to be a locking issue. The server was working like a charm before ... server specs are: debian (almost virgin) + ruby on rails 0.13 + lighttpd + fastcgi. After searching google, I can''t find anything helpful that relates to the errors I am getting. I can''t find any
2005 Mar 06
12
Where to place custom classes?
Hi all, I am writing a simple shopping cart which will consist of a single class. There will be no DB table for carts so I do not want to make my Cart a model. But where do I place my Cart class so that I can access it in my controllers? I want to be able do do things like this (for instance in a shop controller): def add_to_cart @session[''cart''].add(article_id, amount)
2006 May 01
7
where should I put my hand-coded classes
I have a class that is hand-coded (not generated using generator). Is there a preferred location for the file. app/components ? does it matter? Thanks, -- Posted via http://www.ruby-forum.com/.
2006 May 05
3
Plugin refresh time
Hi there, I''m currently developing a plugin to do authentication and authorisation. In the init.rb file of the plugin I have this code:- $:.unshift File.expand_path(File.join(File.dirname(__FILE__), ''lib'')) require ''open_advantage/authorisation'' ActionController::Base.send :include, OpenAdvantage::Authorisation and this is the skeleton of my
2006 Jan 29
15
Reload the lib directory
Im writing a module in the lib directory. If I change the module, the changes are not visible to the application when i releod the web page (i am in the development evironment). I must restart the web server (WEBrick) and so i see the changes... but I lost more time. How can I reload the module in the dirictory lib, without reload WEBrick? Thanks so much --Reis -- Posted via
2005 Sep 27
5
Am I misunderstanding "require_dependency"?
Hi From what I understand about documentation about require_dependency, this function will work like require but the file will be reloaded on every request to the server when in development mode. I have bootstrapped am minimal RoR project with 0.13.1 Rails. I have created a minimal Controller and hooked up it''s "index" action at the site root. I have also created a
2008 Mar 26
2
Node yaml cache not refreshed ?
Hi folks, When running puppetd --environment whatever, the environment is not taken into account on the puppetmaster. This bug appeared after ticket #1130 got resolved and is certainly due to caching of the node terminus. Looking through the code didn''t help me understand how this yaml cache should get refreshed. On the puppetmaster, the cache files located in
2009 May 08
3
STI and subclassing twice
I''m trying using STI to implement a hiearchy similar to this: script/generate scaffold name:string type:string class Person < ActiveRecord::Base; end class Customer < Person; end class Employee < Person; end class Developer < Employee; end I.e., there are two levels of inheritance (Developer < Employee < Person). When creating a Customer, Rails understands
2018 Jul 13
0
CentOS 7 + MATE : Folder contents not refreshed in file manager
On 2018-07-09, Nicolas Kovacs <info at microlinux.fr> wrote: > Hi, > > I just migrated my workstation running CentOS 7 from KDE to MATE. > > It looks like I'm having the same problem with the Caja file manager > than with Dolphin. Folder contents don't get refreshed automatically, > and I have to hit F5. > > For example, when I download a file (say, a
2018 Jul 09
3
CentOS 7 + MATE : Folder contents not refreshed in file manager
Hi, I just migrated my workstation running CentOS 7 from KDE to MATE. It looks like I'm having the same problem with the Caja file manager than with Dolphin. Folder contents don't get refreshed automatically, and I have to hit F5. For example, when I download a file (say, a compressed archive) from the Internet, I have to hit F5 to see the file in Caja. And when I extract the archive, I
2004 Jun 14
0
Why Database Records Not REFRESHED?
Dear Sir, A have a Application runing on DOSEmu under LTSP environment over a Samba client of RedHat Linux 9.0, which accessing NT4.0/PDC Server. I use the smbmount to dynamically Mounting folder from NT4.0 Server upon user login and map to Dos Drive under DOSEmu environment. We are facing a problem that :- If USER1 of Session1 (over Linux LTSP) are ENTERING new Database Records, sometime
2008 May 08
0
On 'Back' button of browser, drop down doesn't get refreshed
Hey guys, i have a drop down in my UI, which value gets filled by session[:sale]. <%= select_tag :sale_id, options_for_select([["Select Sale", "0"]] + @sales.collect { |s| [s.name, s.name] }, selected = session[:saleid]), { :id => "sale_id", :onchange => "search_verify();" } %> I have a post on, ''onchange'' event of it. if i
2018 Jul 20
1
CentOS 7 + MATE : Folder contents not refreshed in file manager
Le 13/07/2018 ? 21:57, Liam O'Toole a ?crit?: > What do you see in /proc/sys/fs/inotify/max_user_watches? If you > increase the value, does the problem persist? I investigated this, and indeed, it solved my problem. I wrote a little blog article to summarize my findings and put you in the Thank You notes. https://blog.microlinux.fr/inotify/ Cheers, Niki -- Microlinux - Solutions
1998 Nov 02
0
HTML Pages never refreshed
We are running MRTG on a RedHat linux 5.1 box. We are using Samba to allow the NT 4.0 IIS 4 server to mount the share with SMB. The version of Samba that we are running is 1.9.18p5. Here is the portion of the smb.conf that applies to the share: [mrtg] comment = MRTG Data Share browseable = yes path = /home/mrtg/data public = yes writable = no printable = no locking = no
2010 Aug 03
2
When is the L2ARC refreshed if on a separate drive?
I''m running a mirrored pair of 2 TB SATA drives as my data storage drives on my home workstation, a Core i7-based machine with 10 GB of RAM. I recently added a sandforce-based 60 GB SSD (OCZ Vertex 2, NOT the pro version) as an L2ARC to the single mirrored pair. I''m running B134, with ZFS pool version 22, with dedup enabled. If I understand correctly, the dedup table should be in
2012 Apr 07
3
Is require_dependency supposed to be a public API?
If so, shouldn''t it be documented in the Rails API? Or is there a better way to allow class reloading of my files under lib. I mean, I know about config.autoload_paths, but I want to be explicit about my requires. I just want to be able to reload then on each request when I''m working on them. require_dependency seems to do just that but I''m worried since it is not
2008 Nov 18
3
Code changes are ignored due to code minor ver. were cached
Hi there! I study Ruby on Rails and met a problem. I placed a class definition code for class which is NOT a Model into separate file, assume MyToolClass.rb Then I started working on controller code and required ''MyToolClass'' While working on controller code I also corrected some code in MyToolClass.rb, but it seemed, that changes in MyTooolClass.rb were ignored by Rails until
2006 Apr 11
9
Rails failure after upgrade to 1.1.2
Greetings, I tried upgrading Rails to 1.1.2 and now nothing is really working. In connection to the Rails upgrade I upgraded my Ruby version to 1.9.0. I also upgraded all my gem installs. Since my old rails apps stopped working I tried generating a fresh one , alas with the same result. Below I included the full trace when trying to reach the app. Line 3 in application.rb is : class