I’m going through the Shovell tutorial in Simply Rails 2 and have a question. By page 166 of the book the StoriesController class has two methods with instantiations of Story.new objects. The two methods are the ‘new’ and ‘create’ methods. Both methods instantiate the Story.new object and then assign it to the @story instance variable. I think I am looking at this correctly. Why is that? Are these both local variables to their respective methods or are they the same? I’m finally gaining some good traction as to the relationship between model-view-controller, all the files associated and the resource routing but this is really perplexing me at this point. Can someone please help?
Thanks a lot,