### Home Classes Methods

### In Files

- app/controllers/search_controller.rb

### Parent

ApplicationController

### Methods

- #autocomplete
- #more_artists
- #show

### Files

- README_FOR_APP

### Class Index

Quicksearch

- LastFM
- LastFM::Album
- LastFM::Artist
- LastFM::Chart
- LastFM::Request
- LastFM::Track
- LastFM::Validator
- DeviseAuth
- DeviseAuth::RegistrationsController
- DeviseAuth::SessionsController
- Users
- Users::OmniauthCallbacksController
- ApplicationController
- ApplicationHelper
- Artist
- ArtistsController
- ChartsController
- HomeController
- Playlist
- PlaylistsTracks
- RedisQueryable
- SearchController
- Track
- TracksController
- User
- UsersController
- UsersHelper
- YoutubeVideoRating

No matching classes.

# SearchController

### Public Instance Methods

autocomplete() click to toggle source

        # File app/controllers/search_controller.rb, line 21
    21:   def autocomplete

    22:     q = params[:q].to_s.lstrip

    23:

    24:     @artists = $sevendigital_client.artist.search q, { :pagesize=>5 }

    25:

    26:     render :partial=>"autocomplete", :locals=>{ :artists=>@artists }

    27:   end

more_artists() click to toggle source

        # File app/controllers/search_controller.rb, line 29
    29:   def more_artists

    30:     @artists = LastFM::Artist.search params[:q].to_s.lstrip, @@limit[:artists], (params[:size].to_i / @@limit[:artists] + 1)

    31:     LastFM::Request.run_queue!

    32:

    33:     render :partial=>"more_artists", :locals=>{:artists=>@artists}

    34:   end

show() click to toggle source

        # File app/controllers/search_controller.rb, line 5
     5:   def show

     6:     @q = params[:id].to_s.lstrip

     7:

     8:     @artists = LastFM::Artist.search @q, @@limit[:artists]

     9:     @tracks = LastFM::Track.search @q, @@limit[:tracks]

    10:     @albums = LastFM::Album.search @q, @@limit[:albums]

    11:

    12:     LastFM::Request.run_queue!

    13:

    14:     render :partial=>"show", :locals=>{

    15:       :artist=>@artist,

    16:       :tracks=>@tracks,

    17:       :albums=>@albums

    18:     }

    19:   end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.