This file contains hidden or 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 'openssl' | |
| require 'digest/sha1' | |
| require 'base64' | |
| require 'cgi' | |
| require 'time' | |
| require 'json' | |
| SUBDOMAIN = "Your Desk.com Subdomain" | |
| API_KEY = "Your Multipass API Key" |
This file contains hidden or 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
| Exception ActionController::UnknownHttpMethod in application (DEBUG, accepted HTTP methods are OPTIONS, GET, HEAD, POST, PUT, DELETE, TRACE, CONNECT, PROPFIND, PROPPATCH, MKCOL, COPY, MOVE, LOCK, UNLOCK, VERSION-CONTROL, REPORT, CHECKOUT, CHECKIN, UNCHECKOUT, MKWORKSPACE, UPDATE, LABEL, MERGE, BASELINE-CONTROL, MKACTIVITY, ORDERPATCH, ACL, SEARCH, and PATCH) (process 29804, thread #<Thread:0x0000000165dfc8>): | |
| from /srv/project/shared/bundle/ruby/1.9.1/gems/actionpack-3.2.11/lib/action_dispatch/http/request.rb:275:in `check_method' | |
| from /srv/project/shared/bundle/ruby/1.9.1/gems/actionpack-3.2.11/lib/action_dispatch/http/request.rb:68:in `request_method' | |
| from /srv/project/shared/bundle/ruby/1.9.1/gems/railties-3.2.11/lib/rails/rack/logger.rb:40:in `started_request_message' | |
| from /srv/project/shared/bundle/ruby/1.9.1/gems/railties-3.2.11/lib/rails/rack/logger.rb:31:in `call_app' | |
| from /srv/project/shared/bundle/ruby/1.9.1/gems/railties-3.2.11/lib/rails/rack/logger.rb:16:in `block in call' | |
| from /srv/p |
This file contains hidden or 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 Website < ActiveRecord::Base | |
| validates :state, :inclusion => { :in => ['review', 'active', 'paused', 'rejected'] } | |
| validate :address_in_a_special_way | |
| def address_in_a_special_way | |
| #add an error if address doesnt correspond to my custom rules | |
| end | |
| end |
This file contains hidden or 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
| * actionmailer (3.2.1) | |
| * actionpack (3.2.1) | |
| * activemodel (3.2.1) | |
| * activerecord (3.2.1) | |
| * activeresource (3.2.1) | |
| * activesupport (3.2.1) | |
| * addressable (2.2.6) | |
| * arel (3.0.0) | |
| * builder (3.0.0) | |
| * bundler (1.0.21) |
This file contains hidden or 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
| Gems included by the bundle: | |
| * actionmailer (3.2.1) | |
| * actionpack (3.2.1) | |
| * activemodel (3.2.1) | |
| * activerecord (3.2.1) | |
| * activeresource (3.2.1) | |
| * activesupport (3.2.1) | |
| * addressable (2.2.6) | |
| * arel (3.0.0) | |
| * builder (3.0.0) |
This file contains hidden or 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
| <script type="text/javascript"> | |
| var AdBrite_Title_Color = 'FFFF66'; | |
| var AdBrite_Text_Color = 'FFFFCC'; | |
| var AdBrite_Background_Color = '000000'; | |
| var AdBrite_Border_Color = 'CCCCCC'; | |
| var AdBrite_URL_Color = 'FFFF66'; | |
| try{var AdBrite_Iframe=window.top!=window.self?2:1;var AdBrite_Referrer=document.referrer==''?document.location:document.referrer;AdBrite_Referrer=encodeURIComponent(AdBrite_Referrer);}catch(e){var AdBrite_Iframe='';var AdBrite_Referrer='';} | |
| </script> | |
| <span style="white-space:nowrap;"><script type="text/javascript">document.write(String.fromCharCode(60,83,67,82,73,80,84));document.write(' src="http://ads.adbrite.com/mb/text_group.php?sid=2067425&zs=3436385f3630&ifr='+AdBrite_Iframe+'&ref='+AdBrite_Referrer+'" type="text/javascript">');document.write(String.fromCharCode(60,47,83,67,82,73,80,84,62));</script> | |
| <a target="_top" href="http://www.adbrite.com/mb/commerce/purchase_form.php?opid=2067425&afsid=1"> |
This file contains hidden or 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
| <script type="text/javascript"> | |
| var AdBrite_Title_Color = 'FFFF66'; | |
| var AdBrite_Text_Color = 'FFFFCC'; | |
| var AdBrite_Background_Color = '000000'; | |
| var AdBrite_Border_Color = 'CCCCCC'; | |
| var AdBrite_URL_Color = 'FFFF66'; | |
| try{var AdBrite_Iframe=window.top!=window.self?2:1;var AdBrite_Referrer=document.referrer==''?document.location:document.referrer;AdBrite_Referrer=encodeURIComponent(AdBrite_Referrer);}catch(e){var AdBrite_Iframe='';var AdBrite_Referrer='';} | |
| </script> | |
| <span style="white-space:nowrap;"><script type="text/javascript">document.write(String.fromCharCode(60,83,67,82,73,80,84));document.write(' src="http://ads.adbrite.com/mb/text_group.php?sid=2067425&zs=3436385f3630&ifr='+AdBrite_Iframe+'&ref='+AdBrite_Referrer+'" type="text/javascript">');document.write(String.fromCharCode(60,47,83,67,82,73,80,84,62));</script> | |
| <a target="_top" href="http://www.adbrite.com/mb/commerce/purchase_form.php?opid=2067425&afsid=1"> |
This file contains hidden or 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
| Gems included by the bundle: | |
| * actionmailer (3.1.3) | |
| * actionpack (3.1.3) | |
| * activemodel (3.1.3) | |
| * activerecord (3.1.3) | |
| * activeresource (3.1.3) | |
| * activesupport (3.1.3) | |
| * addressable (2.2.6) | |
| * archive-tar-minitar (0.5.2) | |
| * arel (2.2.1) |
This file contains hidden or 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
| <?php | |
| session_save_path(dirname(__FILE__) . '/tmp/'); | |
| $garbage_timeout = 3600 * 24 * 30; // 3600 seconds = 60 minutes = 1 hour | |
| ini_set('session.gc_maxlifetime', $garbage_timeout); | |
| session_set_cookie_params($garbage_timeout, '/', '.'.$domain); | |
| session_start(); | |
| ?> |
This file contains hidden or 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
| Failure/Error: get :account_deleted | |
| ActionController::RoutingError: | |
| No route matches {:controller=>"users", :action=>"account_deleted"} |
NewerOlder