This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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| |