Skip to content

Instantly share code, notes, and snippets.

View ordinz's full-sized avatar
🌴
deploying things

Ordin ordinz

🌴
deploying things
View GitHub Profile
// this sets the background color of the master UIView (when there are no windows/tab groups on it)
Titanium.UI.setBackgroundColor('#000');
// create tab group
var tabGroup = Titanium.UI.createTabGroup();
//
// create base UI tab and root window
//
class ReportTypesController < ApplicationController
make_resourceful{
actions(:all)
before(:create){ raise "Yes, this is the ReportTypesController" }
response_for(:create){ redirect_to(object_url(current_object)) }
}
...more