Group specific welcome page
I would like to have a dynamic welcome page, depending on group membership of the current user.
I slightly modified the
app/views/welcome/index.html.erb to show some custom queries and links on the welcome page in a
<div class="splitcontentright">. What I would like to do now is to show an additional
<div class="splitcontentright">, if the user is member of a specific group.
I already found
user.current.group_ids that (I think) can be used to get all group memberships of the current user. However, I'm not familiar with Ruby and would be very greatful to get some help here.