search for: dinner_menus

Displaying 1 result from an estimated 1 matches for "dinner_menus".

Did you mean: dinner_menu
2012 Aug 25
0
accepts_nested_attributes_for and fields_for not working!
...reate one menu object that has fields_for :brunch, :lunch, and :dinner. The menu object has_many brunches, lunches, and dinners, but each time I "edit", only one brunch, one lunch, and one dinner object are added. I''m using carrierwave to upload brunch_menus, lunch_menus, and dinner_menus (attributes of brunches, lunches, and dinners respectively) as pdfs to amazon s3 and viewing them as iframes. When I try to save a menu object, the menu object gets created and saved, but its brunch, lunch and dinner don''t get created when I edit it. When i run Brunch.all i get [] Tha...