I'm unable to update RubyGems because of shared hosting, but can change versions of rails quite easily.
I get the following error when I try to start mongrel:
** Starting Mongrel listening at 0.0.0.0:2011
** Starting Rails with production environment...
Rails requires RubyGems >= 1.3.2 (you have 1.3.1).
Please `gem update --system` an...
Hi all..
I am new to RoR and I am experiencing the 500 server error for a long time without success.
I need someone tell me (or link to) how to debug RoR apps from the shell.
My application is redmine and I am trying to host it at hostmonster who tuns rails version 2.3.8
...
I am just starting to learn ruby. It seems that the default gems install path is not part of Ruby. Is this normal behavior? How can I set the default ruby path? Example:
[11:53:33]wuntee:/Library/Ruby/Gems/1.8/gems/packetfu-1.0.0/examples$ sudo ruby arphood.rb
Fetching the oui.txt from IEEE, it'll be a second. Avoid this with arphood.r...
Installing an old project on a new computer.
If I type :
$> rake db:migrate
It returns:
uninitialized constant Geocode
/Users/macuser/Sites/hq_channel/vendor/rails/activesupport/lib/active_support/dependencies.rb:443:in `load_missing_constant'
...
I sudo gem install'd all the gems that were in the environment.rb..
I did a rake ge...
When a certain request hits my app I would like to reset the database back to its original state which is backed up in an sqlite3 file. I'd appreciate any help.
The app is hosted on heroku.
...
Hello,
I have installed multiple state_machine gems to my app to use them for a notification system but every time I run into an ActiveSupport issue. It usually looks something almost identical to this:
>> m = Message.new
TypeError: wrong argument type nil (expected Module)
from /home/Ryan/appname/app/models/message.rb:2:in `i...
We're transitioning from 'frozen' rails gems to using bundler and would like to maintain the rails gems with patches, merges etc. say from an external git source. What's the easiest way to set this up, adding gemspecs to the patch branches etc.?
...
by default bundler install gems into system root.
but I want to install gems into $HOME.
how can I do it?
...
Hi all, I'm a newbie to Ruby on Rails. I had a quick question about installing gems.
I'm using a windows 7 64 bit machine with Ruby 1.9.2 and Rails 3.0 and I'm trying to install the gravatar_image_tag gem.
gem install gravatar_image_tag
After I run that it says its succcessful. But when I try to do this:
gravatar_image_tag -v
...
I get a NoMethodError: undefined method `get_best_compatible' for nil:NilClass in mail
`from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.0/lib/active_support/whiny_nil.rb:48:in 'method_missing'from /usr/lib/ruby/gems/1.8/gems/mail-2.2.7/lib/mail/body.rb:143:in 'get_best_encoding' from /usr/lib/ruby/gems/1.8/gems/mail2.2.7/lib/mail/mes...
On Ubuntu, if Rails 3.0 was installed using
sudo gem install rails
and then Rails 2.3.8 was installed later:
sudo gem install -v 2.3.8 rails
Now the system has both Rails 2.3.8 and 3.0.0. But if the following is typed into bash:
rails -v
Then 3.0.0 will show. Is there a way to switch to using 2.3.8 instead?
...
I came across a Gem that had a nice way of releasing certain features to a subset of your users. I believe it even had cucumber integration, so you could write tests for different sets of users. If someone knows the name, I would really appreciate it!
...
I'm wondering if there's a more direct way to get and record a users IP in the model itself. I've been doing it from the controller but I noticed using the rakismet gem it mentions doing everything from within the model, but not the IP specifically.
http://github.com/joshfrench/rakismet
Currently I'm doing this, just before I save fro...
I've been using the acts-as-taggable-on for tagging in my development app, but when I push it to Heroku, I get a nasty error:
ActionView::TemplateError (PGError: ERROR: relation "tags" does not exist
: SELECT tags.*, taggings.tags_count AS count FROM "tags" JOIN (SELECT taggings.tag_id, COUNT(taggings.tag_id) AS tags_count FROM "taggi...
I have installed following gems:
actionmailer (2.3.8)
actionpack (2.3.8)
activerecord (2.3.8)
activeresource (2.3.8)
activesupport (2.3.8)
open4 (1.0.1)
pg (0.9.0)
rack (1.1.0)
rails (2.3.8)
rake (0.8.7)
My application uses postgres as db and pg gem and it had been working fine by the time I done
rake rails:freeze:gems
rake gems:un...
I am making a gem, but how to test(not unit test, just make sure the program is right) it ?
Need I pack it and run every time when I modify it?
...
I was trying to use
rake gems:freeze GEM=facebooker2
but then rake won't support it. (using rake 0.8.7, gem 1.3.7, rails 2.3.8, ruby 1.8.7)
So looks like the current supported freezing is
rake rails:freeze:gems
but after I do that, I use hg status | grep facebooker (similar to git status, to see what files are added or modified) ...
Post your idea here. Keep it short and interesting to the general public.
When posted, your idea is up for grabs, anybody can make it happen, sell it as their own etc. etc. Who cares, as long as it gets done, right?
The background:
I came up with a great idea (but maybe it isn't or it's an utopia) and googled "rails feature request". ...
I've copied my Rails 2 site over to my production server, and when I run script/server on the production server, I get the following:
-bash-3.2$ script/server
=> Booting Mongrel
=> Rails 2.3.8 application starting on http://0.0.0.0:3000
/home/nwa36a/vhosts/aromapersona.localhost/config/../vendor/rails/railties/lib/rails/vendor_gem_sourc...
Hello,
Do you have any preferences regarding facebook graph api in Ruby ?
My needs are quite basic: beeing able to update my facebook status.
I saw several things like:
- facebooker
- facebooker2
- facebook-client
- facebook-graph (I am studying this one)
Any preferences ?
Regards,
Luc
...