i have one field in my haml file named #columns when i am trying to hide from the view, the parameters of the columns changing into different format.
I have used hidden to hide the columns , but the parmaters of columns are reformatting.
= f.input :columns, :as => :hidden
Is there way to get columns without getting format change
Expected:-
columns:
- day
- Hello_name
Actual output:-
columns: '["day", "Hello_name"]