Promoters are People, too

2 views
Skip to first unread message

Scott Willson

unread,
Jun 22, 2009, 4:43:41 PM6/22/09
to racing-...@googlegroups.com
This is for developers, so if you don't dig Ruby code, you can skip
this email. I'll follow up with a less technical email once we've got
the code nailed down.

I've pushed a big commit to master. It merges Racers, Promoters, and
Users into a single People model and table.

Why? There's some overlap and duplication between the three now—each
has a name, email, and could have a login and a password—but it's not
a tragic problem. However, I'll soon be adding accounts and logins for
officials, promoter, and members. Creating new separate models for
each doesn't seem smart.

The name Person/People made the most sense to me. A Person can appear
in results, belong to a team, promote events, have a login and
password. People also have Roles. Right now, there's just
Administrator and Member, but I plan to add Official and Promoter roles.

The model changes also change many URLs. I've added permanent
redirects for all the public ones, and one for /admin/racers.

The code is all in the Git repositories and all test pass. Please take
a look and let me know what you think!

Thanks,
Scott

Ryan Rickerts

unread,
Jun 22, 2009, 5:32:31 PM6/22/09
to racing-...@googlegroups.com
Scott,

That sounds awesome on first glance, and a nice step towards a feature
I'd like to work on - an integrated message board for Members only.

Most systems I have looked at for integration would require a profile,
such as a Person with a Role of Member would likely have.

It would also be great if people (Racers, Teams) could manage some of
their own data - takes a lot of the burden off our data administrators.
This, of course, would require them to log in, but only have admin
access to their own profile, or team members

Not sure if you were headed this way, but it's the first thing that
popped in my mind as soon becoming possible with Racing on Rails.

Thanks!
RyanR>
WSBA Webmaster

Scott Willson

unread,
Jun 22, 2009, 5:38:50 PM6/22/09
to racing-...@googlegroups.com
Thanks Ryan,

I try not to plan too far out in the future, but member and team self-
management are in the back of my mind. I think you've got a good grasp
of how it would be implemented.

Scott
Reply all
Reply to author
Forward
0 new messages