On 26 December 2014 at 12:50, Prabu Rangki <praburangki@gmail.com> wrote:
> Hi all, need some advise.
>
> I'm still new on RoR, I'm about to create a Web app that monitors energy consumption such as, electricity, water and waste.
>
> User can input the datas manually and later on they can view the usages in a day, week, year and by selecting particular dates.
>
> Where should I start and what part should I start. I'm still stuck on designing the database. But I already play around with chartkick a little bit.
I usually start by working out what are the key data objects that need
to be represented in the database, and the associations between them
(has_many, belongs_to etc). Possibly User, MeterReading for example,
then build the system up from there. Make sure you write your tests
as you go so that when you refactor things (as you surely will) the
tests allow confidence that the refactoring is ok.
Colin
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLvYbfkFeLxwVytVnadu92-4bnsXWGBAmiV8sgUzqNQAKA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment