Skip to content

Instantly share code, notes, and snippets.

@grayt0r
Created April 10, 2012 13:14
Show Gist options
  • Save grayt0r/2351269 to your computer and use it in GitHub Desktop.
Save grayt0r/2351269 to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment