Skip to content

Instantly share code, notes, and snippets.

@advorak
Created September 12, 2018 00:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save advorak/e2caf673189ffd3d93cf3b06ab23b19c to your computer and use it in GitHub Desktop.
Save advorak/e2caf673189ffd3d93cf3b06ab23b19c to your computer and use it in GitHub Desktop.
resource 'definitions'
%w(flashcards multichoice type).each do |name|
get name, to: "definitions##{name}"
### I want to define a 'get' resource within definitions from within here...
end
#resource 'definitions' do
# get 'flashcards'
#end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment