So I have tried this out on multiple computers with multiple setups (servers/apps) and I seem to consistently get Rails completing 8-15 requests per second even for doing selects on empty tables with 1 field. I think I'm doing something wrong here because I've read a lot of stats online where people are getting 60-200 with mongrel. So be...
I have a gem that uses a binary (htmldoc) that is not bundled into the gem as a native extension (so you can't run rake gems:build to have htmldoc installed). The host machine has to have the htmldoc binary compiled and installed on it in order for the gem to work. How do you get binaries to compile and install when your heroku instance ...
meder@dunross:~$ sudo gem install haml
Successfully installed haml-3.0.12
1 gem installed
Installing ri documentation for haml-3.0.12...
Installing RDoc documentation for haml-3.0.12...
Could not find main page README.rdoc
Could not find main page README.rdoc
Could not find main page README.rdoc
Could not find main page README.rdoc
meder...
As a company policy, rubygems isn't allowed on any of our production servers (which all run debian lenny). All production software must be installed via apt. There is a package for passenger (http://packages.debian.org/lenny-backports/libapache2-mod-passenger), but it depends on rubygems. Before I try to try to hack my own package (pr...
i am thinking of releasing a rails application as a gem. it's sort of a wiki application which also stores user data in the db directory. what would be a good way to go to avoid the user data being overwritten, when a gem update is done?
example:
1) user gets version 1 of the gem/application. the data is stored in the gem directory.
...
hello!
does somebody know how i can handle n:m relations with facets in solr with the sunspot_rails gem?
i have a model item, which has 4 has_and_belongs_to_many relations. now i ´d like to create a search with facets, where an user can select different parts of this 4 relations and after that search the page..
mattherick
...
Normally to use Ruby libraries from command line I can do something like:
ruby -rfastercsv -e 'code'
Unfortunately this doesn't work with rubygems, as they're not enabled by default, and whatever rubygems does to override require doesn't seem to work with -r switch, so I'm forced to do this instead:
ruby -e 'require "rubygems"; requi...
http://googlecharts.rubyforge.org/
I installed it with:
sudo gem install googlecharts
It installed fine, but whenever I try to use it I get:
NameError: uninitialized constant Gchart
Here is the code I am running:
$ irb
>> require 'gchart'
=> true
>> Gchart.line(:data => [0, 40, 10, 70, 20])
NameError: uninitialized constant Gchart
...
I am trying to use a particular gem that hasn't been updated since the inception of Rails 3. It makes a reference to RAILS_ROOT when the gem is initialized, which gives me this:
can't convert #<Class:0x1018695c8> into String (TypeError)
From my understanding, this is because Rails 3 doesn't set Rails.root at this stage of the initiali...
How would one install rubygems on a usb stick so that it would work like it would normally, but all files go on the stick? I have no experience at all with rubygems and have no idea of its inner workings, so please, go easy on me! Thanks in advance, ell.
Edit: Basically, so it is entirely portable!
...
Hi,
I try to deploy my first app on heroku.
I've created a gem manifest file which include:
i18n_routing --version '0.3.3'
When I push to heroku, all the gems are installed but i18n:
-----> Installing gem i18n_routing 0.3.3 from http://rubygems.org
ERROR: Error installing i18n_routing:
i18n requires RubyGems version >...
RubyGems.org, the official gems site, provides poor functions. I want to find some good gems for my website, but it's impossibleit only provides several "New Gems" / "Most downloaded today" gems, and a list of all gems by indices. And the "search" is poor as well.
Anyone know any good site for finding/voting and discussing gems?
...
I'm working on a Ruby gem that uses configurable "templates" to generate HTML. I want to include a basic set of templates with the gem, and allow the users to override them with better/more customized ones. These templates aren't Ruby code, they are "just files" that need to be read from the disk at some point in the code.
I looked over...
I've looked at diff-lcs ( http://raa.ruby-lang.org/project/diff-lcs ) but it's poorly documented, and appears to be unmaintained.
Are there any good, actively maintained ruby gems for diffing text or html files?
...
NOTE: user377519 (answer below) pointed me in the right direction. I've posted the 'fix' at the bottom of the questions, in case you found this and need more than a 'pointer'
I can't figure out why the second call to "gem env" doesn't have the same environment as the first?
Any pointers? This is driving me crazy!!!!
$ which gem
/usr...
Hi there,
Can anybody show me (maybe copy/paste a simple code example) how to create the .pdf file from an existing (.xls) file, using the Prawn gem? (Basically, I'd need the command that "opens" the existing file.)
(I'm asking because the Prawn documentation (http://prawn.majesticseacreature.com/docs/) seems to be gone since quite a w...
I'm having an issue installing the memcached ruby gem on my Mac Pro machine with OS X Snow Leopard (10.6.4).
Memcache is installed and working fine and for most projects I use the memcache-client gem without issue, but this current project I need to use the memcached gem instead.
Installing the gem with env ARCHFLAGS='-arch x86_64' gem...
The other question (here: ) had solutions that I tried but they didn't work.
I am behind a proxy at work, and can't figure out how to get RubyGems to work through it.
Here's some output to help:
josiah@BOX-OF-DOOOM:/etc$ export HTTP_PROXY=http://jkiehl:[email protected]:80/
josiah@BOX-OF-DOOOM:/etc$ sudo gem i c...
Hi,
what are the Rails plugin/gem solutions for converting a .xls file into a .pdf file?
Thanks a lot for any feedback!
Tom
...
Hi,
I've just updated my Rails gem version from 2.3.5 to 2.3.8
I'm using simple_form v=1.0
When I try to render a form I have an error message :
undefined method `html_safe!' for #
Can I patch it in my app or maybe it must be fixed in the simple_form version 1.0 ?
Thanks for your advices :-)
Fro_oo
...