Skip to content

Instantly share code, notes, and snippets.

@jrep
jrep / gist:1359766
Created November 12, 2011 00:24
controller helpers for URLs
# I'm looking for URL helpers that allow me to generate URLs from within the controller.
# All controllers inherit from a common base:
class UsersController < ApplicationController
end
# This is an API, not a web site: there are no views. Instead, controller methods
# use ApplicationController#render_result() to format the result in the requested
@jrep
jrep / gist:1260402
Created October 3, 2011 22:13
Can't "gem install bundler" under rvm
On RHEL 5.2, I can't do various bundler-related things under "rvm use 1.9.2-p180@rails". works fine under "rvm system". Where should I look for cause?
Example:
% rvm system
% gem install bundler # works
% rvm use 1.9.2-p180@rails
% gem install bundler