Skip to content

Instantly share code, notes, and snippets.

class ForumsController < ApplicationController
before_filter :find_forum, :except => [:index, :new, :create]
def index
@forums = Forum.all
end
def show
redirect_to forum_path(@forum)
end
javascript:(function() {
function og_meta(val) {return $("head meta[property=og:"+val+"]").attr("content")};
var ab = ["http://chart.apis.google.com/chart?chs=300x300&cht=qr&chl=", "MECARD:N:", og_meta("title"), ";ADR:", og_meta("region"),og_meta("locality"),og_meta("street-address"), ";TEL:", og_meta("phone_number"), ";"].join("");
$("<img src='" + ab + "'></img>").appendTo($("body"));
})();
pctao@pctao-home-desktop:~$ rvm install ree
/home/pctao/.rvm/rubies/ree-1.8.7-2010.02
ree-1.8.7-2010.02 - #fetching (ruby-enterprise-1.8.7-2010.02)
ree-1.8.7-2010.02 - #extracting ruby-enterprise-1.8.7-2010.02 to /home/pctao/.rvm/src/ree-1.8.7-2010.02
ree-1.8.7-2010.02 - #installing
Error running './installer -a /home/pctao/.rvm/rubies/ree-1.8.7-2010.02 --dont-install-useful-gems ', please check /home/pctao/.rvm/log/ree-1.8.7-2010.02/install.error.log
There has been an error while trying to run the ree installer. Halting the installation.
pctao@pctao-home-desktop:~$ cd /home/pctao/.rvm/src/ree-1.8.7-2010.02
pctao@pctao-home-desktop:~/.rvm/src/ree-1.8.7-2010.02$ ./installer -a /home/pctao/.rvm/rubies/ree-1.8.7-2010.02 --dont-install-useful-gems
Welcome to the Ruby Enterprise Edition installer