I am spanking new to programming but managed to read a ruby book, did a
few onlamp tutorials, read and followed along with the depot project on
the Agile WebDfR, read and followed along the Oreily up and running
book.
I am now hacking along trying to program a full featured web/app site.
Well i dont expect it to be easy but each step is a real struggle as
even poring over the forums, squinting at the api, looking for examples
in the books, really is still very hard. There are just too few
examples on what options are available and how to use them. Options?
A basic form with two lists managing a habt relationship seems pretty
basic (although I would have laughed at the concept 6 months ago when i
didn’t know what iterating over an array was.)
From hacking around, not really understanding how the myriad of helpers
interact, I’ve got the following working. I feel like I’m using
redundant parts and hacking something a bit.
here’s part of the html (its on a page with a few separate forms which
build the “state” necessary to attack the relationship.
<%= collection_select(:milk, :moos,
@team_campers, :id, :full_name,
{}, {:html => { :size => 20 }} )%> <%= submit_tag "Remove Camper", :name => 'remove_from' %> |