Moderation in RoR app

35 views
Skip to first unread message

Arsen Prohorchik

unread,
Sep 25, 2013, 4:41:23 AM9/25/13
to rubyonra...@googlegroups.com
Hello all!
I'm new to RoR, so sorry if it's too easy.

I am making an app, where users can create posts. I have admin and user
roles. Now I need to make moderation of posts that user created. How to
make admin to accept or deny the post before it is published? Maybe you
know some tutorials? Thanks!

--
Posted via http://www.ruby-forum.com/.

Colin Law

unread,
Sep 25, 2013, 4:43:46 AM9/25/13
to rubyonra...@googlegroups.com
On 25 September 2013 09:41, Arsen Prohorchik <li...@ruby-forum.com> wrote:
> Hello all!
> I'm new to RoR, so sorry if it's too easy.

Start by working right through a good tutorial such as
railstutorial.org, which is free to use online.
Also look through the Rails Guides.

Colin

Arsen Prohorchik

unread,
Sep 25, 2013, 5:09:38 AM9/25/13
to rubyonra...@googlegroups.com
> Start by working right through a good tutorial such as
> railstutorial.org, which is free to use online.
> Also look through the Rails Guides.
>
> Colin

I followed this tuto, but I didn't find any moderation of microposters
in his tutorial..

Colin Law

unread,
Sep 25, 2013, 6:07:52 AM9/25/13
to rubyonra...@googlegroups.com
On 25 September 2013 10:09, Arsen Prohorchik <li...@ruby-forum.com> wrote:
>> Start by working right through a good tutorial such as
>> railstutorial.org, which is free to use online.
>> Also look through the Rails Guides.
>>
>> Colin
>
> I followed this tuto, but I didn't find any moderation of microposters
> in his tutorial..

OK, first you will need users of different types - admin and normal,
did the tutorial show you how to do that? It is a long time since I
last looked in detail at it. Then you will need to add a field to the
post to remember whether it is waiting moderation, then you will need
to provide pages for the admin to authorise the post, then change the
normal pages so they only show accepted pages. So basically divide
the problem up into pieces and tackle them one at a time.

Colin
Reply all
Reply to author
Forward
0 new messages