harvard-lil / shelfio

Build and share shelves of books, movies, albums, and most anything on the web
shelf.io
10 stars 2 forks source link

the add shelf button on the item page is broken #92

Closed phillipsm closed 12 years ago

phillipsm commented 12 years ago

After the shelf is added (on the item page, of course), the item details filled in, and the form is submitted, an error message is displayed:

"Select a valid choice. That choice is not one of the available choices."

(this can be solved by adding "create a new shelf" logic to the add item view)

phillipsm commented 12 years ago

Annie's comment on how the front end is wired:


I pushed my code up. Shlvme throws a validation error if you choose to add the item to the newly created shelf. I’m hoping you can fix that. A new shelf creation fills in three hidden inputs as well as sending a shelf option of ‘new’ instead of the shelf key.