app/controllers/radars_controller.rb
# Prevent Google from repeatedly trying to index old radars
Prevent Google from repeatedly trying to index old radars
Prevent Google from repeatedly trying to index old radars
def create
    radar = current_user.new_radar(radar_params)
    if radar.save
      redirect_to radar
    else
      render "new", locals: { radar: radar }
    end
  end
def create radar = current_user . new_radar ( radar_params ) if radar . save redirect_to radar else render "new" , locals : { radar : radar } end end
Prevent Google from repeatedly trying to index old radars
Prevent Google from repeatedly trying to index old radars