Hi,
I want to store 6 palettes with color information.
This info should be accessed from a couple of places in my app. From one
controller and from one module I have.
I'm not sure what would be the best way to do it.
In some hashes?
red_palette = { :background => "abcdef", :header => "fedefg" }
blue_paletter = { :background => "12ed34", :header => "abdefg" }
...
In yml?
red_palette:
background: abcdef
header: fedefg
I guess I could make a small module and require it, but then I need to
require it two times. I'm starting to think about memory even though for
this it would be very cheap anyway.
Any advices? I'm on Rails 3.0.5
Thanks.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.