similar to: Odd issues loading classes

Displaying 20 results from an estimated 30000 matches similar to: "Odd issues loading classes"

2006 Mar 29
13
Rails on Mongrel
Hi, After following advice from you good folks, I gave mongrel a try in a cluster design based on the example on the Mongrel website - and it worked right out of the box which is great - and it''s very fast :) I have got a bit stuck though. I have two MS Word files in /public/files/. I can pull back these files no problem but it isn''t sending a mimetype. I think I have two
2006 Apr 17
5
XML-RPC Webservice API
Hi, After following the excellent tutorials in the Agile Web Development with Rails book, I was able to get my webservice working pretty much perfectly :) I can access it via SOAP and XML-RPC and look at service.wsdl to find the API. What I can''t do however is get the API for the XML-RPC call. It fails with : Internal protocol error: NilClass is not a valid input stream. It must
2006 Jun 25
2
Working out sales tax...
Hi, Having googled extensively about storing money in Rails, it seems to be accepted that the best way is to store the prices etc in the smallest part of the currency so that you can use an integer i.e ?20 would be stored as 2000 pence. This is fine and I''ve made a nice pretty wrapper that outputs the price in the standard form for invoicing and what not - but here I''ve
2006 Mar 28
6
Deploying rails...
Hi, I thought I''d give lighttpd and FastCGI a go but the latest version I''ve found for fastcgi is 2.4.0 which was released in January 2003. Is this the right version? Can anyone recommend the versions I should use for FastCGI et al and where to find them? I''m not sure I''ve really found what I''m looking for... -- Posted via
2008 Feb 10
2
Mongrel in development mode not reloading classes
Hi there, Even though I am running Mongrel in development mode, I have to manually restart Mongrel to load any changes that I have made to controller or model code. This is the output when I start Mongrel: $ script/server start ./script/../config/boot.rb:29:Warning: require_gem is obsolete. Use gem instead. => Booting Mongrel (use ''script/server webrick'' to force WEBrick)
2006 Mar 21
11
Stuck on ActiveRecord
Hi, I''m having great fun developing with Rails but I''ve come to a problem that I can''t quite figure out. I have an Order object that "has_many" order_lines. This works perfectly and I can see all the lines. The OrderLine object has an order_id field as well as product_id and amount. Now ideally I would want to do : order.orderline[0].product.name for
2006 Apr 17
1
SOAP and exceptions
Hi, I''ve been doing more searching, and I''m kinda stuck on how to send back error messages to a SOAP / XML-RPC client if say for example the username and password they supplied were incorrect. Can anyone point me in the right direction? Cheers, Pete -- Posted via http://www.ruby-forum.com/.
2007 May 27
1
Rails Server Issues
=> Booting Mongrel (use ''script/server webrick'' to force WEBrick) => Rails application starting on http://0.0.0.0:1337 => Call with -d to detach => Ctrl-C to shutdown server ** Starting Mongrel listening at 0.0.0.0:1337 ** Starting Rails with development environment... Exiting /opt/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/servers/ mongrel.rb:15: warning:
2007 Feb 07
1
Auto-installing Gems via boot.rb causes errors under Mongrel
Hi, I''m trying to make my Rails app auto-install my required gems, by invoking the gem installation in boot.rb. I''ll use the ActionMailer gem as an example: ... system "sudo gem install actionmailer --version=1.2.5 -y" ... Problem is that this fails on the first invocation of Mongrel - it can''t find the gem. However, if I kill and restart mongrel (with the
2008 Sep 18
1
user_observer (restful_authentication) causes failure in loading rails
I have restful_authentication in use on an app and it has been working fine, but I recently was changing the account creation flow and needed to enable the UserObserver. I did so by including it in the environment.rb (config.active_record.observers = :user_observer) and Rails wouldn''t start. I got the following error; source/communitysites/vendor/rails/activerecord/lib/active_record/
2009 Aug 13
0
Service can not start
I have tried WEBrick. [root@localhost ltw]# ruby script/server WEBrick => Booting WEBrick => Rails 2.3.3 application starting on http://0.0.0.0:3000 => Call with -d to detach => Ctrl-C to shutdown server [2009-08-13 23:55:14] INFO WEBrick 1.3.1 [2009-08-13 23:55:14] INFO ruby 1.8.6 (2008-03-03) [i686-linux] [2009-08-13 23:55:14] WARN TCPServer Error: Address already
2009 Feb 20
1
how can I disable the rails logging in development?
I can''t seem to disable rails logging when using Mongrel. Any fix for this? Also unanswered on the Rails forum: http://www.ruby-forum.com/topic/109422#784596 Re: how can I disable the SQL logging which occurs in develo Posted by Greg Hauptmann (Guest) on 29.05.2007 21:22 You''re exactly correct Isak! Thanks. The logging functionality worked as it should in webrick. Is seems
2011 Mar 16
0
Making Mongrel/WEBRick serve static assets with future expires header
I''m creating a Rails application which will be deployed to desktop machines, running both the webserver and the browser (it''s a test- taking application which needs to be able to run without an internet connection). For this reason, I''ll be running Mongrel or WEBRick, without an Apache/ Nginx in front of it as you would normally do. The browser will access the Mongrel
2010 Oct 04
3
Upgrade to 2.6.1 appears to break puppetmaster
Hello. While trying to get to the bottom of a puppetmaster+unicorn+nginx rig that''s serving empty files, it seemed to be a relatively sensible idea to upgrade the puppetmaster to 2.6.1 This broke in a manner that seems to be the multiple-& bug. Running the puppetmaster standalone gives the following: [ ... ] info: mount[files]: allowing *.mysparedomain.com access info:
2008 Nov 11
1
Problem Starting Mongrel
Hi, I am newbie started learning ruby on rails i had an application which used to run pretty well latter i upgraded from webbrick to mongrel 1.1.5 then I am getting the foloowing errors and a default application runs on port 3000 i have attached its screen shot as an attachement and error which i get in terminal below => Booting Mongrel (use ''script/server webrick'' to force
2007 Feb 23
0
Mongrel::Uploads.check() not returning status
Hi, I wrote a message earlier regarding how I wasn''t getting any feedback from mongrel_upload_progress. After putting lots of debug messages in the plugin, I figured out what was going on. I had a route like this setup in routes.rb (this was the problem): map.upload "upload/:upload_id", :controller => "file", :action
2007 Dec 07
2
Server is not a class with mongrel
Hello... I am trying to switch to mongrel from webrick to get rid of the . puppetmaster is FreeBSD 6.2 with ruby, puppet, and mongrel all from ports (latest as of this morning). I get "Server is not a class". --verbose, --debug do not spit out any useful info. puppet-0.22.4 ruby-1.8.6.111_1,1 ruby18-bdb46-0.6.2 ruby18-gems-0.9.4 rubygem-daemons-1.0.8 rubygem-fastthread-1.0
2006 Jul 17
0
Difference between mongrel and webrick handling request.request_uri
If I do this GET request: GET /comments/new?description_id=1 HTTP/1.1 what ends up in request.request_uri is different for mongrel and webrick: Mongrel: "/comments/new" Webrick: "/comments/new?description_id=1" The mongrel behaviour breaks my app because I''m storing the uri to redirect to it later. Mongrel even logs the request as: 127.0.0.1 - [Mon, 17 Jul 2006
2008 Jun 12
2
Mongrel won''t start ... mongrel_rails (MissingSourceFile)
Hi All, I''m a newbie and I''m soooo confused at the moment! Here''s my setup: 1) I''ve installed Ruby 1.8 on an Ubuntu 7.10 platform. I used apt to install that. 2) I downloaded rubygems_1.1.1 and installed that (tar -xzf, then ruby setup.rb) 3) I installed rails (gem install rails --include-dependencies) 4) I installed mongrel (gem install mongrel
2009 Sep 22
6
Monitoring the puppetmaster
I''m using 0.24 with Webrick (in the process of migrating to 0.25 / passenger). Occasionally, the puppetmasterd becomes unavailable, and we see error messages along the lines of: Could not call puppetmaster.getconfig: #<Errno::ECONNRESET: Connection reset by peer> I believe the puppetmasterd does not completely die, so it is still in the process list. I''m wondering what