On 5/8/06, Joe C. email@example.com wrote:
Is “@news” still in scope? When is “@news” out of scope and thus
If I understand you correctly, you have a user going to a “list” page
to see all the news and then deciding to click a link to update a news
item on that list? The @news item is only good from when it’s created
in the controller until the view has been completely rendered. So when
the next action (update) is called, it’s no longer around. Instead
you’ll need to create it again, or you could pass some relevant
information to the update action (if you only want it to find which
news item the user wants to update, you could pass that item’s ID to
the update action).
I hope I’m making any sense here, otherwise I’m sure someone else will
come in and clearify it for you.