I have a configuration file in YAML format with some paths in my rails applications like this:
config
:path1: /a/b/c
:path2: /a/:id/c
path1 doesn’t helps too much. I need that every time I use config[:path2] to somehow replace the :id with a value I have. It is possible?
Hope this was clear enough.
Thanks!
You can use a bit of ERB.
and