Adding a diary watchlist

Andy Allan gravitystorm at gmail.com
Sun Sep 11 23:44:15 BST 2011


On Sun, Sep 11, 2011 at 9:08 PM, Josh Doe <josh at joshdoe.com> wrote:

> I'm sure I'm missing other bits, but I think before I go any further I
> need to learn the basics of Ruby and Rails, as well as get feedback
> from others.

My feedback - go for it! Ask any questions you might have. Branch the
codebase, try some stuff, show everyone how you get on.

As a helpful hint, you'll want to define a model to represent your
watchlist objects, and don't worry too much (at first) about the exact
specifications of the table since Rails takes care of lots of things
for you. As a trivial example, "autoincrement primary key" is a
massive MySQL-ism, but simply having an id attribute in your
model/migration takes care of all this kind of stuff.

Also, our code is sprinkled with non-standard stuff, some of which is
legacy, some of which has more complex reasoning. If you're new to
ruby/rails, I'd read the bits of the code around the diary / friends
stuff, and don't pick up too much stuff from the nodes/ways/relations
side of the codebase until you have the basics sorted.

Cheers,
Andy



More information about the rails-dev mailing list