openflighthpc / flight-control

0 stars 0 forks source link

Use routing project param #22

Open timalces opened 2 years ago

timalces commented 2 years ago

Currently we pass the project name as a regular parameter, e.g /costs-breakdown/?project=testing. It would be better practice & look cleaner to make it a route parameter, e.g. /testing/costs-breakdown and /testing/events/new

By default rails expects the routing param to be the record database id, so this will require some handling to use project name instead. E.g. using https://guides.rubyonrails.org/v6.0/routing.html#overriding-named-route-parameters