[Rails] Design question - integrating light-weight authorization

David Heinemeier Hansson david at loudthinking.com
Wed Nov 24 09:47:11 GMT 2004


> I'm struggling with the right way to represent this.  Should I be
> using a single view for these pages with conditional hiding of certain
> portions of the rendered page?  Or should I be using different views
> for each class of user, with appropriate render calls from the
> controller?

Are there more differences than similarities? That's usually the 
question I ask when faced with this problem. Basecamp uses perhaps 80% 
conditional hiding and 20% different pages, so I think the majority of 
the time you can get away with just doing conditionals.
--
David Heinemeier Hansson,
http://www.basecamphq.com/   -- Web-based Project Management
http://www.rubyonrails.org/  -- Web-application framework for Ruby
http://macromates.com/       -- TextMate: Code and markup editor (OS X)
http://www.loudthinking.com/ -- Broadcasting Brain



More information about the Rails mailing list