Class: ActorsController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- ActorsController
- Defined in:
- app/controllers/actors_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'app/controllers/actors_controller.rb', line 4 def index @actors = Actor. name_search(params[:q]). subject_type(params[:type]) if params[:stranger].present? @actors = @actors.not_contacted_from(sender) end @actors = @actors.page(params[:page]) render json: @actors, helper: self end |