Last active
August 29, 2015 14:10
-
-
Save jeremiaheb/6a8320937b983303320e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sample_path(Sample.find_by_field_id("55551J")) | |
def send_to_path(missing_field_id) | |
if Rails.application.routes.recognize_path(sample_path(@dashSamples.find_by_field_id(missing_field_id))) | |
sample_path(@dashSamples.find_by_field_id(missing_field_id)) | |
else | |
benthic_cover_path(@dashBenthicCovers.find_by_field_id(missing_field_id)) | |
end | |
end | |
tdouce
commented
Nov 21, 2014
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment