E
E
eldar_web2015-05-14 16:14:58
Ruby on Rails
eldar_web, 2015-05-14 16:14:58

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

1 answer(s)
A
Alexander Wolf, 2015-05-14
@eldar_web

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 question

Ask a Question

731 491 924 answers to any question