### Home Classes Methods

### In Files

- app/controllers/artists_controller.rb

### Parent

ApplicationController

### Methods

- #album_info
- #index
- #more_albums
- #more_tracks
- #prepare
- #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.

# ArtistsController

### Public Instance Methods

album_info() click to toggle source

        # File app/controllers/artists_controller.rb, line 46
    46:   def album_info

    47:     @album = LastFM::Album.getInfo CGI.unescape(params[:album]), CGI.unescape(params[:artist])

    48:     LastFM::Request.run_queue!

    49:

    50:     render :partial=>"album_info", :locals=>{:album=>@album}

    51:   end

index() click to toggle source

        # File app/controllers/artists_controller.rb, line 25
    25:   def index

    26:     redirect_to :root

    27:   end

more_albums() click to toggle source

        # File app/controllers/artists_controller.rb, line 38
    38:   def more_albums

    39:     prepare params

    40:     @albums = LastFM::Artist.getTopAlbums params[:q], @@limit[:albums], (params[:size] / @@limit[:albums] + 1)

    41:     LastFM::Request.run_queue!

    42:

    43:     render :partial=>"more_albums", :locals=>{:albums=>@albums}

    44:   end

more_tracks() click to toggle source

        # File app/controllers/artists_controller.rb, line 30
    30:   def more_tracks

    31:     prepare params

    32:     @tracks = LastFM::Artist.getTopTracks params[:q], @@limit[:tracks], (params[:size] / @@limit[:tracks] + 1)

    33:     LastFM::Request.run_queue!

    34:

    35:     render :partial=>"more_tracks", :locals=>{:tracks=>@tracks}

    36:   end

prepare(params) click to toggle source

        # File app/controllers/artists_controller.rb, line 53
    53:   def prepare params

    54:     params[:q] = CGI.unescape params[:q]

    55:     params[:size] = params[:size].to_i

    56:   end

show() click to toggle source

        # File app/controllers/artists_controller.rb, line 7
     7:   def show

     8:     artist = CGI.unescape params[:artist]

     9:

    10:     @artist = LastFM::Artist.getInfo artist

    11:     @tracks = LastFM::Artist.getTopTracks artist, @@limit[:tracks]

    12:     @albums = LastFM::Artist.getTopAlbums artist, @@limit[:albums]

    13:     @related= LastFM::Artist.getSimilar artist, @@limit[:similar]

    14:

    15:     LastFM::Request.run_queue!

    16:

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

    18:       :artist=>@artist,

    19:       :tracks=>@tracks,

    20:       :albums=>@albums,

    21:       :related=>@related

    22:     }

    23:   end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.