Answer the question
In order to leave comments, you need to log in
How can I add letters to a character in Rails???
Suppose there is a symbol:
params[:symbol]
But in certain circumstances, I want to add additional symbols to it, so that, for example, params[:symbol1]
And for this params[:symbol + 1] as I know does not work.
Answer the question
In order to leave comments, you need to log in
This is not the best option. After all, characters (unlike strings) are created once and stored all the time in RAM. It is better to pass an array from the client and access it through params[:symbol][1]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question