similar to: errors starting god

Displaying 20 results from an estimated 200000 matches similar to: "errors starting god"

2008 Nov 15
0
killall kills god
I was having a problem with cap deploys where you get: Couldn''t find any pid file in ... matching ''dispatch.[0-9]*.pid'' based on the suggestion of another post I implemented the following in deploy.rb which does successful terminate all the Ruby process but this includes God. desc "restart override" task :restart, :roles => :app do run "killall -9
2011 May 18
0
Time based configuration in God
Hi, I am using resque, resque-scheduler gems in my rails app. To monitor the working of resque workers, I am using God tool. I want to add such a god configuration, which will monitor the time of job running in the resque worker. If process execution exceeds the time limit, then it should restart the worker. I read post at http://god.rubyforge.org/. However, couldn''t peek the right
2007 Oct 06
3
Prototype: resp.getHeader('Location'); redirects browser
Why when I call resp.getHeader(''Location''); after my ajax call does the browser get redirected to the location header. I just want to get the value of it. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to
2007 Nov 08
5
Rails byte-range request support
Hi, I''m trying to serve the iPhone a video file from my controller using send_file. However, it appears as thought the iPhone requires byte- range request support and rails doesn''t seem to support this. If I give the iPhone a url that points to an actual file (i.e. it''s served by my webserver nginx, instead of rails) it downloads and plays it fine. Here is the proof
2007 Aug 23
6
Calling a method on class creation
I have a model User that has property called status. Status is just a string that can only be evaluated and not persisted. I.e. it doesn''t have a field in the user table. Anyways, I would like a method get_status to be called anytime I create a new instance of User. For example: user=User.new Since I created a new instance of User, I should now have access to the status property, e.g.:
2007 Nov 07
2
Setting headers in sent_file response
I''m having trouble playing a video from my site on the iphone using send_file. It seems that I''m missing the Accept-Ranges header in my response. How can I set the Accept-Ranges header in my send_file response? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To
2007 Dec 18
2
Active Resource and non default model names
I have a model (accessed restfully) named TranscoderQueue, it''s name is overridden to ''TransocderQueue'' so it is accessed as ''/ transocder_queue'' as opposed to ''/transocder_qeueus''. class TranscoderQueue < ActiveRecord::Base belongs_to :campaign, :class_name => "Campaign", :foreign_key => "campaign_id"
2008 Jan 29
8
Sending file from mobile phone to Rails app
Hi guys, So I''m trying to add the ability to send files (pictures) from mobile phones to my Rails app using an SMS number, NOT an email address. Can anyone share how this is done? Thanks, Adeel -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2007 Sep 30
1
to_xml node names with underscores
When I call to_xml on my active record objects, it replaces underscores with hypens. E.g.: <categories> <category> <content-provider-id type="integer">1</content-provider-id> <id type="integer">2</id> <name>Traffic Alerts</name> </category> </categories> When the actual field is content_provider_id. I remember
2007 Aug 25
1
small yaml problem
Rails seems to throw errors with this yaml: one: id: 1 _3g2: true _3gp: false mp4: false What''s the deal? --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To
2008 Feb 04
2
Starting an exe from within the browser
All, I''m writing a Rails based app. I''m still on Rails version 1.2.2. I need to start an external app from within the browser, only IE and pass an argument to it. The only way I found was using ActiveX. <script language="javascript" type="text/javascript"> function OpenFile(cmd){ var x = new ActiveXObject("WScript.Shell");
2008 Apr 15
2
environment.rb uninitialized constant when starting console
I have the following code in environment.rb: require File.join(File.dirname(__FILE__), ''boot'') raw_config = File.read(RAILS_ROOT + "/config/config.yml") APP_CONFIG = YAML.load(raw_config)[RAILS_ENV] This works fine when running the server, but if I try and start a console I get: Loading development environment.
2009 Feb 24
2
Error going through the "Getting Started" tutorial
Hi, I get this error on step 9 of the Getting Started tutorial: NoMethodError in PostsController#index undefined method `accepts_nested_attributes_for'' for #<Class: 0x23fbc48> Does someone know if it''s a bug? Cheers, Beren --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on
2008 Jan 19
5
HAML makes me love and hate Python
I''m just a rails newbie, but I thought I would point out a small observation. About a year ago, I was having real trouble making the decision about whether I should learn Ruby or Python. I finally settled on Ruby, one of the reasons being that I didn''t want my language to tell me how whitespace should work. (Although the main reason was how object oriented Ruby is) Although
2008 Jul 21
2
webrick needs 80 seconds for starting
ruby script/console webrick after 23 seconds: => Booting WEBrick... after 78 seconds: => Rails application started on http://0.0.0.0:3000 => Ctrl-C to shutdown server; call with --help for options [2008-07-21 08:07:17] INFO WEBrick 1.3.1 [2008-07-21 08:07:17] INFO ruby 1.8.6 (2007-09-24) [i386-mswin32] [2008-07-21 08:07:17] INFO WEBrick::HTTPServer#start: pid=4664 port=3000
2007 May 10
1
errors using ruby script/console
HI all, when i try to use the rails console with this command, ruby script/console, i got the following errors: /usr/local/lib/ruby/1.8/irb/completion.rb:10:in `require'': no such file to load -- readline (LoadError) from /usr/local/lib/ruby/1.8/irb/completion.rb:10 from /usr/local/lib/ruby/1.8/irb/init.rb:252:in `require'' from
2007 Mar 12
2
Mongrel on Windows Server 2003 Results in 500 Errors
Ok, here is the situation: I need to run a mongrel server on windows server 2003. The application it will be serving is an application that is frozen to rails 1.1.6. We''re using mongrel 1.0 as the web server. Every 10th request (random, sometimes more sometimes less), either called through ajax or as a normal page request... dies with a 500 error. No logs are available anywhere, as far
2007 Aug 30
2
RoR - Some Questions Before Starting
Hello everyone, For some time I was studying Ruby on Rails, Active Record ideology and other thing related with RoR right now I still know a lot more about PHP than RoR. I am almost ready to start writing websites using RoR and get more experience. But I still have some questions before starting and I can''t start without answers. If you could simply answer some of them, would be great.
2008 Jan 03
1
Validation errors and file uploads
I''ve got a form that contains a number of textfields, as well as a file upload element. I''ve noticed that this field doesn''t retain it''s data after validation errors. While I know html/http doesn''t allow form fields to be pre- populated per se, it can be faked by stuffing it into the session. Yuck. Is there any accepted pattern/best practice for
2008 Jun 22
6
Installing Rails
Having a god-awful time installing Rails. I started with the instructions found on this page: http://articles.slicehost.com/2007/11/23/ubuntu-gutsy-mysql-and-ror I get the following error: vbfischer@ubuntu:~$ sudo gem install rails [sudo] password for vbfischer: Bulk updating Gem source index for: http://gems.rubyforge.org/ Updating metadata for 13 gems from http://gems.rubyonrails.org/