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/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/fabf5ef53b6db8aba8a0a14e60dc4094%40ruby-forum.com. For more options, visit https://groups.google.com/groups/opt_out.
On 25 September 2013 09:41, Arsen Prohorchik <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> 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 -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLvQhYUH%2BJCzG8SAt_3F%2BDyXZ8tGmhW5ZicDFQvf621rzQ%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
> Start by working right through a good tutorial such as > railstutorial.org, which is free to use online. > Also look through the Rails Guides. > > ColinI followed this tuto, but I didn''t find any moderation of microposters in his tutorial.. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/3d0f53b25814440f9cbabed26eda98f2%40ruby-forum.com. For more options, visit https://groups.google.com/groups/opt_out.
On 25 September 2013 10:09, Arsen Prohorchik <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> 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 -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLuPoNkcoFHKfE7xCf54RQL4xgHER2ZdNL1z6WG6GNRkew%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.