Sha256: 476e3c7a0164e9194621c714949580aa809945f76c601741b8331d64f81e0d55
Contents?: true
Size: 263 Bytes
Versions: 3
Compression:
Stored size: 263 Bytes
Contents
require_dependency "jp_address/application_controller" module JpAddress class ZipcodesController < ApplicationController def search @zipcode = Zipcode.find_by(:zip => params[:zip]) || Zipcode.new render text: @zipcode.to_json end end end
Version data entries
3 entries across 3 versions & 1 rubygems