Hi,
I have been stuck on this problem for 2 hours and still have no idea how
to do it. Basically I have a relationship between Workout and Exercise
Exercise has many Work out
anyway in my code at Workout.view the edit.html that was generated
through scaffold I wrote this
<% form_for(@workout) do |f| %>
Exercise
<%= select_tag "exercise",
options_from_collection_for_select(Exercise.find_all, "id", "name",
@workout.exercise_id) %>
For some reason it does not update when I click it. I don’t have any
errors but it just doesn’t update. Does anyone know why?
Any help would be apperciated. Thanks
Kane