I'm trying to figure out this strange routing issue I want to do, but I'm not quite sure how to go about it.
What I have are users that own articles, which belong to the users.
I have tried this before, but I wasn't able to get the controller to fill both params in the URL. The Id for the article in the to_param method is just a parameterized string from the title of the article. But I have removed that to try and get this working for now.
scope ':username' do get ':id', to: 'articles#show', as: 'article' end
So, in the end I would want the URL structure for an article to be like this:
example.com/username/article-title-param or example.com/username/mm/dd/yy/article-title-param
I hope someone has an idea, thanks!