Advertisement
Omegad

Untitled

Dec 14th, 2018
349
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.11 KB | None | 0 0
  1. @courses = if params[:term]
  2. Course.where('name LIKE ?', "%#{params[:term]}%")
  3. else
  4. Course.all
  5. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement