Advertisement
Guest User

Untitled

a guest
Apr 26th, 2017
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. I have a variable in the partial:
  2.  
  3. - one_of_four_key = (@page_name == 'app_publishers') ? "app_publishers" : "common"
  4.  
  5. How could I use like a key it in the following row?
  6.  
  7. - @packages_text[one_of_four_key].each_with_index do | (option, preview), i |
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement