similar to: Reload automatic lib after change

Displaying 20 results from an estimated 50000 matches similar to: "Reload automatic lib after change"

2006 Mar 31
5
Model reloading problem
Hi all, I''ve a model class Toto in the model directory. I don''t understand why i have to restarts WebBrick to view changes i make in this class FYI : in the development. rb i desabled class cache with config.cache_classes = false Regards Luciano -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 Feb 15
2
Ruby install tips
---------- Forwarded message ---------- From: Luciano Broussal <luciano.broussal@gmail.com> Date: Feb 15, 2006 5:00 PM Subject: [Rails] To: rails@lists.rubyonrails.org Hi all, Is anybody know how + to install a ruby application (persitent , after computer restart) in the system tray. Is any body know an installer to package ruby application and to compile it as an file .exe Thank you all
2006 Jan 17
2
Rails Unit test Problem
Hi all, I have a problem with unit test database data reload. I have several test_xxx function in my ruby unit test file I would like to know why xxxx.yml containing test data are load only 1 time for all the test while specification say it done for before each test method. Thus my test_xxx are dependant of previous test This is a mistake, because the specs say the test data are reload
2006 Apr 06
4
Lighthttpd not working as default (configuration?)
Hi, On the api doc it is written that if lighttpd is installed, rails will use it as its web server instead of WebBrick. I have installed lighthttpd and verified it works (for example on the default port 80) but when lauching script/server, it still uses WebBrick. I wondering if I need to edit /etc/lighttpd/lighthttpd.conf myself or configure something else. Any idea? Thanks Oscar
2006 Apr 08
2
RadRails problems - any ideas
Hi, I''ve followed the rad rails instructions for importing a project and have two issues. First my console tab shows "Console is not available" I don''t know if that''s significant or not, yet. Second, I''ve created a WebBrick server, but it doesn''t respond when I try to start it from withing RadRails. There''s no error shown.
2008 Mar 25
0
Automatically reload/restart asterisk following IP change (dynamic IP)
Another useful script for those interested.... On the www.generationd.com web site you will now find the "asteriskcontrol" script file. This script can automatically restart Asterisk (gracefully) following a change in external IP address - for dynamic IP hosts. As well, it can update the SIP/IAX configuration files to reflect the new external IP addresses. You will have to
2006 Feb 14
4
possible to reload a model in script/console(irb)?
I often use script/console to interact with models. It would be nice if script/console acted like WEBrick when it comes to reloading classes that get updated. Anyway to do this? Short of this, is there a way to tell script/console to reload a class manually? My current solution is to exit and restart script/console. -Kelly -------------- next part -------------- An HTML attachment was
2006 Feb 06
2
how do i reload a module in the vendor directory?
This seems like a fairly straight forward question. I have code in the vendor directory. Any modifications that I make to the code are not respected. My rails app is in development mode so I would expect any require ''code'' to be re-parsed. But this is not occuring... How so? I have a test to post if I need to, but I get the feeling that I am just missing something simple. I
2006 May 22
1
Model Modules, Dev vs Prod
I have a pretty complex model with many modules and I have been trying to keep it clean, but I find that loading the model in development mode using WebBrick is much more lenient than production mode with lighttpd/fcgi. For instance, if I neglect to create a dedicated file that declares the module then I run everything in development mode it works fine, but as soon as it is deployed I
2006 Apr 12
1
Great Job Instant Rails Team
Hey John, I received the same type of functionality but I simply used WebBrick instead of SCGI and I was up and running. Great Job Instant Rails Team! :-) BTW, I have used rails on my PowerMac but this is the first for the PC and it took me less than 10 minutes to get operational. This includes download time, unpacking, and firing up the cookbook application. Now, I wish that my .Net project
2006 Mar 31
0
packaging
Hi all, I would like to know where put personnal classes that are not either model or helper. In lib/ but it''s seems not reloadable when i change code. it''s painfull to have to restart each time webbrick to take account changes from /lib Regards. Croco -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 Jun 23
0
How to make rails reload vendor plugins in dev without restarting the server
I am tinkering with one of the plugins I downloaded. Without restarting the server any changes to the plugin in the vendor directory is not reloaded. Is there a way to reload the plugins without restarting the server. -=- -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060623/d1751979/attachment.html
2006 Feb 14
0
Abt config.reload
hi all if i use config.reload while testing my controller, it gives error plz tell whats the correct way to use it also how to use session in testing controller (ie set a user) ? thanks --------------------------------- Yahoo! Mail Use Photomail to share photos without annoying attachments. -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 Feb 22
1
ActiveRecord strange behavior
Hi all, I have a has_many relation between Parent and Child Parent p Child c p.children << c => create the relationship in the database (why not need p.save to see the child add?) why when i modifiy a field in c.how_old i have to explicity call to c.save if i want to see the modification in database (p.save doesn''t persist the modification of chlild c) because when i modify
2006 Jul 07
1
changing workers needs restart?
Hi, Great tool BTW! I have noticed that changing the workers (ie editing them) requires restarting the backrounddb server. Is there a way to improve this for development environments? much like the way rails reloads in development mode without having to stop and restart webbrick? Thanks
2006 Apr 08
4
rails won''t cache my action
I''ve decided to dive into page caching for my rails app. I''m doing my testing with webbrick and it refuses to display the cached page for a particular action. I''ve modified my paginator helper to put the page parameter in the url so that the paginated page can be used with caching. This works perfectly when the page parameter is in the url (ie browse/2006/2 or
2006 Jul 26
1
How to reload classes in lib/ without restarting server
Hi all, We have a class extending a class from a plugin. We didn''t know where to put it exactly, but the lib/ folder seemed to make sense. Problem is, it doesn''t reload the file for each request, so it makes development mode difficult (have to restart the webserver with every request). Any advice on how to make it reload? Thanks in advance! Cameron -- Posted via
2006 Jan 05
2
Agile Depot Tutorial Help
anyone can explain me why in the Agile Depot Tutorial application they use i.product_id to find if a product already exist in the cart, because the cart contains items, each of them references a product. I tried i.product_id like in the tutorial and i.product.i all of these 2 notation works , but i find the second seems more clean??? isn''t it. Any explanation will be fine Regards
2006 Jun 28
0
MySQL Errors
I''m working on deploying my app on Solaris 5.8, Apache 2.0.55, mod_fcgid- 1.09, and mysql-4.1.15. I am getting the following error in my log when running through mod_fcgid: > ActiveRecord::StatementInvalid (Mysql::Error: Lost connection to MySQL server during query:... The catch is that I get no errors when using WEBrick or script/console. It took me a while to get the mysql-ruby
2006 Jan 15
0
HABTM relationships and retrieving multiple selects in controller
Hello all, I have a product table and an option table that are connected to one another via a join table. These two tables both contain has_and_belong_to_many relationships with each other. I am trying to setup a page where I will create a product and add in its options. I have already populated the options table with data to draw from. so, to start, here is the method from my controller: def