similar to: Am I misunderstanding "require_dependency"?

Displaying 20 results from an estimated 800 matches similar to: "Am I misunderstanding "require_dependency"?"

2005 Sep 27
2
caching in development mode
Hi, I created some new models that do not extend ActiveRecord::Base. For some reason, these classes are being cached in development mode. Controllers are not cached, neither are models extending ActiveRecord::Base. Has anyone else seen this? Here are my relevant development.rb settings: Dependencies.mechanism = :load
2006 Jan 14
12
Dedicated Host Recommendations?
I currently have a dedicated server at ev1servers, but it''s getting rather antiquated (Redhat 9) and am looking to upgrade. I''m thinking about serverbeach.com - one of their CentOS servers. Anybody have any recommendations for dedicated servers on which to run Rails? Hopefully less than $200/month. Thanks! CSN __________________________________________________ Do You Yahoo!?
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
2006 Feb 23
5
Access to session from plugins
Hi! I am writing an acts_as_ plugin and i need to access session data from it. But i cant find any information if this is possible? And if it is, how. Cheers! Mathias
2007 Nov 28
8
include vs. require vs. require_dependency
i am struggling a bit with all of them .. could someone be so nice a describe me the exact differences, pros & cons of all of them ... thx a lot! -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to
2016 Jan 08
2
remove cdrom after installing os on a guest
Hi all, I have the following issue, and I hope someone know a way to handle it. I need to grammatically need to create/install a guest OS using the libvirt API. Currently what I do: 1. create a xml with the vm configuration (this will include a path to the iso image) 2. connection.defineXML(<my_config>) 3. vm = connection.lookupByName(<domain_name>) 4. vm.create() This will
2012 Jun 07
3
Couldn't reload a module when it's changed. Tried :require_dependency, :watchable_dirs, :unloadable
I''m completely messed with module reloading in development mode. I have to restart app server each time I edit lib/z/nginx.rb which is included in app/models/user_case.rb app/models/user_case.rb require_dependency ''z/nginx'' class UserCase < ActiveRecord::Base include Z::Nginx unloadable I added to environment.rb
2006 Feb 27
2
Publishing a Plugin via ./script/plugin
Hi How do I publish a plugin so I can download it via ./script/plugin. I''ve put my plugin (ActiveRBAC) on http://wiki.rubyonrails.com/rails/ pages/Plugins but seemingly ./script/plugin discover does not find it :/ Even if I do ./script/plugin source \ https://activerbac.turingstudio.com/source/active_rbac/trunk/ active_rbac it does not appear on ./script/plugin list.
2006 Mar 03
19
Dreamhost rating?
Hi, I''m looking at getting some hosting to support RoR development. Thus, how would you rate Dream Host? Thanks in advance, -Conrad -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060303/91b84488/attachment.html
2006 Apr 22
5
ActiveRBAC 0.3.1 Released
Hi I am happy to announce the 0.3.1 release of ActiveRBAC Engine. The biggest improvement on the 0.3 release is that it runs with Rails 1.1 now. Get your personal copy now from https://activerbac.turingstudio.com/releases :) There is a manual PDF with a tutorial available at https://activerbac.turingstudio.com/releases/ActiveRbacManual.pdf which is also included in the full
2007 May 24
1
Logging Exceptions
Hi, I am using Mongrel with my own XmlRpcHandler and I get sporadic "500" errors from Mongrel. The handler wraps around the xmlrpc/server module and I am pretty sure that the error is mine and neither in mongrel or xmlrpc/server. I catch all exceptions in my xmlrpc/server handler and do not send out 500 http answers from there. Thus, I expect the problem is in my handler.
2006 May 09
3
send a POST off a link, not a button.
Hi, Got a question about how the book suggests sending POST requests using a form whenever one intents to change some database state. So I converted a bunch of links to forms which ended up creating buttons. I was wondering if there was a way to keep them links rather than buttons but still use POST in a form? thanks. -------------- next part -------------- An HTML attachment was scrubbed...
2007 Mar 13
0
aliasing, require_dependency and require
I''d really appreciate it if someone [with a decent understanding of the rails Dependencies mechanism] could help me explain the behaviour seen in this pastie. http://pastie.caboo.se/46630 The desired behaviour is simply aliasing a method in ApplicationController from a plugin while retaining automatic reloading in dev mode. The pastie is basically divided into 4 parts: - Setup of
2008 Nov 03
1
concerned_with, and maybe require_dependency issues only when running specs?
Hi all, So in the interests of keeping a few areas of my code a bit under control, I''ve been investigating the concept of "concerned_with" as described here: http://paulbarry.com/articles/2008/08/30/concerned-with-skinny-controller-skinny-model Basically allowing me to have: /app/models/user.rb class User < ActiveRecord::Base concerned_with :something end
2005 Jun 29
1
Can't build cdr_addon_mysql.
I have been unable to build cdr_addon_mysql from asterisk-addons-1.09. Could it be a mysql4 issue [root@server9 asterisk-addons-1.0.9]# make cdr_addon_mysql cc -fPIC -I../asterisk -D_GNU_SOURCE -I/usr/include/mysql -c -o cdr_addon_mysql.o cdr_addon_mysql.c cdr_addon_mysql.c:24:22: asterisk.h: No such file or directory I have MySQL devel # ls /usr/include/mysql/ total 404 drwxr-xr-x 2
2006 Jun 19
2
fuzzy search
This may be offtopic to Rails, but what are people doing to find records based on fuzzy string matches? For example, if you wanted to find a Person with name "David Heinemeier Hansson" but searched using the string "Dave Hansson". Currently I am find_by_sql that calls the PostgreSQL function "levenshtein(string1, string2)" which returns results with a score
2006 Mar 27
2
dispatch.fcgi hanging after lighttpd shutdown
Hi. I''m using RoR 1.0 with FastCGI and lighttpd on a Debian 3.1 box. I have configured lighttpd to do adaptive spawning of the FastCGI processes. However, after shutting down lighttpd the FastCGI processes remain running. Did this problem occur to anyone of you? Is there a fix? I''d be really grateful for every answer. Regards, Manuel Holtgrewe
2006 Jan 30
3
RMySQL install
I am having trouble installing RMySQL on a clean install of Fedora Core 4 64 bit on a dual dual core machine (that is, two dual core processors). Seems like the LD_LIBRARY_PATH is incorrect, but I don't seem to have it quite right yet. There are a few mentions of this problem in google, but thus far none of the "fixes" and fixed my problem. I've tried defining the
2005 Aug 21
8
validates_numericality_of
As far as I can tell "numericality" is not a word. Maybe this method should be renamed. -- R. Mark Volkmann Partner, Object Computing, Inc.
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