Sunday, May 8, 2011

Re: [Rails] Constants and Configurations

On 8 May 2011 17:49, Tiago Veloso <ti.veloso@gmail.com> wrote:
> Hi Colin,
>
> I see how could that go, but what If my configurations are of different types?

I don't understand what you mean.

>
> Is there a gem that provides some helper methods that you could recommend?

I don't know of one. It hardly seems worthwhile for a table with one
record and whatever fields you want. Perhaps I don now understand
your comment above. You are thinking of one row per item. Instead
make it one record with a field for each constant of whatever type is
appropriate.

Colin

--
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.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate