On Sep 29, 2011, at 12:41 AM, comopasta Gr wrote:
> 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.
>
Settingslogic
https://github.com/binarylogic/settingslogic
-philip
> 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 rubyonrails-talk@googlegroups.com.
> To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
>
--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
No comments:
Post a Comment