E
E
eldar_web2015-12-31 15:59:46
Ruby on Rails
eldar_web, 2015-12-31 15:59:46

How to handle %2C character (that's ,) from url in Ruby on Rails?

There is, for example, a parameter: "?query=333%2C999". The letters %2C are the comma character (",").
And in the controller I do this params[:query].split(',')- it does not give out what is needed.
How can the problem be solved?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Eugene Burmakin, 2015-12-31
@Freika

Dude, learn to google in English, otherwise you will fill up the whole toaster with the simplest questions that are googled once or twice. I'll help you: rails how to decode url symbols

E
eldar_web, 2015-12-31
@eldar_web

Everything is fine.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question