The application I am creating in RoR has a model (Practicetest) and its controller has the standard CRUD actions then an Sat & Act action. The Sat & Act actions are essentially the index of practicetests but if the test_format value is set to "sattest" then the test is displayed on the practicetest/sat view and if the test_format value is set to "acttest" then the test is displayed under practicetest/act. On both the sat & act pages there is a link to create a new practicetest, but I am trying to find a way to set it up so that the sat page assigns the object being created with the value "sattest" for its test_format (and the same for act). Any ideas on how I can go about assigning a value depending on which action the create came from?
Thanks!