I need some guidance as to how to get all of the pieces working for
managing a set of children records.
In my case, the parent model is Users. The child model is Referrer
codes. One user can create many referrer codes and hand them out. If
someone signs up to the site with one of their referrer codes, they get
credit for that new user. So, I need a controller with a set of actions
where they can maintain their referral codes.
What is needed is a fairly simple CRUD, just limited to that user:
I need to list just the records for the user.
I need the user to be able to add/change/delete their own codes.
Anyone have a link to a simple tutorial to show how to manage the
children records? I’d like it to be plain old html, no AJAX stuff yet,
as I’d like to get a full understanding of basic rails, and you know,
walk before I run.