Displaying 20 results from an estimated 20000 matches similar to: "mongrel to execute ruby script?"
2006 Dec 22
3
Zed, you''re a moron :-)
Hi !
My mongrel just starting spitting out these nice lines:
The error occured while evaluating nil.accept. TELL ZED HE''S A MORON.
!!!!!! UNHANDLED EXCEPTION! You have a nil object when you didn''t
expect it!
Not sure what happened or why, but just FYI: Zed, you are a moron :-)
Happy holidays!
Gitte Wange
2006 Feb 09
4
Ruby 1.8.4 trouble
Hi!
The ruby installation on my FreeBSD-6 box have been upgraded from
1.8.2 to 1.8.4 by accident. And now all my rails have stopped working.
I can''t produce any cool debug info since I have none. running script/
server just coredumps. Running the sites through apache isn''t an
option since apache won''t start (get lots of these in my log: [Thu
Feb 09 10:38:19
2006 Jan 06
3
Getting model class by string
Hello,
I have an interessting problem, I''m not sure how to solve :-)
I have the name of a model in a variable like this:
My model is called Article
My var contains "Article"
Now - How do I get the model class, so I can call Article.find,
Article.new etc ... ?
Greetings,
Gitte Wange
2006 May 24
8
Rails, Ubuntu dapper & Mongrel > uninitialized constant Mongrel::HttpHandler error
This on Ubuntu testing with the default ruby1.8 package, RubyForge current
gems, mongrel...this look familiar to anyone??
andre@andre:~/rails_apps/depot$ mongrel_rails
/usr/lib/ruby/gems/1.8/gems/mongrel-0.3.13/lib/mongrel/rails.rb:44:
uninitialized constant Mongrel::HttpHandler (NameError)
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:21:in
`require''
from
2005 Dec 28
4
Changing encoding on text
Hello,
I have a set of templates creating some files for me. All data on my
site is encoded using iso-8859-1. Now I want to save the text in the
file using utf-8. I have tried using iconv, but whenever I have the
require "iconv" statement in my model, there is some error happening in
the model and the model doesn''t get loaded (not sure how to debug that).
What approches to
2006 Oct 15
4
Mongrel on CentOS 4.3 / RHEL 4.3 64Bit
I tried to install Rails + Mongrel on CentOS4.3 64Bit (my provider only
has the 64 Bit version available).
I found out, that I have to install gcc and emacs-common and have to
copy the *.h files of the ruby source into a certain directory (see below).
But finally I get an error messag when I start mongrel and I have no
idea how to solve that problem:
wget
2006 Dec 05
7
mongrel and long lived connections
Hi,
I found this article
http://cyll.org/blog/tech/2006-08-09-themongrelcomet.html on mongrel
and COMET very interesting.
I ran the code, and it worked just as Christopher explained. The one
thing I don''t understand is why mongrel can only handle 1 connection
at a time. I thought that mongrel used a thread per connection.
It appears that each registered handler can only handle 1
2006 Jan 03
2
Using multiple columns as primary key
Hi!
I''m trying to use a primary key made up of two columns in my model''s table.
But looking at the docs, it looks like ActiveRecord only supports using
one field as primary key.
Can anyone point me in a direction of this or verify that it''s not
supported?
Greetings,
Gitte Wange
2006 Nov 27
5
win32 problems
I''m setting up a Rails app for a client that uses Windows. I''m
getting this error:
c:/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.18/lib/mongrel/rails.rb:
32: uninitial
ized constant Mongrel::HttpHandler (NameError)
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:21:in `re
quire''
from c:/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.18/bin/
2007 Jul 24
4
GemPlugin or Mongrel::HttpHandler subclass
Hey all
I am working with a technology standard (specific to the commercial
print industry) by which each element within the workflow has bi-
directional HTTP messaging. As each side needs a http server, I
thought I could either:
a) use a gem plugin to modify the behavior of mongrel
b) subclass Mongrel::HttpHandler
In short, its xml messaging between two points; each with a HTTP
client
2006 Sep 13
7
Mongrel spewing backtraces and nanosleeping
Hi list,
I''m seeing a couple of issues with Mongrel. I''m running FreeBSD 6.1 and
have previously been told that there are known conflicts between this
and Mongrel, yet I hope these issues will be resolved with time.
I''m overloading Mongrel with httperf on my local workstation. Mongrel is
started directly with the mongrel_rails command and there is only one
mongrel
2006 Jan 04
4
Need some implementation ideas :-)
Hi,
I have good this cool challenge from my boss on developing a very simple
cms-like system to publish articles within. The caveat is that he wants
to have multi-lingual content.
At first I thought RoR would be perfect for the assignment but right now
I''m not so sure.
My first attempt involved creating a table for each model/languagde like
this:
articles_en
articles_dk
articles_de
2008 Jan 04
1
Howto write a mongrel handler for a CGI app using CGIWrapper
Hello,
Just for further reference in case of someone else want to do the same :
I wanted to write a mongrel for a CGI app :
[[[
require ''cgi''
require ''foo''
cgi = CGI.new
if !cgi[''uri''] || (cgi[''uri''] == '''')
Foo.error "URI argument is required"
end
uri = cgi[''uri'']
user =
2006 Dec 21
1
dealing with multipart forms in a Mongrel::HttpHandler
Hi everyone,
Is there an easy way to parse multipart form requests from within a
Mongrel::HttpHandler subclass or do I need to break out RFC 2388 and a bunch
of regexps?
Thanks,
Mark
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20061221/9e756aa8/attachment.html
2006 Dec 23
2
exception logging
Hi all-
I''m running mongrel with a tiny HttpHandler that hooks into a larger
library I''m working on. I''ve run into a snag with trying to debug
with it in that I''m not entirely sure how to get the exception logs
of errors that are raised.
All I get to stderr is this:
Fri Dec 22 17:16:14 -0800 2006: ERROR: Couldn''t find Models::Contact
without
2006 Jun 13
1
mongrel_upload_progress & plugin question in general
Hello,
So, I grabbed the mongrel_upload_progress code from subversion
because I really need something similar for a project I am working
on. Anyway, I installed the gem and can''t figure out a few things.
1) I''m not sure what Upload < GemPlugin::Plugin "/handlers" is for
2) How to call the Progress < GemPlugin::Plugin "/handlers" handler.
While I
2008 Jun 03
9
clients hang on large PUTs to Mongrel::HttpHandler-based web service
Hi folks,
I have a problem with a storage web service our group wrote using
Mongrel::HttpHandler We have a consistent problem when using
http PUT to this service when the data is larger than about 4 GB.
The web service actually retrieves and processes the data, but the
clients hang - the TCP connection is still in the ESTABLISHED
state on the client side, but the TCP session no longer exists on
2008 Apr 24
4
Pure Ruby HTTP parser
Before anything else, let me state this: Of course it''s going to be
PAINFULLY slow on MRI. That''s not the point :)
I thought I''d try out writing out a Ruby version of the parser for the
purposes of Rubinius. For those of you who aren''t aware, Ragel supports a
goto-driven FSM on Rubinius by injecting assembly directly, and Rubinus head
honcho guy Evan Phoenix
2006 Jun 30
12
Mongrel 0.3.13.3 -- Ruby Licensed Release
Hello Everyone,
This is the official 0.3.13.3 release of Mongrel.
Mongrel is now released under the *Ruby license* instead of the LGPL.
I''m hoping this increases the adoption of Mongrel even further and
hopefully I can start pushing to get Mongrel included in Ruby directly.
INSTALL
As usual, you install it with your friendly gem install method of
choice:
gem install mongrel
Or
2007 Nov 05
1
deploy ruby on rails application by mongrel
1.download ruby-one click for windows from www.ruby-lang.org? set up.
2.run command:
gem install rails --include-dependencies (success)
3.set up mongrel:
gem install win32-service(pick the most recent one)
gem install mongrel (pick the win32 pre-built)
gem install mongrel_service
all of the above were successful.
then i creat an empty folder "d:\myapp",run the command: