Sha256: b15edd5e99c102ce827ac3c6226af055e8f4f3a1c1c1d612e97a3514b4a44a2b

Contents?: true

Size: 296 Bytes

Versions: 1

Compression:

Stored size: 296 Bytes

Contents

class FrontpageController < ApplicationController
  before_filter :redirect_user_to_home, :only => :index

  def index
    respond_to do |format|
      format.html # index.html.erb
    end
  end
  

  private

  def redirect_user_to_home
    redirect_to(home_path) if user_signed_in?
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
social_stream-0.4.0 app/controllers/frontpage_controller.rb