Skip to content

Instantly share code, notes, and snippets.

@jtperreault
Forked from ben-tvpp/code.rb
Last active March 18, 2019 23:09
Show Gist options
  • Save jtperreault/7ce89a1d57fe374496529fd5eb3ffb43 to your computer and use it in GitHub Desktop.
Save jtperreault/7ce89a1d57fe374496529fd5eb3ffb43 to your computer and use it in GitHub Desktop.
class WalkSectionController < ApplicationController
def go_for
@walk_section = WalkSection.find(params[:id])
@walk = @walk_section.walk
# full_url = request.base_url + request.path
# i = full_url.rindex( '/' )
@base_url = request.base_url
@walk_section_buttons = @walk_section.walk_section_buttons
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment