Toggle navigation
Home
Latest pastes
FAQ
Random
BitBin is shutting down!
Register
Login
Untitled
SUBMITTED BY:
Guest
DATE:
Dec. 17, 2013, 4:31 a.m.
FORMAT:
Text only
SIZE:
474 Bytes
Raw
Download
Tweet
HITS:
3054
Go to comments
Report
match '/clients/prospects' => 'clients#prospects'
get '/clients/prospects' => 'clients#prospects' # or match for older Rails versions
resources :clients
class ClientsController < ApplicationController
def index
@clients = Client.where(prospect: false)
end
def prospects
@prospects = Client.where(prospect: true)
end
end
resources :clients do
collection do
get :prospects
end
end
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus