Thank you all very much. I'm afraid the problem was me, being a moron. 
There's nothing wrong with the code. There was a second forgotten 'render' 
in view.html.erb causing the problem. Sorry. Thank you once again.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/e808bd5a-fe79-4acd-828d-694e30e875c1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to