Rails: Scaffold to automatically do one-to-many relationship
Not sure if I'm reading this right, but it seems like Scaffold will not do a one-to-many relationship in its entirety. For instance, if I create messages with scaffold and then I want comments on those messages (one message -> many comments ), I have to go through and change everything. For instance, I have to change this in the comment 's new view <% form_for(@comment) do |f| %> to this <% form_for([@message, @comment]) do |f| %> and then change the Action to set up the @message var... amongst other things. This cannot currently be done automatically with Scaffold, right? This is true, but,