Please sign in to comment.
Spec coverage to confirm that a work-around exists for GH-398.
Rails will automatically render a hidden id input for each nested object unless a hidden id field has already been rendered. The hidden input Rails renders is invalid HTML in the context of ol and li tags. The work-around is to render your own f.input :id, :as => :hidden, which renders the correct mark-up. TODO: Still need to try to render our own hidden field in the block WITHOUT requiring the author to implement this work-around.
- Loading branch information...
Showing with 28 additions and 0 deletions.