similar to: Requiring /lib files in a cross-platform way.

Displaying 20 results from an estimated 9000 matches similar to: "Requiring /lib files in a cross-platform way."

2006 Apr 18
11
Which database to choose for a new Rails application - MySQL 4.1 or 5.0?
Hi I''m choosing a database for a new Rails application. I pretty much ruled out PostgreSQL, since despite good reviews of the database itself, it seems it has countless issues with Rails (for example: in recent releases migrations don''t work, and unit-tests fail). So I should now choose between MySQL 4.1, which as I understand enjoys widespread popularity - perhaps the most
2007 Mar 28
14
Autotest
Is anyone using rspec with autotest? Scott
2006 Feb 27
8
Change Bit Value To Text When Viewed
Hey All, very simple question for you folks ;) I have a @commutes object that for each record there is a bit value set (0/1) to denote if an accident occurred. What I want to do is have it display "Yes" or "No" when I view the listing of commutes. I can get it to display the bit value just fine with <%= commute.accident %> but how can I get it so that when a record with
2006 Jun 04
4
directory structure on typo
i was looking through the typo code and see that all of the administrative controllers and views are placed in another subfolder. i tried just moving the files just for kicks and it didn''t work (didin''t really expect it to, but it was worth a shot.) so how do you set something up like that? i tried looking in the routes.rb file, but i''im not sure what''s in
2006 May 25
21
Converting HTML into an Image
I have this challenge of converting a bit of html into an image file and then shrinking it into a thumbnail. The shrinking part shouldn''t be too bad, but what advice can you give on converting the html to the image? My thinking is that I will need to convert it to postscript or latex and then convert it to an image from there. Is there an easier / better approach? Michael
2008 Jan 29
4
Setting up release-1.0.1
Hello, I am unable to get the backgroundrb server to run. Initially I got: /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.1/lib/active_support/dependencies.rb:263:in `load_missing_constant'': uninitialized constant BackgrounDRb::MasterProxy (NameError) from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.1/lib/active_support/dependencies.rb:453:in
2006 Jun 09
8
[how can i delete a file system..please help]
Hi, I''m trying to delete a file system (<xml_26548975.xml>) File.delete("xml_26548975.xml") But I get this error: "Permission denied - ./script/../config/../uploads/xml_26548975.xml". Why? -- Cheers, ioana k&a http://boulangerie.wordpress.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 Aug 10
5
Major security vulnerability in the latest Rails 1.1.5
Hi, I think there is still a major vulnerability exists in the latest Rails 1.1.5. The problem is in the routing.rb file and safe_load_paths method. Because of the erroneous regexp it is possible to perform a DOS attack on any rails application. To reproduce: 1. start your application 2. use this url: http://localhost:3000/debug Routing module will load standard debug.rb script which stops a
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 Apr 19
5
new article up at Linux Journal
http://www.linuxjournal.com/article/8993 If you''ve got feedback, requests for coverage, etc. please let me know. I''ll try to respond in an upcoming column. -- thanks, -pate ------------------------- http://on-ruby.blogspot.com
2006 May 17
4
Knowing id before a call to save
Hiall, Is it possible to find out the value for the id field of any record before it was actually saved, i.e. if new_record? returns true? To motivate this: I have a parent model which should not exists alone but needs a few other (child) models to be initialized whenever a new record of parent is instantiated. Needless to say, the child models need the id of the parent model as foreign key. I
2006 Aug 10
28
On the total nondisclosure of the 8/9/06 security vulnerability
Dear Rails team, The handling of the recent vulnerability in Rails has proven somewhat problematic for us. We have recently adopted Rails as our web platform of choice; previously, we used J2EE. We love Rails. We hate J2EE. We don''t want to go back. It took a lot of effort and convincing to get the management teams of our various projects to sign off on the use of Rails. The
2007 Jan 10
1
Solution for undefined method `use_transactional_fixtures=' ... problem
If you see this error message: undefined method `use_transactional_fixtures='' for Test::Unit::TestCase:Class (NoMethodError) You should check all your dependencies, all the lines containing require and especially require_dependency. You have probably done a refactoring "Rename" a class and forgot to propagate the change everywhere! More details on
2009 Aug 07
2
create separate plots by factors
Hello, I am attempting to create several plots based on "site" (~300 total) and am having trouble with the code. I simply want to create a plot using the code, plot(year, peak), for the following dataset. I would like for each site to be plotted on a separate page and the plots saved in a directory. Would a "foreach" loop work? I tried a "by" statement, but
2006 Feb 17
4
link_to_remote doubles border size
I have a div with a border around it. I use link_to_remote to change the content, and the border size doubles. Example: <div id="test" style="border:solid; border-width:5px"> <%= link_to_remote("Test", :update => "test", :url => { :controller => "tester", :action => "test" }) %> </div> Even stranger, if I
2006 Jan 05
2
how to use a helper which is not inside app/helpers/
Hi, I wish to know it is possible to use a helper which is not inside the folder ''app/helpers'', if it is possbile, what should I do? Thanks you very much!!!! Saiho __________________________________________ Yahoo! DSL ? Something to write home about. Just $16.99/mo. or less. dsl.yahoo.com
2006 Feb 25
5
WEBrick Bad File Descriptor Error
All of a sudden I have a wierd error when running script/server on a Windows XP box. Webrick is failing with a bad file descriptor error. I''m sure it''s conflicting with something in my enviornment, but I cannot figure out what. I googled the issue and haven''t been able to find any answer for it. Although, I did find a workaround. If I''m using a port above
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 Jan 30
14
RoR admin system
I''m preety new at RoR (and programming), I tried a few tutorials, and really like the RoR simplicity, but my knowledge of the framework still isn''t very good (to be true, i understand the basics, but not everything that''s in the tutorials). But still I''d like to create a website which has: - front end interface (with no edit functions) - admin interface
2006 Aug 10
4
1.1.5 Upgrade and config.load_path not working
Hey, I am trying to upgrade to 1.1.5 and rails no longer finds my controllers the live outside app/controllers. I was on 1.1.2 previously and here is my setup In environment.rb config.load_paths += [File.join(File.expand_path(RAILS_ROOT), "rails_shared/controllers") ] config.load_paths += [File.join(File.expand_path(RAILS_ROOT), "rails_shared/helpers") ]