app/controllers/domains_controller.rb in rmails-0.2.2 vs app/controllers/domains_controller.rb in rmails-0.2.3

- old
+ new

@@ -19,10 +19,10 @@ end def create # JSON only @domain = current_admin_user.build_domain(params[:virtual_domain]) if @domain.save - render :json => {:id => @domain.id} + render :json => {:domain => @domain} else render :json => {:errors => @domain.errors} end end