profile_controller.rb
347 Bytes
class ProfileController < ApplicationController
needs_profile
helper TagsHelper
def index
@tags = profile.tags
end
def tag
@tag = params[:id]
@tagged = profile.find_tagged_with(@tag)
end
def communities
@communities = profile.communities
end
def enterprises
@enterprises = profile.enterprises
end
end