Skip to content

Commit 1cdac5d

Browse files
committed
Fix link
1 parent 1d9e860 commit 1cdac5d

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

app/helpers/application_helper.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ def cannonical_url
44
end
55

66
def report_history(obj, text: 'Report history')
7-
url = :"#{obj.class.to_s.downcase}_reports_url"
87
id = modal(
98
'Report history', size: :xl,
109
async: polymorphic_url([:reports, obj], content: true)

config/routes.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@
211211
end
212212

213213
# Reports
214-
get 'reports/genomes/:id', to: 'reports#genome'
214+
get 'reports/genomes/:id', to: 'reports#genome', as: :reports_genome
215215

216216
# General Application
217217
get 'link' => 'application#short_link'

0 commit comments

Comments
 (0)