i wanted to allow this feature to be available to users who are not
logged in.
the form is to basically allow users to put in several drugs of
interest with some other info and get back an analysis of informatino
eneterd. i do not need to save it in my db for future reference. but
perhaps the user wants to see the same analysis again and could just
save the link.

On Jun 4, 4:48 pm, Colin Law <[email protected]> wrote:
> 2009/6/4 tashfeen.ekram <[email protected]>:
>
>
>
> > I want to create a form where a visitor can dynamically add more
> > fields to it. The visitor will input a list of stuff and can be
> > anywere from 1 to over ten. The user will be inputting name of a
> > medication and then dosing. Then, when the user submit the form i want
> > to be able to refer the user to a page with all of the inputs
> > entereted parameterized so that the user can just save the link. so,
> > the referring page can have one item parameterized or multiple. Each
> > item the user adds will contain three attributes like dose and how
> > often they take it.
>
> I would suggest thinking about what data you want in the database
> first and what the relationships are.  Possibly you need a user table,
> a medications table and a user_medications table, with a habtm
> relationship between medications and users.  The user_medications
> table being the join table and also containing the dosage data.
>
> Then the views you require are various slices through the data.
>
> Does that help to get you started?
>
> 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