How to hide some field in haml file without being parameters changed to different format

74 Views Asked by At

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"]
0

There are 0 best solutions below