Displaying 20 results from an estimated 4000 matches similar to: "What makes Rails'' routes non-thread-safe?"
2007 Aug 04
2
How do you run an app on "edge merb"?
I didn''t quite see a direct answer to Matt''s question regarding
running merb from SVN:
http://rubyforge.org/pipermail/merb-devel/2007-July/000132.html
In a merb application, is there something comparable to having rails
in the vendor/ folder of a rails app?
Thanks,
Duane Johnson
(canadaduane)
2012 Oct 05
1
Is Rails Logger Thread Safe?
Is Rails Logger truly not Thread Safe?
http://log.kares.org/2011/04/railslogger-is-not-threadsafe.html
This seems like an issue that should have been picked up quite a long time
ago. I just set config.threadsafe! in my config/application.rb and my log
output from rails server has completely disappeared.
If the logger is not thread-safe, I cannot help but wonder how much of the
Rails core is
2007 Sep 05
5
Reloading ??
All,
So I got passed my initial hurdles with merb 0.4. And all seems to work
very nicely.
Thank you all for your help !
One thing though, why should I have to bounce the merb server when I
change
my controller or associated classes ? Am I missing something ?
I am having flash back to my java days where I now have to reflect on
what changed
and bounce the server accordingly...
2007 Aug 06
2
Proposal: Pure Regex Router
So this has been an idea ever since Rails came out. Why not use a
pure regular expression router in similar fashion to gsub? I imagine
it working something like this:
Merb::Router.prepare do |r|
r.add %r[^/(.*)/(.*)/(\d+)$], :controller => ''\1'', :action =>
''\2'', :id => ''\3''
r.add %r[^/user-(\d+)$], :user_id =>
2008 Mar 19
1
Database Triggered Events in Rails.
I''m creating a message queue system, (think JMS message queue)
Basically, I''ll be firing off an http request as soon as a row appears
in a database.
Now in past implementations I''ve done the following.
1. Polled the database every 0.10 seconds.
2. If something was there to work, I''d tag it as complete.
3. Create a separate thread. (no further database hits
2007 Sep 17
2
Why do we check for the controller file?
I remember having this discussion on IRC before, so Ezra if you could
remind me that would be appreciated:
Why do we check for the existence of the controller file in (what is
now) Request#controller_class?
The reason I ask is that I would like to implement some sort of
"Rails engine" like features for gem plugins--in other words, drop in
a gem that has controllers/views etc.
2007 Mar 07
3
Is there a thread safe ActiveRecord replacement?
I''m using merb as an application server backend for a client application, the goal is to be able to handle thousands of parallell sessions (not parallell requests). It will use sendfile to send files.
The controller uses an singleton that saves sessions in a hash that is memory resident cross requests, but isn''t persistent otherwise.
I''m using ActiveRecord since there
2007 Sep 04
11
returning(...) ?
The following construct is an ActiveSupport-ism:
returning(Foo.new) do |foo|
...
end
I don''t especially like it, since it''s both more verbose and less efficient
than the direct alternative:
foo = Foo.new
...
foo
It doesn''t occur many times in Merb, so does anyone agree with me that it
should be removed?
I tried doing this (patch attached) and I find
2007 Sep 22
9
skeleton and configs
Hi people, just thought I''d mumble out my thoughts on merb''s apps
directory structure and config concepts and see what other people are
feeling...
the app dir:
mvc/application is layed out as expected....maybe
without the mailer by default (another discussion)
the config dir:
I really think that it''s confusing to have such a
mixture of ways to configure some
2006 Dec 26
7
Rubygems 0.9.0.8 and Fastthread problem
Heya Folks-
This is mainly for Zed and Mentalguy. I have been playing with the
new release of rubygems 0.9.0.8 and I have a major problem with the
requirement that fastthread needs to be required before thread. Just
requiring rubygems and then requiring fastthread right after that
will throw the error:
ez _blog $ ruby
require ''rubygems''
require
2004 Dec 02
2
installing Microsoft Office under wine
I have been unable to install Microsoft Office 2000 under wine on
several Fedora Linux machines. The problem seemed to start with the
June 2004 release of wine and has persisted for every version I have
tried up to and including the latest 12/01/2004 version.
I have tried both RPM install and compiling from source with similar
results.
I have one machine running the May 2004 wine that
2007 Aug 31
3
Bootstrapping from SVN
Is there a simple way to bootstrap merb directly from the Subversion
repository, rather than first installing it as a gem?
I can do the following if I already have an old gem lying around:
merb -g testapp # using an old gem
cd testapp
rake merb:freeze_from_svn
Unfortunately, that means I''m using an old version of the generator. So for
example, when I just tried this,
2004 Dec 02
1
Microsoft Office XP Install problems on wine
I'm trying to install Office XP on Fedora 3, with the 12/1/2004 wine build from
the source. I tried the suggestions given by Ronald Nave on Dec 2/2004
(installing DCOM98, windows installer), but to no avail, and I get the following
errors, any help/suggestions are appreciated!
------------------------------------
fixme:wininet:FindFirstUrlCacheEntryA ((null), 0x7fd943b0, 0x5b41ea38): stub
2007 Aug 31
2
New routing system has specs and examples
Check it out here:
http://pastie.textmate.org/92610
Let me know if you have any questions.
Duane Johnson
(canadaduane)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/merb-devel/attachments/20070830/c808d045/attachment.html
2007 Nov 06
2
what did I do?
I''m following merb trunk. This morning I updated my gems, sync''d merb
source and installed the merb gem from source. I don''t know if I did
something wrong, or if a new gem messed things up, or if there was a
merb change which broke something. Now I get this error:
Request: REQUEST_URI: / (2007-11-05 20:27:04)
Params: {"action"=>"index",
2008 Jan 16
3
Application generation
Hi All,
Is anyone seeing this?
$ merb merb_paste
/usr/local/lib/ruby/gems/1.8/gems/merb-0.5.2/lib/merb/config.rb:69:in
`parse_args'': uninitialized constant Merb::RELEASE (NameError)
from /usr/local/lib/ruby/1.8/optparse.rb:785:in `initialize''
from /usr/local/lib/ruby/gems/1.8/gems/merb-0.5.2/lib/merb/config.rb:67:in
`new''
from
2006 Dec 04
2
Merb on Win32 Platform
I''m trying to get Merb running on Windows XP SP2 and am experiencing
some difficulties. I load http://localhost:4000/posts/new in my
browser expecting to see the contents of new.herb rendered. However
the following error is reported:
Request: PATH_INFO: /posts/new
Params: {"action"=>"new", "id"=>nil, "controller"=>"posts"}
2007 Sep 18
10
Routes
hi all,
I want to move some routing tasks out of the router and into the
controller. The goal is to make Merb feel less like mod_rewrite and
give the user more control at the controller. The new Router is
simple: it takes the path_info (not the whole request) then outputs a
controller class and some parameters from the path matching. The rest
of the routing would be done at the controller level.
2007 Aug 27
0
New Router blog post
FYI, I blogged about the new system here: http://blog.inquirylabs.com/
2007/08/27/new-router-in-merb/
Duane Johnson
(canadaduane)
2007 Feb 15
1
wrong startup information in production environment
Hi,
I check out the last codes from merb repository. And the startup
information for production environment just like that:
======================================================
dev:/var/www/apps/upload_merb/current/log# /etc/init.d/merb_init start
Merb started with these options:
---
:template_ext:
:html: :herb
:js: :jerb
:xml: :xerb
:config: dist/conf/upload.conf
:drb_server_port: