It's easy to pass a parameter to a controller, as shown here:
root :to => "pages#show", :id => 3
My question is how can the controller ensure this is set programmatically, ie guard against a user manually setting the parameter? Or is there any other mechanism which would let a matching route pass data across to the controller.