I think you could save a few lines of code by just calling @level.maze in the view when you want it. Passing stuff around in locals is a bit annoying