After working with Ruby and RoR, I'm diving into node.js for the first time.
I want to create a user view in total.js with clean routing similar to how it's done in Rails.
In Rails, I would use code like this:
get '@:username' => 'users#show'
When I tried to replicate this in Total.js, I encountered a 404: Not found
error:
exports.install = function() {
F.route('/@{username}', view_user);
}
How can I achieve my desired user view with a URL structure like localhost:8000/@my_name
in total.js?