Is there some way to reload all gems in a Rails app without completely restarting the server? I've got a Gemfile that uses :path to reference a dependency that I'm developing on the same system, and it's annoying to have to kill the app and do rails -s again every time I save a change. It'd also be nice in production to be able to update...
I've somehow broken my ruby configuration, and I'm not sure how to fix it. Here's an irb session:
>> require 'ruby-debug'
LoadError: dlsym(0x101a272d0, Init_ruby_debug): symbol not found - /opt/local/lib/ruby/gems/1.8/gems/ruby-debug-base-0.10.3/lib/ruby_debug.bundle
from /opt/local/lib/ruby/gems/1.8/gems/ruby-debug-base-0.10.3...
I would like to debug and possibly contribute to some open source gems but am fairly new to Ruby and Rails. What is the best way to go in and start setting breakpoints, etc?
Right now I just use ruby-debug for my own code and inspect variables mostly.
...
I'm using rails 2.3.5 and devise 1.0.6.
I'm having users confirm account's with email.
However, when a new user sign's up the flash notice says "The user was successfully created" which it was but it doesn't tell the user that they need to confirm their their email unless they try to log in and devise's flash notice still doesn't explain...
I am having trouble configuring Sinatra to use Bundler. I am confused as to where Gems should be being installed? I've read both this question and this documentation.
My Gemfile looks like:
source "http://rubygems.org"
gem "sinatra"
gem "amazon-ec2"
My config.ru looks like:
require "rubygems"
require "bundler"
Bundler.setup
require ...
I've just recently started writing my own gems. One of them requires the gnuplot gem, like so:
module Rocker
require "gnuplot"
# ... module code here ...
end
It works great, right up until I add my gem to config/environment.rb on one of my Rails projects. Then, not a single page will load. I get errors like this:
TypeError in ...
This is really odd: I installed ruby 1.9.1 using a "191" suffix so that it will coexist with other versions. e.g. the executables look like ruby191, gem191 and the library directory where all of the vendor/site code lives is /usr/local/lib/ruby191. The version of RubyGems (1.3.1) that is included with ruby 1.9.1 works fine. The insta...
I have a series of rspec tests which I use to make sure some web scraping services I wrote are still valid. I have all of these inside a GEM which my rails app requires and I'm not quite sure how to embed a rake task of spec for an external gem?
I'm not sure that is at all clear, I have a gem w/rspecs:
Gem w/rspecs
MyApp
I would lik...
I've been struggling to get a rails development environment. I've installed ruby and rubygems through macports, and they are both running from /opt/local/bin. But apparently some permissions are hosed - I've gone through and chmodded all directories I can find related to rubygems, but I'm still unable to run rubygems without a sudo. At t...
When running script commands like script/console I get the error message:
no such file to load -- thinking-sphinx
In my evironment.rb file I have:
config.gem 'thinking-sphinx', :version => '1.3.18', :require_as => 'thinking_sphinx'
In my rake file:
require 'thinking_sphinx/tasks'
I have following versions:
gem 1.3.7
ruby 1.8.7
...
Hey everybody,
I am reading the book Facebook Platform Development in order to try to code a small game for Facebook, and I have come across a "little" problem: I am trying to insert a user every time this is logged, into a database in my computer. I am using a couple of methods written in the book, but there seems to be a couple of pro...
The definitive guide to installing Jekyll seems to be http://wiki.github.com/mojombo/jekyll/install where it says:
gem install jekyll
I am getting an
ERROR: could not find gem jekyll locally or in a repository
regardless of whether I run that command as superuser or not.
gem env Returns the following:
RubyGems Environment:
- RU...
New to RVM and playing with Rails 3 & Ruby 1.9.2 betas...
I've got two copies of rspec in a gemset. Was using beta.19 but need to downgrade to beta.18. changed my gemfile and then bundle install. now i have a mess...
*** LOCAL GEMS ***
. . .
rspec (2.0.0.beta.19, 2.0.0.beta.18)
rspec-core (2.0.0.beta.19, 2.0.0.beta.18)
rspec-expectati...
I'm trying to get the calendar_date_select gem working. I've added <%= calendar_date_select_includes 'blue' %> to my layout, and the actual helper call I'm trying as a test is <%= calendar_date_select_tag "e_date" %> (from the demo page)
The problem is that when I click on the calendar icon, nothing happens, and Chrome's element inspect...
Please bear with me, I'm a gem authoring noob.
Thus far, I haven't even been able to find formal Bundler API documentation, so I'm having a hard time adhering to best practices and knowing what commands do what, and what api changes are happening aside from the small amount of docs on the Bundler website.
So my first gem was based ...
Hello all,
I have a small question. When I tried to install rubygems by following the code here:
wget 'http://rubyforge.org/frs/download.php/60718/rubygems-1.3.5.tgz'
tar -vxzf rubygems-1.3.5.tgz
cd rubygems-1.3.5
ruby setup.rb
But when I try to do ruby setup.rb it says bash: /usr/bin/ruby: No such file or directory
.
So I tried w...
Hello,
So I have a table that looks like this:
A B
A C
B A
C A
C B
I want to delete the lines that the connection of two values are already in represented (so A----B is the equivalent connection as B----A). Basically I want my table to look like this.
A B
A C
B C
How can I do this in Ruby?
-Bobby
EDIT:
H...
I'm having issues installing the sqlite3-ruby gem on crunchbang linux. After googling the past few hours and following several people with the same problem, I still haven't gotten it to work.
Here is what I see after trying a 'sudo gem install sqlite3-ruby'
Building native extensions. This could take a while...
ERROR: Error installin...
Why does Mac OS X come with ruby and ruby on rails pre-installed? Does the OS actually use it at all? Can I update my Ruby, Rails or Gem versions safely without something spitting the dummy?
...
I've been trying to install mongrel on my Mac OS X (Leopard) and it errors out with the message "Failed to build em native extension".
What am I missing in my system? The versions of Ruby and gems that I am using are 1.8.7 and 1.3.3 respectively.
...