Skip to content
alno edited this page Sep 13, 2010 · 2 revisions

In order to integrate wiki into your user system you should provide method current_user, accessible from controller and helpers.

After it wiki will remember all users which created, edited or removed pages.

You may want to redefine helper method wiki_user (to render link to user profile). For example:

module WikiPagesHelper
include Irwi::Helpers::WikiPagesHelper

def wiki_user( user )
user ? link_to( user.login, user_path( user ) ) : “Guest”
end

end

Clone this wiki locally