I learned about Rails by working through Michael Hartl's tutorial. Generating scaffolding is not something that I do every day or even every week, so I rely on my notes.
I recently shifted to Rails 4.0 and constructed a scaffold per Hartl's tutorial. I added the pages to my so I could use the generated MVC. I discovered that while I could create objects, the contents/attributes were blank.
I traced it back and discovered that my attributes were not added to the model as "attr_accessible". Added those and the MVC now works.
No comments:
Post a Comment