Skip to content

Instantly share code, notes, and snippets.

View acuizon's full-sized avatar

Aaron Kyle Cuizon acuizon

  • Cebu, Philippines
View GitHub Profile
@acuizon
acuizon / athletes_by_sport
Created April 23, 2013 10:05
sample change..
- @data.each do |row|
- if row[:teams].present?
.row
.span12
%h3= row[:sport].name
- row[:teams].each do |team|
- rosters = team.rosters_from_hsg_or_community(@opts[:community])
- upcoming_games = team.upcoming_games(@opts)
- if rosters.present?
- rosters.each do |roster|
def opts_by_city
@city = City.find_by_slug(params[:city_slug])
@for_tax = false
@for_street = false
@for_search = false
@all = []
if params[:geo] =~ /tax/
@geo = params[:geo].split("_").last
@for_tax = true
# activity_stream.rss.builder
xml.instruct! :xml, :version => "1.0"
xml.rss :version => "2.0" do
xml.channel do
xml.title "Activity Feed for #{@home.name}"
xml.description "Activity Feed for #{@home.name}"
xml.link property_activity_stream_url(@home.parcel_id, @home.slug)
target = @activity_stream.target
properties = @activity_stream.properties