Skip to content

Instantly share code, notes, and snippets.

cam-mac:~ camwest$ cat ~/.MacOSX/environment.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>EDITOR</key>
<string>/usr/local/bin/mate -w</string>
<key>JAVA_HOME</key>
<string>/Library/Java/Home</string>
<key>CATALINA_HOME</key>
package com.yardstick.shared.ui.controls
{
import com.yardstick.shared.events.ActionPanelEvent;
import flash.events.MouseEvent;
import spark.components.Panel;
import spark.components.supportClasses.ButtonBase;
[Event(name="action", type="com.yardstick.shared.events.ActionPanelEvent")]
package com.yardstick.shared.ui.controls
{
import com.yardstick.shared.events.ActionPanelEvent;
import flash.events.Event;
import flash.events.MouseEvent;
import spark.components.SkinnableContainer;
import spark.components.supportClasses.ButtonBase;
import spark.primitives.supportClasses.TextGraphicElement;
class Episode < ActiveRecord::Base
# accessors
attr_accessor :flex_video
def video_url
video.url
end
def video_url=(url)
#do nothing
public class EpisodeItemViewPresentationModel extends EventDispatcher
{
//-----------------------------------------------
// Statics
//-----------------------------------------------
public static const PUBLISHED:String = "published";
public static const UPLOADING:String = "uploading";
public static const PENDING:String = "pending";
public class EpisodeItemViewPresentationModelTest
{
private var model:EpisodeItemViewPresentationModel;
private var mockDispatcher:MockEventDispatcher;
//-----------------------------------------------
// Setup
//-----------------------------------------------
[Before]
package com.yardstick.admin.ui.presenters
{
import assets.Config;
import com.yardstick.shared.events.AccountEvent;
import com.yardstick.shared.model.vos.Account;
import flash.display.Sprite;
import flash.events.Event;
import flash.events.EventDispatcher;
About your application's environment
Ruby version 1.8.6 (universal-darwin9.0)
RubyGems version 1.3.1
Rack version 1.0
Rails version 2.3.2
Active Record version 2.3.3
Action Pack version 2.3.3
Active Resource version 2.3.3
Action Mailer version 2.3.3
Active Support version 2.3.3
#inside rails initializer:
config.active_record.observers = :user_observer, :encoding_observer
# model /app/models/episode.rb
class Episode < ActiveRecord::Base
def after_create
logger.info("EPISODE CREATED")
end
end
Referer: http://master.woople.local/bin-debug/Woople.swf?
Content-type: application/json
Content-length: 172
{"authenticity_token":"ksE82gB0HFQjlHiy8+1pKx+NSXePQoiKfbAtN3X82MM=","_method":"put","course":{"category_id":0,"approved":false,"id":44,"name":"Course 2","description":""}}