class FixxpertsController

Public Instance Methods

index() click to toggle source

To display fixxperts

# File app/controllers/fixxperts_controller.rb, line 5
def index
  add_breadcrumb "Dashboard", :dashboard_path  if logged_in?
  add_breadcrumb "Search Results", :fixxperts_path
  @fixxperts = Fixxpert.search(params).page(params[:page]).per(params[:per_page]).records
  @fixxpert_with_max_rate = Fixxpert.highest_rate.first
  @fixxpert_with_max_rating = Fixxpert.highest_reviewed.first
  respond_to do |format|
    format.html {render :layout => 'application' }
    format.js {render :layout => 'application' }
  end
end