class AlbumsController < ApplicationController
  expose(:albums) { Album.active }
  expose(:album) { Album.find_by_slug!(params[:id]) }
  expose(:images) { album.photos.to_a }

  def index; end

  def show; end
end

class AlbumsController < ApplicationController
  expose(:albums) { Album.active }
  expose(:album) { Album.find_by_slug!(slug) }
  expose(:redirect) { Redirect.find_by_from(slug) }
  expose(:images) { album.photos.to_a }

  def index; end

  def show
    redirect_to redirect.to if redirect
  end

  private

  def slug
    params[:id]
  end
end

Handle redirects in albums controller
Handle redirects in albums controller
