Displaying 20 results from an estimated 30000 matches similar to: "gems usage question"
2007 Nov 07
1
merb/sequel mutex on or off? proxy_balancer or no?
Just a quick question to those of you using merb and sequel or
datamapper. How do you setup your merb app?
For example:
merb -X off -c 5, then run mod_proxy_balancer or nginx to load balance
between the 5 (or whatever #) of merb nodes?
merb -X off -d, then simply use something like proxypass
merb -c 5, keep the mutex lock and cluster it
haproxy, swiftiply, evented mongrel......
What
2007 Jul 31
1
changeset 355
I have a question about changeset 355 for "Initial support for
controllers to be nested in modules and directories."
I have probably overlooked something here, but it appears to me that
something is missing to be able to route to those nested controllers.
Looking in Merb::Dispatcher, it looks like the workflow goes like this.
route = route_path(request_uri)
route_path then calls
2007 Jul 19
3
Merb::Controller#url Usage
I have a question about the usage of Merb::Controller#url. When I
have nested resources, requesting the new action works differently
than I expected. I was wondering what the intended usage is.
For example:
Say I have
r.resources :articles do |article|
article.resources :article_attachments
end
irb(main):002:0> show_routes
[:articles, "/articles"]
[:article_attachments,
2008 Mar 18
0
rake tasks
Hi All,
New to merb, I was wondering if there are any similar rake tasks to that
of the rails rake stats?
Im using merb version 0.5.3
Tried the aok task and am getting the following:
eoghan-js-Computer:test_app eoghanj$ rake aok
(in /project/merb/test_app)
/usr/local/lib/ruby/gems/1.8/gems/merb-0.5.3/lib/merb/version.rb:45:
warning: already initialized constant RELEASE
rake rcov
(in
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)
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,
2007 Dec 07
4
mrblog rake task fails
Hi all,
I''m trying to run the mrblog sample application but somehow the rake
task fails:
--
Los-Angeles:~/Projects/mrblog Ulf$ rake db:schema:load --trace
(in /Users/Ulf/Projects/mrblog)
rake aborted!
Don''t know how to build task ''db:schema:load''
/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1472:in `[]''
2008 Feb 07
1
geokit on merb
I converted the rails geokit plugin to a merb plugin today. Anyone
interested in testing it out? It seems to be working great for me.
If so, where should I put it? I don''t have a blog up or anything
right now. Been meaning to do that, but haven''t had the time.
-Dusty Doris
2007 Mar 28
0
[recipe] How to get on Merb Edge
Hello,
My name is Olle, and I am new here. I''d like to add some detail to
Ez''s explanation in a previous email [1]. These are the steps I took
to get Merb running Merb Edge (is that what you call it?).
Start in the merb-root not in the dist-root.
# Create dist/framework, plus script/merb stub
rake merb:freeze
cd dist
rm -rf framework
# Replace dist/framework with trunk
2007 Dec 13
2
Trying to use ActiveRecord STI but fails
Hi all,
I''m wondering about my sanity here. There''s probably something simple I
overlooked. First off, I have close to zero experience with Merb.
1. I configured use_orm :activerecord in config/dependencies.rb;
2. I have a file named app/models/measurement.rb which looks like this:
class Measurement < Observation
end
3. I have another file named
2007 Sep 29
1
templates with same name before extension are cached
Hi all,
I was just wondering if this is the intended behavior. Here is my setup:
controller
def index
respond_to do |f|
f.xml { render :xml => true }
f.html { render :layout => :none }
end
end
In my views I have a file for each type
index.herb
index.xerb
The first request I send is cached and interferes with the other one.
For example, if I send an xml request
2007 Jul 12
0
routing question
I am going to be building a project and have been considering giving a
go at merb for it. I don''t necessarily need a speed increase and
rails would certainly serve my needs well. However, it just looks so
clean, I have to try it out.
I also don''t really use (know) all the extra rails stuff much, so I
really just want activerecord and an MVC pattern. Perfect!
So, one of my
2007 Aug 30
1
active record alternatives
Just wanted to get the opinion from merb users on active record
alternatives that you are either using or watching. I''ve been reading
a bit about sequel and data mapper. Both look pretty nice. Anyone
actively using those yet? Any others?
If anyone cares to provide their thoughts, I''d love to hear them.
BTW - is this too off-topic for this list? If so, just let me know
and
2007 Sep 26
0
Fwd: error with schema_info when doing multiple migrations
Posting to merb list in case it is a merb problem. (?!??)
The error still happens with sequel 0.2.1.
---------- Forwarded message ----------
From: Kevin Williams <kevwil at gmail.com>
Date: Sep 23, 2007 10:26 AM
Subject: error with schema_info when doing multiple migrations
To: sequel-talk at googlegroups.com
I tried to post an issue to the project site but it kept giving me 500
server
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
2007 Sep 22
3
merb_sequel raketasks not working?
I''m trying to run on trunk. When I run "rake -T" I get an error:
undefined local variable or method `full_config'' for Merb::Orms::Sequel:Module
I''m not 100% sure that I haven''t messed something up, so I hesitate to
cry "bug" without checking with everyone. Is anyone else seeing this?
P.S. I''m running merb trunk installed as a gem,
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",
2007 Aug 13
0
Problems running merb from trunk
I have no problems loading any static requests, but any that are
routed to a controller blow up. I''m getting a ''Bad controller'' error.
The reason I''m a bit flummoxed is because the stack trace makes no
sense.
It terminates on this line:
resolve_controller 68 /opt/local/lib/ruby/gems/1.8/gems/merb-0.3.7/
lib/merb/merb_dispatcher.rb
As you can see,
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
2007 Sep 21
1
RESTful route gives a 500 error when Content-Type is set
I have encountered a problem with a RESTful route, I have the simple route;
r.resources :people
With a corresponding controller, when I tried to access it using
ActiveResource I get a server error, I have tracked this down to a
problem where if the header ''Content-Type: application/xml'' is sent it
errors out:
> curl -H ''Accept: */*''