I'm scaffolding with rails, and the following code is being generated
format.json { render json: @leg, status: :created, location: @leg }
But RubyMine is complaining unless I switch it to
format.json { render :json => @leg, :status => :created, :location => @leg }
Can anyone elaborate?