We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e87fdd commit 10b8febCopy full SHA for 10b8feb
app/models/list.rb
@@ -27,4 +27,12 @@ def find_by_id(id)
27
28
alias find find_by_id
29
end
30
+
31
+ def to_param
32
+ name
33
+ end
34
35
+ def persisted?
36
+ true
37
38
config/routes.rb
@@ -1,6 +1,6 @@
1
Rails.application.routes.draw do
2
get '/:list_name/:list_seq', to: 'messages#show'
3
- get '/:list_name/', to: 'messages#index'
+ get '/:list_name/', to: 'messages#index', as: :list
4
5
get '/attachments/:encoded_key/*filename' => 'attachments#show', as: :attachment
6
0 commit comments