Skip to content

Instantly share code, notes, and snippets.

require 'net/http'
response = nil
Net::HTTP.start('furious-rain-32.heroku.com', 80) {|http|
s = ['r','u','b','y','R','U','B','Y',0,1,8,6]
s.each do |s1|
s.each do |s2|
s.each do |s3|
s.each do |s4|
class ProjectsController < InheritedResources::Base
respond_to :html
has_scope :tag
include Platform::Controllers::Slug
include Platform::Controllers::Auth
include Platform::Controllers::Paternity
include Platform::Controllers::Paginate
end
@chipiga
chipiga / gist:1055994
Created June 30, 2011 10:44
SmartSourcing.ru controllers
class PostsController < InheritedResources::Base
respond_to :html
respond_to :rss, :only => :index
before_filter :authenticate_user!, :except => [:index, :show, :search]
load_resource :except => [:index, :search]
authorize_resource
has_scope :by_blog, :only => :index, :as => :blog_id
has_scope :by_group, :only => :index, :as => :group_id