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
title = XPath.first( coupon, '//property[@type="Offer"]' ).text | |
copy = XPath.first( coupon, '//property[@type="Restrictions"]' ) | |
copy = copy.nil? ? 'Special offer' : copy.text | |
expiration = XPath.first( coupon, '//property[@type="Expiration"]' ) | |
expiration = expiration.nil? ? 1.month.from_now : Time.parse( expiration.text ) | |
@coupon = { | |
:title => title, | |
:copy => copy, | |
:to_date => expiration, | |
:from_date => 1.month.ago, |
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
def extract_location | |
# <addresses> | |
# <address addressId="1" phone="708-636-5911" address1="5043 West 111th St" address2="" city="Alsip" state="IL" zip="60803-6074" /> | |
# </addresses> | |
location = XPath.first @listing, '//address' | |
address_1 = location.attributes['address1'] | |
address_2 = location.attributes['address2'] | |
city = location.attributes['city'] | |
state = location.attributes['state'] | |
zip = location.attributes['zip'] |
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
<%= error_messages_for :email_update_list %> | |
<% remote_form_for @email_update_list do |f| -%> | |
<%= f.label :email, "Email" %> | |
<%= f.text_field :email %> | |
<%= f.submit "Submit", :disable_with => 'Submiting...' %> | |
<% end -%> | |
</div> |
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
#Find all the location records by that advertiser | |
location_records_for_advertiser = Locations.find_by_advertiser_id(@advertiser.id) | |
#make an array of just IDs | |
location_ids = location_records_for_advertiser.collect { |l| l.id } | |
#Find all the placement records by the location ids | |
placements_for_advertiser = Placements.find(:all, :conditions => {:location_id => location_ids}) | |
#make another array of just ids | |
placement_ids = placements_for_advertiser.collect { |p| p.id } | |
pushed_count = PushedDeal.find(:all, :conditions => {:placement_id => placement_ids}).length |
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
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAxlBLoc/X99foTOV5BncQk96J/ZSM6J38YZ1MNTZI+NKvWM7Ds0KSVTxBNGhTYuBGf8XVtMYmwgd39FCv5r+ZO5yxCjlSptwV41JGvbakD2ELmxsIDOfgeyqsyJHk+YGkQpsgFjgmgPWfx0uIdfoksuaaG5my5MPuTFLp9Yom+HgA8S7nNCGvB+N/pe0XRCz1l4qzMKLkzGUQOqo3j4Gy7d1LewqAIJdvt3va/9tMfBcnFdGOsbHW9OkpByzib1W+ymwGo6vATfPX1qnPnfJcKhipVGFNbY9gEzn/5Twgq5jRpWYLVaT++4vE7CIwpa7r14HvBLeaQav5KQpjb/XZxw== [email protected] |
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
Loading development environment (Rails 2.3.8) | |
require 'factory_girl' | |
require 'factory_girl' | |
require 'test/factories/entries' | |
require 'test/factories/mobile_contestant' | |
require 'action_controller/test_process' | |
include MyMd5 | |
Factory(:mobile_image_entry) | |
# app.mobile_contestants_show_media_url(:id => 1228) | |
#app.mobile_parent_signup_form_url(:id => 1228,:parent_email => '[email protected]', :token => digest('[email protected]')) |
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
Processing ImageEntriesController#create (for 127.0.0.1 at 2010-08-06 08:30:45) [POST] | |
Parameters: {"authenticity_token"=>"8MmWYGC9SKhz37vbpBaBhDU3xksXbMjFqu205yNnZJM=", "image_entry"=>{"title"=>"asdawd", "image"=>#<File:/var/folders/wd/wdFmhnpxGlyZXErwK4tcXE+++TI/-Tmp-/RackMultipart20100806-28282-dknjav-0>}, "contestant_id"=>"123", "contestant"=>{"id"=>"123"}} | |
ImageEntry Columns (1.5ms) SHOW FIELDS FROM `entries` | |
[paperclip] identify '-format' '%wx%h' '/var/folders/wd/wdFmhnpxGlyZXErwK4tcXE+++TI/-Tmp-/stream,28282,0.jpg[0]' 2>/dev/null | |
[paperclip] convert '/var/folders/wd/wdFmhnpxGlyZXErwK4tcXE+++TI/-Tmp-/stream,28282,0.jpg[0]' '-resize' '424x304' '/var/folders/wd/wdFmhnpxGlyZXErwK4tcXE+++TI/-Tmp-/stream,28282,0,28282,0.png' 2>/dev/null | |
[paperclip] identify '-format' '%wx%h' '/var/folders/wd/wdFmhnpxGlyZXErwK4tcXE+++TI/-Tmp-/stream,28282,0.jpg[0]' 2>/dev/null | |
[paperclip] convert '/var/folders/wd/wdFmhnpxGlyZXErwK4tcXE+++TI/-Tmp-/stream,28282,0.jpg[0]' '-resize' '166>' '/var/folders/wd/wdFmhnpxGlyZXErwK |
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
~/Development/windycityrails-dojo-chat-server[master]% cat /Users/seanmccullough/.rvm/gems/ruby-1.9.2-p0@rails3/gems/SystemTimer-1.2/ext/system_timer/gem_make.out | |
/Users/seanmccullough/.rvm/rubies/ruby-1.9.2-p0/bin/ruby extconf.rb | |
creating Makefile | |
make | |
gcc -I. -I/Users/seanmccullough/.rvm/rubies/ruby-1.9.2-p0/include/ruby-1.9.1/x86_64-darwin10.4.0 -I/Users/seanmccullough/.rvm/rubies/ruby-1.9.2-p0/include/ruby-1.9.1/ruby/backward -I/Users/seanmccullough/.rvm/rubies/ruby-1.9.2-p0/include/ruby-1.9.1 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wshorten-64-to-32 -Wno-long-long -fno-common -pipe -o system_timer_native.o -c system_timer_native.c | |
In file included from system_timer_native.c:8: | |
/Users/seanmccullough/.rvm/rubies/ruby-1.9.2-p0/include/ruby-1.9.1/ruby/backward/rubysig.h:14:2: warning: #warning rubysig.h is obsolete | |
system_timer_native.c: In function ‘install_first_timer_an |
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
["Apparel - Women's", "Home & Garden", "Apparel - Men's", | |
"Jewelry & Watches", "Baby, Kids & Toy", "Kitchen & Cooking", "Books & Magazine", | |
"Music, DVDs & Video", "Computers & Software", "Office Supply", "Department Stores", | |
"Pet Supply", "Electronics", "Shoes", "Flowers & Gifts", "Sports & Recreation", "Food & Wine", | |
"Tools & Automotive", "Health & Beauty", "Travel & Luggage", "Entertainment", "Daily Deals"]. | |
CATEGORIES = { | |
'Art, Craft & Supplies' => Category.find_by_name(''), | |
'Arts & Entertainment' => Category.find_by_name(''), | |
'Automotive' => Category.find_by_name(''), | |
'Beauty & Spas' => Category.find_by_name(''), |
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
2010-10-15 13:14:19.295 Geoclip.it-dev[7670:207] *** Assertion failure in -[UIWindowController transition:fromViewController:toViewController:target:didEndSelector:], /SourceCache/UIKit_Sim/UIKit-1262.60.3/UIWindowController.m:182 | |
[ERROR] The application has crashed with an unhandled exception. Stack trace: | |
0 CoreFoundation 0x0379bb7c __exceptionPreprocess + 156 | |
1 libobjc.A.dylib 0x038eb40e objc_exception_throw + 47 | |
2 CoreFoundation 0x03754238 +[NSException raise:format:arguments:] + 136 | |
3 Foundation 0x005bee37 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 116 | |
4 UIKit 0x00a5d44f -[UIWindowController transition:fromViewController:toViewController:target:didEndSelector:] + 212 | |
5 UIKit 0x0087210d -[UIViewController presentModalViewController:withTransition:] + 2937 | |
6 Geoclip.it-dev 0x000f1a2c -[TiApp attachModal:toController:animated:] + 290 | |
7 Geoclip.it-dev 0x000f1a5b -[TiApp attachModal:toController:animated:] + 337 |
OlderNewer