I am using ruby 2.1.5 and rails 3.2.13.I need to use an array of values in two place namely in _index.html.haml and helper_file.rb.
array = ['cat','dog','lion','tiger','elephant']
I want to know how to handle this with out assign this array in two files. I am looking for a settings file where i need to save this array and get the value from that settings file to use in both _index.html.haml and helper_file.rb file.
Need help to do this.
Thanks
Aucun commentaire:
Enregistrer un commentaire