# Rails: User-role based content

**URL:** <https://www.ruby-forum.com/t/rails-user-role-based-content/75855>\
**Category:** Ruby\
**Created:** [March 2, 2006, 8:03pm UTC](https://www.ruby-forum.com/t/rails-user-role-based-content/75855 "2006-03-02T20:03:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![preben](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/b19c9b/32.png) [@preben](https://www.ruby-forum.com/u/preben)\
**Post date:** [March 2, 2006, 8:03pm UTC](https://www.ruby-forum.com/t/rails-user-role-based-content/75855/1 "2006-03-02T20:03:57Z")

</div>

Hi everyone.

Let’s fx. say, that the content based on the front page (or any other  
page) of the homepage is dependent on the roles that the user have.

How would you model this into a rails application?

I’m thinking of using the LoginGeneratorACLSystem for this application  
and would like to have the contents of each ‘unique’ page be different  
based on the user.

Thanks  
Preben

---

<div class="post-metadata">

**Author:** ![preben](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/b19c9b/32.png) [@preben](https://www.ruby-forum.com/u/preben)\
**Post date:** [March 2, 2006, 8:15pm UTC](https://www.ruby-forum.com/t/rails-user-role-based-content/75855/2 "2006-03-02T20:15:37Z")

</div>

Preben wrote:

> Hi everyone.
> 
> Let’s fx. say, that the content based on the front page (or any other  
> page) of the homepage is dependent on the roles that the user have.
> 
> How would you model this into a rails application?
> 
> I’m thinking of using the LoginGeneratorACLSystem for this application  
> and would like to have the contents of each ‘unique’ page be different  
> based on the user.

You will likely get a better, faster answer for Rails questions on the  
Rails mailing list:

[http://lists.rubyonrails.org/mailman/listinfo](http://lists.rubyonrails.org/mailman/listinfo)

–  
James B.

“Programs must be written for people to read, and only incidentally  
for machines to execute.”

- H. Abelson and G. Sussman  
(in "The Structure and Interpretation of Computer Programs)
