Skip to content

Instantly share code, notes, and snippets.

@grayt0r
grayt0r / gist:2351269
Created April 10, 2012 13:14
Attempting to build a list of all map step connections within a map
def show
@trail = ProcessTrail.find(params[:id])
@map = @trail.map
result = []
@map.map_steps.each {|s| result = result + s.next_map_steps}
@links = result.to_json
end