Given the resource Events, I want /events/1
to navigate to /events/1/column_name
in the URL bar when entered. Column name is a t.string :name
in the Events DB migration. This column_name will need parameterize
to be called on it before redirecting. Any ideas on how to get this done?
Example:
If you navigate to https://stackoverflow.com/users/4180797 the URL will automatically become https://stackoverflow.com/users/4180797/james-lowrey after loading. Holds true for 4180797/any-other-txt-here
. So "James Lowrey" would be the name
column, and it would become james-lowrey
after calling parameterize
on it.
4180797/any-other-txt-here
. So "James Lowrey" would be thename
column, and it would becomejames-lowrey
after callingparameterize
on it.