My Recent Pastes (36 and counting)
Pastes by toretore (36 and counting)
Below are the 15 most recent pasties by toretore.
August 16, 2008
12:31PM EDT
by toretore
View all 14 lines
class ApplicationController helper_method :excludes def excludes @€xcludes ||= ['foo', 'bar']
July 14, 2008
5:33AM EDT
by toretore
View all 18 lines
Event.observe(window, 'load', function(){ var button = new Element('input', {type:'button',id:'add-teacher-button'}); $('something').insert({bottom:button});//Where the button should go
July 09, 2008
3:12PM EDT
by toretore
Redirected to http://pip.verisignlabs.com/server?openid.assoc_handle=d8d063b0-4de8-11dd-9b82-6da2deb04956&openid.claimed_id=http%3A%2F%2Ftoretore.pip.verisignlabs.com%2F&openid.identity=http%3A%2F%2Ftoretore.pip.verisignlabs.com%2F&openid.mode=checkid_setup&openid.ns=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0&openid.ns.sreg=http%3A%2F%2Fopenid.net%2Fextensions%2Fsreg%2F1.1&openid.realm=http%3A%2F%2Flocalhost%3A3001%2F&openid.return_to=http%3A%2F%2Flocalhost%3A3001%2Flogin%2Fcomplete%3Fopen_id_complete%3D1
July 04, 2008
11:28AM EDT
by toretore
View all 22 lines
<p class="deletable"> <%= button_to 'Delete me' %> </p> <p class="deletable"> <%= button_to 'Delete me' %>
July 04, 2008
9:50AM EDT
by toretore
View all 29 lines
var Modal = (function(){ var box = new Element('div', {id:'modal-dialog'}); $$('body').first().insert({
June 30, 2008
6:33AM EDT
by toretore
View all 85 lines
require 'openid' require 'openid/store/filesystem' require 'openid/extensions/sreg' require 'timeout'
June 20, 2008
7:12AM EDT
by toretore
View all 94 lines
#This is a complete RESTful login system for use with Rails. I pastied it to show #how incredibly SIMPLE the concept is. You should UNDERSTAND what's going on #when a user logs in to your application. # #Of course, you shouldn't even have to think about authentication, because you
January 06, 2008
1:54PM EDT
by toretore
View all 53 lines
require 'openid' class Login < Application before :require_login, :only => [:destroy] before :require_logout, :only => [:new, :create, :complete]
November 05, 2007
1:04PM EDT
by toretore
View all 26 lines
class Unit < ActiveRecord::Base !!belongs_to :main_group belongs_to :pod, :class_name => 'Pod', :foreign_key => 'pod_id' belongs_to :castle, :class_name => 'Castle', :foreign_key => 'castle_id'
November 05, 2007
12:53PM EDT
by toretore
View all 23 lines
class Test < ActiveRecord::Base !! belongs_to :object end
November 04, 2007
3:57PM EDT
by toretore
View all 84 lines
Schema ------ create_table "videos", :force => true do |t| t.column "name", :string t.column "description", :text
November 03, 2007
10:59AM EDT
by toretore
View all 34 lines
Controller ---------- class UploadFilesController < ApplicationController
November 01, 2007
9:02AM EDT
by toretore
View all 129 lines
module Kernel Ruby♯ = '☠ ☢ ☹' alias λ proc
October 26, 2007
6:04AM EDT
by toretore
##i got it suckers User.update_all('sucks = 1') self.update_attribute(:sucks, false)
