Skip to content

Instantly share code, notes, and snippets.

@chintanparikh
Created June 10, 2012 06:40
Show Gist options
  • Save chintanparikh/2904206 to your computer and use it in GitHub Desktop.
Save chintanparikh/2904206 to your computer and use it in GitHub Desktop.
when /^the section page for (.*)$/i
section = Section.find(:all, conditions: {name: $1})
[section.category, section]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment