search for: archive_id

Displaying 2 results from an estimated 2 matches for "archive_id".

Did you mean: archive_adm
2006 Apr 07
1
Formatting form tags for children of parrent data?
...xt input fields so that they would be automaticly picked-up and placed with the parrent. Here''s what I have: archives table: id program_name file_location etc... archives model: class Archive < ActiveRecord::Base belongs_to :category has_many :extra_file end extra_files table: id archive_id name location extra_files model: class ExtraFile < ActiveRecord::Base belongs_to :archive end list.rhtml Relivent section: <% @programs.each do |program| -%> <tr> <td><%= link_to program.program_name, program.file_location %> <% program.extra_file.each do |file| -%&...
2006 Apr 20
8
Whats the best way to do this?
I have an archive that can have 0 or more extra files associated with it. I would like to be able to edit the associated files info on the same page as the archive info. Listing the extra files info to the edit form is simple enough, but How do I form the text input fields for easy (or automatic) pick-up in the update? Or am I barking up the wrong tree here? -- Posted via