How to render edit view and post flash message in rails3
By default you have to use a separate statement, e.g. format.html { flash[:notice] = ‘message’ render :edit } This ticket has a patch to let you use render ‘edit’, :notice => ‘message’. It didn’t get into Rails but there is a gem, flash_render, that adds it.