class StaticController < ApplicationController
  def homepage
    @list_class = ""
    render :layout => false
  end

  def open_source
    @title = "open source"
  end

  def about
    @title = "about us"
  end

  def contact
    @title = "contact us"
  end
end

class StaticController < ApplicationController
  before_filter :require_user, :only => :follow

  def homepage
    @list_class = ""
    render :layout => false
  end

  def open_source
    @title = "open source"
  end

  def about
    @title = "about us"
  end

  def contact
    @title = "contact us"
  end

  def follow
    @title = "follow a user"
  end
end

Add a title variable for the static 'follow' page and make sure logged out users shouldn't be able to access it without logging in.
Add a title variable for the static 'follow' page and make sure logged out users shouldn't be able to access it without logging in.
