Skip to content

Instantly share code, notes, and snippets.

@rbrancher
Created July 26, 2012 13:54
Show Gist options
  • Save rbrancher/3182157 to your computer and use it in GitHub Desktop.
Save rbrancher/3182157 to your computer and use it in GitHub Desktop.
def luz_e_forma_filters_path(params)
path = "/luz_e_forma"
path << "/" << params[:filters][:use] ? "all_uses" : params[:filters][:use]
path << "/" << params[:filters][:application] ? "all_applications" : params[:filters][:application]
path << "/" << params[:filters][:lamp] ? "all_lamps" : params[:filters][:lamp]
path << "/" << params[:filters][:designer] ? "all_designers" : params[:filters][:designer]
path << "/" << params[:filters][:manufacturer] ? "all_manufacturers" : params[:filters][:manufacturer]
path
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment