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
Mobile.SessionsNewController = Em.ObjectController.extend | |
startEditing: -> | |
@transaction = @get('store').transaction() | |
@set('content', @transaction.createRecord(Mobile.Session, {})) | |
stopEditing: -> | |
@transaction.rollback() if @transaction | |
@transaction = null | |
save: -> |
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
Mobile.SessionsNewController = Em.ObjectController.extend | |
startEditing: -> | |
@transaction = @get('store').transaction() | |
@set('content', @transaction.createRecord(Mobile.Session, {})) | |
stopEditing: -> | |
@transaction.rollback() | |
@transaction = null | |
save: -> |
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
➜ ~ rbx -v | |
Fatal error loading runtime kernel: | |
Unable to send 'unprintable_chr' on 'Rubinius::CType' (Module) | |
0x7fff6c81b890: Kernel#raise in kernel/alpha.rb:151 (+51) | |
0x7fff6c81c0a0: Kernel#unprintable_chr in kernel/alpha.rb:177 (+34) | |
0x7fff6c81c8d0: Rubinius::CType.toprint in kernel/delta/ctype.rb:21 (+222) | |
0x7fff6c81d100: Rubinius::CType.__module_init__ in kernel/delta/ctype.rb:31 (+74) |
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
➜ rbxtest bundle | |
Fetching gem metadata from https://rubygems.org/....... | |
Using rake (0.9.2.2) | |
Using i18n (0.6.0) | |
Using multi_json (1.3.2) | |
Using activesupport (3.2.3) | |
Using builder (3.0.0) | |
Using activemodel (3.2.3) | |
Using erubis (2.7.0) | |
Using journey (1.0.3) |
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
<!-- http://localhost:3000/dealerships/31959/vehicles/feed.xml --> | |
<?xml version="1.0" encoding="UTF-8"?> | |
<root> | |
<VEHICLES> | |
<DealerID>31959</DealerID> | |
<VIN>4T4BF3EK3BR169767</VIN> | |
<StockNumber></StockNumber> | |
<Status/> | |
<VehicleType/> | |
<Year>2011</Year> |
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
== ChangeChangesPathLengthLimit: migrating =================================== | |
-- change_column(:changes, :path, :text, {:null=>false}) | |
rake aborted! | |
An error has occurred, all later migrations canceled: | |
Mysql::Error: BLOB/TEXT column 'path' can't have a default value: ALTER TABLE `changes` CHANGE `path` `path` text DEFAUL | |
T '' NOT NULL | |
(See full trace by running task with --trace) |
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 'hpricot' | |
require 'open-uri' | |
class PhotosController < ApplicationController | |
IMAGE_SRC = 'http://picasaweb.google.com/data/feed/api/user/kevinherschman?kind=album&access=public' | |
def index | |
doc = Hpricot(open(IMAGE_SRC)) | |
@image_info = (doc/"entry").map do |entry| | |
{ | |
:title => (entry/"media:title").first.inner_text, |
NewerOlder