I was looking more at how the tables were set up.  I have a review table
that hold the main form data; but the 5 pieces that repeat, I could make a
table for each one but I was thinking there might be a more efficent  way to
do it and also make it more flexible so down the road if more sections get
added I would not have to go add another table for that data.  I put the
header info(job role/requirements) into the DB so I could change it through
the form instead of having to go into the code to modify it.  Right now
there are 5 of those sections in the form so I just do a FIND on them and
loop through how many times they are there and display a partial X times and
use the data in the db for the header info to make it relatively dynamic.

On Sun, Sep 6, 2009 at 4:05 AM, Colin Law <[email protected]> wrote:

>
> 2009/9/5 Me <[email protected]>:
> >
> > I am looking to develop a personnel evaluation web form.
> >
> > This stuff below is repeated 5 times with different job
> > responsibilities and outcomes ina kind table format.  What is the most
> > efficient way to model this?  Make a generic table and create a NEW
> > for each one in the controller save action?
> >
> > --------------------------------------------------------------------
> > Key Job Responsibility #1       job1
> > Desired Outcome(s) outcome 1
> >
> > Employee Assessment
> > Self Assessment Rating:
> > Self Assessment Comments:
> >
> >
> > Supervisor Assessment
> > Supervisor Rating:
> > Supervisor Comments:
> >
>
> Don't worry too much about forms and so on yet, think about the
> fundamental objects in your requirement (users and assessments maybe).
> Then think about the relationships, possibly:
> user has_many assessments
> assessment belongs_to user
> Then work out what data and rules go in each model, and finally how to
> display and enter the data.
>
> The above is probably not what you want, but those are the sort of
> things you have to think about.
>
> 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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to