Displaying 20 results from an estimated 10000 matches similar to: "problem with "start" in URL"
2005 Nov 03
9
[Idea] session-wide persistent variables
I was thinking about having instance variable stored and fetched from
session container automatically before calling an action and after the
action is finished. Using methodology of accessors it would look like:
class MyController < ActionController::Base
persistent_attr :person
def alfa
person = ''John Smith''
# render as usual view alfa.rhtml with anchor
2006 Feb 09
1
migration with PostgreSQL - function nextval does not exist
This might be a problem with postgresql, but I''m not sure. In a
migration I have renamed a table so I wanted to rename a sequencer as
well. It looks like:
execute "ALTER TABLE global_vacations_id_seq RENAME TO vacations_id_seq;"
execute "ALTER TABLE vacations ALTER COLUMN id SET DEFAULT
nextval(''vacations_id_seq''::regclass);"
But the process of
2007 Aug 10
0
[OFF-TOPIC] SCGI now maintained by Jeremy Evans
Hi,
As many of you know I also wrote the SCGI connector for Ruby on Rails before I worked on Mongrel. I eventually stopped working on it since it was kind of pointless, but Jeremy Evans has stepped up and offered to maintain it. He''s now the official maintainer and will be managing the SCGI project:
http://rubyforge.org/projects/scgi/
If anyone is interested in helping out then let
2010 Mar 08
0
Nested Resources + Namespace + Friendly URL
Hi, all
In my rails app I have a controller called Dashboard::MenusController
with a namespace dashboard.
I have a model Company too, where its has_many :menus
So, I have the code above in my route.rb
map.namespace (:dashboard) do |dashboard|
dashboard.resources :companies,
:has_many => :menus
end
With this route I can create a new menu by: dashboard/companies/1/
2006 Mar 08
2
"humanizing" model attributes presentation
Given a field in database defined as "discount_rate numeric(3,1)" I
found it not very usable for presenting it directly. For example, if
there''s a value 5.00 it will render in
<%= text_field ''model'', ''discount_rate %>
as "0.5E1" which is not very friendly to user. All I do is that I write
kind of proxy accessors (prefixing with
2006 May 16
2
Pass env var from Apache to Mongrel?
I use Apache to serve the static pages and let Mongrel handle Rails
requests via mod_rewrite/proxy. Apache RewriteRule can set
environment variable on the fly, and this is one of the features I
used, set an env var based on domain name.
I used to use SCGI Runner which was fine as the env var was passed to
Rails via scgi protocol. I seems can''t find a way to set env var in
Mongrel on
2011 Sep 06
1
Workers getting broken after some time
I have strange error that happens after couple of hours. Some instances
start to respond on any request with status code 500. Log file
unicorn.stderr.log gets populated with this error:
app error: undefined method `each'' for nil:NilClass (NoMethodError)
/usr/local/lib/ruby/gems/1.9.1/gems/rack-1.1.2/lib/rack/utils.rb:267:in
`initialize''
2006 Mar 04
5
Correcting Bent Records: Mongrel is not SCGI
Hi,
I kept getting a very weird question about Mongrel
(http://mongrel.rubyforge.org) and SCGI that I think really needs to be
cleared up:
** Mongrel is not SCGI and will never need, use, require, or interact with
SCGI (unless someone wants to write the handler for it). **
For some reason people have been under the impression that Mongrel actually
uses or interacts with my other project SCGI
2006 Dec 20
2
OSX Dashboard Widget for managing mongrels...
Hey everyone -
I recently switched to using a Mac and have several different rails
projects going and was getting tired of starting/stopping mongrels via the
shell so wrote my first dashboard widget to do it for me.
More details at the URL below...
http://blog.pjkh.com/2006/12/20/mongrel-rails-dashboard-widget
Hope those of you on OSX find it handy... feels good to finally give
something
2006 May 10
7
mongrel vs. scgi
I''ve liked the scgi runner ever since it came out. I like the way it''scontrolled, the way it''s clusterable, and the fact that it runs onwin32 platforms so easily.
Now it''s May 2006, and the scgi runner hasn''t changed since October,and now we have mongrel. I keep seeing hints of clustering in mongrel,as well. I just downloaded the win32 installer for
2007 Jun 07
0
Functional Tests Fail - No URL can be generated for hash
Hi,
I''m just learning Ruby and Rails. I have developed a Rails application,
but not using the creation scripts that come with the rails
distribution. Consequently, no test scaffolding is available to me, and
I''m trying to write my functional tests from scratch.
I have what might be considered a standard plain old controller
(dashboard_controller.rb) that I''m trying
2006 Apr 06
4
Mongrel Web Server 0.3.12.3 -- Thread Tracking and Debugging
Hello Everyone,
Mongrel is getting closer and closer to being a rock solid release. My goal
is to release 0.4 as "production ready" by Canada on Rails. Please report
any problems or suggestions you have. There won''t be any major features or
improvements just fixes and code reviews to repair any found bugs or
security concerns.
People interested in Mongrel should look at
2006 Apr 11
0
Instant Rails 1.3
Instant Rails 1.3 upgrades Ruby on Rails to its newly released version
1.1.2 and adds the native C MySQL/Ruby driver. There were no other
changes over Instant Rails 1.1
-----------
Instant Rails is a one-stop Rails runtime solution containing Ruby, Rails,
Apache, and MySQL, all preconfigured and ready to run. No installer, you
simply drop it into the directory of your choice and run it. It does
2007 Oct 09
0
Fix for using memcache store in mongrel cluster
Hi,
I was having problem with disappearing sessions when storing them in
memcache and when runnning as mongrel cluster in production environment.
I''ve created a patch and it seems it''s now okay. A message to rails-core
including the link to patch <http://dev.rubyonrails.org/ticket/9823> can be
found in the group here:
2006 Apr 19
0
Instant Rails 1.3a -- bug fix release
It turns out the native C MySQL driver is causing segfaults (at least on
Windows 2000), so this is a minor maintenance release that removes this
driver. Rails will automatically use the pure Ruby driver, instead.
If you already have Instant Rails 1.3 installed, you don''t need to download
this, just delete the file:
InstantRails\ruby\lib\ruby\site_ruby\1.8\i386-msvcrt\mysql.so
There
2006 Mar 03
0
Mongrel 0.3.7.1 -- 1000 Paper Cuts Release
This release of Mongrel is coming at you with lots of very little but
important features and fixes. The big highlights are:
* Initial beginning of the plugin support that will let people write
their own handlers and other things for Mongrel.
* Timeout now works again but couldn?t find an alternative to the buggy
Timeout class.
* SwitchTower friendly signal handling for
2007 Jan 09
0
Production Mode with SCGI
Hi,
I have an application running on Apache SCGI (Win XP). Once I run it in
production mode (scgi_ctrl config -S -e production ) I''m getting
stack trace instead of HTTP status 500 (Application Error) and the
error is logged production.log. The application works fine without
SCGI. Your help is highly appreciated....
Thanx
/* production.log */
# Logfile created on Thu Jan 04 16:35:43
2006 Mar 07
0
production.log says status 200, browser says 500?
I have a long running operation (more than a minute) that is running in
a request. The operation completes according to the log and the log says
that it returns http status 200. Sometimes an error message is written
after the 200 log message (included at the end of this message). But the
browser get a status 500 from the Apache server. We''re using Apache with
SCGI on Windows doing
2005 Nov 15
11
Collecting thread: Too many open files (Rails+SCGI crash)
I have a problem with running Rails 0.13.1 with scgi_rails 0.4.3 and
Apache. After running for some time (more than a day), the SCGI
process stops with the following error (from scgi.log):
--
[ERR][24189] Collecting thread: Too many open files
[ERR][24189] /usr/local/lib/ruby/gems/1.8/gems/scgi_rails-0.4.3/lib/scgi.rb:188:in
`accept''
2006 Mar 06
0
Mongrel 0.3.9 -- GemPlugin Based
Hello everyone,
Mongrel now has plugins that are based entirely on RubyGems. This feature
was so slick that I decided to bust it out into a separate project called
GemPlugin (more on that later). What the new plugin system does is makes it
so that people can distribute Mongrel plugins as just plain gems, and
mongrel will load them on the fly if people install them. There''s no