Merb, short for "Mongrel+Erb", is a model-view-controller web framework written in Ruby. Merb adopts an approach that focuses on essential core functionality, leaving most functionality to plugins.
Questions tagged [merb]
72 questions
0
votes
4 answers
Using Merb for Facebook Application
Since Rails is not multithreaded (yet), it seems like a threaded web framework would be a better choice for a Facebook application. (reason being is cuz each Rails process can only handle one request at a time, and facebook actions tend to be slow,…

Joe Van Dyk
- 6,828
- 8
- 57
- 73
0
votes
2 answers
Are hundreds/thousands of tcp sockets reasonable with memcached?
I'm using Merb::Cache for storing txt/xml and have noticed that the longer I leave my merbs running the larger the amount of open tcp sockets I have open -- I believe this is causing some major performance problems.
lsof | grep 11211 | wc…

eyberg
- 3,160
- 5
- 27
- 43
0
votes
1 answer
merb - no such file to load lib/exceptions
I'm maintaining an old merb applications (merb 1.1.3). I recently switched to ruby 1.9.2 (via rvm) and did a bundle install successfully.
Now when I try to run the applications I get an error. no such file to load: lib/exceptions
How can I fix…

recursive_acronym
- 2,981
- 6
- 40
- 59
0
votes
1 answer
Merb & DataMapper - accessing database connection info?
I'm using Merb and DataMapper with a MySQL db. I want to access the database name, user, and password from a Rake task for my Merb app. I guess I could YAML.load() the the database.yml, but that seems ugly. Any ideas?

nicholaides
- 19,211
- 12
- 66
- 82
0
votes
1 answer
Merb having issues requiring gems
I have merb setup but when I try to run it I get issue with any gems I try to include, e.g. I have the following:
require 'RMagick'
The rmagick gem is installed, and doing the above in irb (after requiring rubygems works as expected) even putting…

DEfusion
- 5,533
- 5
- 44
- 60
0
votes
2 answers
Testing basic HTTP authenticated request in Merb
The Merb Open Source Book has a chapter on authentication. However, the testing an authenticated request section example only shows what you can do for forms based authentication. I have a web service that I want to test with HTTP basic…

ottobar
- 4,301
- 1
- 21
- 15
0
votes
2 answers
method redefined warning while running Merb 0.9.3
I get numerous "method redefined" warnings while running an application under Merb 0.9.3. Of course, I get this only when I run my script using the ruby -w option. Is there any way to get rid of the methods getting redefined (repeated loading of…

abhijit
- 6,363
- 5
- 26
- 32
0
votes
1 answer
If SASS is part of HAML, why do I need Compass in Merb?
This is a theoretical question as much as a practical one. I just can't wrap my head around how all these technologies mesh...
I have heard various things including:
"HAML and SASS are included in Merb"
"SASS is part of HAML"
"HAML works in Merb,…

mltsy
- 6,598
- 3
- 38
- 51
0
votes
1 answer
Problem with rake jobs:work
while i am running rake jobs:work.
I am getting this error.
** Invoke jobs:work (first_time)
** Invoke merb_env (first_time)
** Execute merb_env
** Invoke environment (first_time)
** Execute environment
rake aborted!
uninitialized constant…

krunal shah
- 16,089
- 25
- 97
- 143
0
votes
1 answer
How do I generate a view from the console/script-runner in merb?
I'd like to generate a lot of merb views (around 350.000) and save them to separate files programmatically (they will actually be XML files). One option would be to simply wget them, but that is too slow (already tried it, but takes around two…

SztupY
- 10,291
- 8
- 64
- 87
0
votes
2 answers
Admin Controllers in Merb
How does one do namespaced controllers in Merb, for instance to create an admin section to the site? In Rails one would use Admin::CategoriesController, is this similar in Merb or is this another recommended way of doing it?

Laz
- 3,474
- 9
- 33
- 46
0
votes
1 answer
Net::HTTP::Unauthorized - how do I get at the WWW-Authenticate header?
Given the code below ...
Net::HTTP.start('localhost', 4000) do |http|
#
# usual stuff omitted for clarity
#
@response = http.request(req)
end
... if a (well behaved) server returns a 401 (Unauthorized) response, how do I get at…

Chris McCauley
- 25,824
- 8
- 48
- 65
0
votes
1 answer
Prevent Merb from stripping carriage returns?
Every Google search I've tried on this topic has come up with the reverse of my problem!
I'm building a dynamic downloadable text file for users of a web service so they can export their data. I'm using the standard MVC behavior to write the text…

Jen
- 458
- 5
- 15
0
votes
1 answer
Tell Merb not to timeout
after posting a question related to nginx, I'm a bit further with my investigations: The problem is, that the merb framework timeouts after about 30 seconds. If i tell the underlying nginx-server not to timeout, merb does, and I can't find a way to…

schneck
- 10,556
- 11
- 49
- 74
0
votes
1 answer
merb - wkhtmltopdf command failed
when am running command like this its generating pdf document:
$ wkhtmltopdf http://google.com google.pdf
Loading pages (1/5)
Resolving links (2/5)
Counting pages (3/5) …

Raj Adroit
- 3,828
- 5
- 31
- 44