Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if @reservations = CrsReservation.reservation_delivery(params)
- out = {:json=>@reservations}
- else
- out = {:text=>'You are not permitted to view this location.'}
- end
- format.json {
- render out
- }
- format.xml {
- render out
- }
Add Comment
Please, Sign In to add comment