Concatenate ruby hash's keys -


i have hash. how concatenate keys current_hash.keys result looks this: "key1 key2 key3 key4"?

current_hash.keys returns array, can join array elements using join() in ruby, try out

current_hash.keys.join(" ") 

hope helps!


Comments

Popular posts from this blog

searchKeyword not working in AngularJS filter -

sequelize.js - Sequelize: sort by enum cases -

php - the curl link is not sent -