Getting extra information from the url


#1

Hi there.

I have a question;

How do i get the information from the url, if it looks like this:

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

Is this wellformatted ? or do i need to change it ? And if i need to
change it, how do i get the extra variable from the url into a variable
in the applikation.

  • Emil

#2

On Jan 15, 2007, at 20:16 , Emil K. wrote:

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]


Jakob S. - http://mentalized.net


#3

Thank you :slight_smile:

Exactly what i needed.