I made an authentication system and I'm uncertain of the best way to go about hiding links on public pages meant for authenticated users (this is also different for people with various privledges but this isn't the problem). I only know two ways to go about this: create a helper file and write a seperate authorization piece that verifies the user to show the URL and add the method to the links in the view page; or create a controller for the links where they're verified there by the system that I have already set-up which would only involve one line of code to cover all of them as opposed to 2-3 in the helper and having to add a method to all the links in the views. This is for a messageboard where there are things like delete topic and edit post shown on public pages. Any suggestions or tips would be appreciated.
on 2006-04-05 00:36