Getting extra information from the url

something.com/stuff/show/1?extra=2

Is this wellformatted ?

Sure.

how do i get the extra variable from the url into a variable in the applikation.

extra = params[:extra]