%= form_for [@forum, @topic] do |f| %> <% if @topic.errors.any? %> <% flash.now[:error] = @topic.errors.full_messages.join(', and ') %> <% end %>