Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Jan 18th, 2018
91
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.20 KB
| None
|
0
0
raw
download
clone
embed
print
report
resources :customers do
collection do
get :search
end
def self.search(search)
where("mobile LIKE ?", "%#{search}%")
end
def search
@customers = Customer.search(params[:mobile])
Add Comment
Please,
Sign In
to add comment
Public Pastes
🤑 G2A.com Free Gift Card Guide Apr 2024 FIX 🤑
GetText | 44 sec ago | 0.39 KB
Untitled
Python | 5 min ago | 3.04 KB
data906
JSON | 5 min ago | 0.64 KB
🤑 G2A.com Free Gift Card Guide Apr 2024 FIX 💰
GetText | 8 min ago | 0.38 KB
input_reader.cpp
C++ | 1 hour ago | 6.23 KB
Untitled
Python | 1 hour ago | 10.75 KB
CREATE TABLE R2
MySQL | 1 hour ago | 0.26 KB
CREATE TABLE R3
MySQL | 1 hour ago | 0.42 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!