V
V
Vayladion Gognazdiak2014-08-19 20:03:07
Ruby on Rails
Vayladion Gognazdiak, 2014-08-19 20:03:07

How to use the "-" character in variable names in a get request?

Good day.
The following question arose, how to use variables containing the "-" character in a get request in RoR?
For example: test.com?my-test-var=123
Thanks in advance,

Answer the question

In order to leave comments, you need to log in

2 answer(s)
W
WebSpider, 2014-08-20
@etspring

Maybe so? params['my-test-var']

A
Alexander Taratin, 2014-08-19
@Taraflex

www.escapecodes.info

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question