Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class ServidorController < ApplicationController
- serv = Servidor.where("carro" ,params[:carro])
- motoq = Motoqueiro.last
- def index
- if serv.is_well_parked == false
- motoq.zuar
- motoq.save
- serv.save
- else
- motoq.respeita
- motoq.save
- serv.save
- end
- end
- end
Add Comment
Please, Sign In to add comment