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
// Create an alert | |
var a = Titanium.UI.createAlertDialog(); | |
a.setTitle('Table View Test') | |
a.setMessage('row ' + eventObject.row + ' index ' + eventObject.index + ' section ' + eventObject.section + ' rowData ' + eventObject.rowData + ' [eventObject.index].id: ' + rIndex.rosterID); | |
a.show(); | |
thisID = $(eventObject.row + " id"); | |
/correct formatting for a nested field in the dataArray | |
Titanium.API.debug('=================== rosterID: ' + dataArray[eventObject.index].rosterID ); |
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
class User < ActiveRecord::Base | |
has_and_belongs_to_many :roles | |
def role_symbols | |
(self.roles || []).map {|r| r.name.to_sym} | |
end | |
end |
NewerOlder