Having trouble defining multiple routes together in rails 6.
In rails 3 we defined multiple routes like the example below.
member_routes = {
:validate_update_action => :put,
:rebuild_update_form => :put,
:create_change_request => :post,
:validate_create_change_request_action => :post,
:destroy => :get,
:apply_to_beta => :put,
:update_history => :get
}
For rails 6 I think the body should be something similar to what i have below, but I'm not sure what the exact syntax is.
member_routes = {
put 'validate_update_action';
put 'rebuild_update_form';
post 'create_change_request';
post 'validate_create_change_request_action';
get 'destroy';
put 'apply_to_beta';
get 'update_history';
}
0 Answer(s)