Displaying 3 results from an estimated 3 matches for "file_location".
2006 Apr 07
1
Formatting form tags for children of parrent data?
...to the archive list.
Displaying the extra files was trivial. However, when I went to edit the
edit.rhtml file, I had no idea how to format the text 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 |p...
2006 Jul 07
5
link_to: link is missing id
...>"...", "creation_date"=>Mon Jul 09 15:39:04 GMT-5:00 2001,
"article_type"=>"...", "flashline"=>nil, "publication"=>"...",
"base_doc_id"=>"...", "summary"=>"...", "file_location"=>"C",
"page"=>"...", "display_name"=>"...",
"rev_doc_id"=>"...", "article_id"=>329901.0, "section"=>"...",
"source"=>"...", "to_be_purged"=>...
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