Skip to content

Instantly share code, notes, and snippets.

has_attached_file :photo, :styles => { :thumb=> "100x100",:small => "150x150>" } ,
:url => "/images/show/:id/:style/",
:path => "#{RAILS_ROOT}/attachments/:class/:id/:style/:basename.:extension"
require File.dirname(__FILE__) + '/../../spec_helper'
describe Admin::SuscriptoresHelper do
#Delete this example and add some real ones or delete this file
it "should include the Admin::SuscriptoresHelper" do
included_modules = self.metaclass.send :included_modules
included_modules.should include(Admin::SuscriptoresHelper)
end
test?
RAILS_GEM_VERSION = '2.1.0' unless defined? RAILS_GEM_VERSION
require File.join(File.dirname(__FILE__), 'boot')
Rails::Initializer.run do |config|
config.action_controller.session = {
:session_key => '_socroto_session',
:secret => 'd57a6a7fbe921516182810d4c1e3c0b0a3e966d2621a69a2c1e4416554a0e9cf5bbf20116e79a77a6b1fba47bab58b2a4d160987bd5fa2109b3b15f631c461ad'
}
end
I maeded u a lolcat
but ur all asskee.
@langly
langly / Oh Hai
Created July 22, 2008 13:54 — forked from Myke/Oh Hai
I maeded u a lolcat
but ur all asskee.
I made you a lolcat
but you're all ASCII.
I'm in your snippet, modifying your grammar.
@Myke
Myke / gist:978
Created July 22, 2008 13:56 — forked from langly/gist:973
I maded for youse a lolfeline
but your EBCDIC.
Im' in you;re whippet, modefying your grammer.
@mrb
mrb / lsd.sass
Created July 22, 2008 14:08
Sass + 3 column A List Apart Layout
/* Change lc_width and rc_width to control column width, and voila */
!lc_width= 140px
!rc_width= 180px
!lc_p= 10px
!lc_pad= !lc_p*2
!rc_p= 10px
!rc_pad= !rc_p*2
!lc_full= !lc_width + !lc_pad
!rc_full= !rc_width + !rc_pad
@schacon
schacon / gistie.rb
Created July 22, 2008 14:17 — forked from anonymous/gistie
create a gist on the command line
#!/usr/bin/env ruby
require "tempfile"
GIST_URL = 'http://gist.github.com/gists'
if ARGV.include? "-p"
text = `pbpaste`
elsif !ARGV.empty?
@filename = ARGV.shift
text = File.read(File.expand_path(@filename))