Mohammed, The easiest and hassle free approach is using active admin gem.
On Wed, Sep 24, 2014 at 4:01 AM, Vineeth B S <[email protected]> wrote: > Hey, > > You have to take a look at cancancan > <https://github.com/CanCanCommunity/cancancan> or pundit > <https://github.com/elabs/pundit>. They both seem like a good > authorization feature providing gems. > You can set the ability/roles for each model(or type) that you have. > > On Wed, Sep 24, 2014 at 3:47 AM, Mohammed Rashid <[email protected]> > wrote: > >> In my rails app I have set up user authentication so that "users" can >> view the "home, calendar and login/logout" links. The "admin" user >> however is able to view an extra "settings" page on the links when he >> logs in. Is there a way to make a members migration like : >> "rails generate migration Members name:string mobile:string >> email:string" which my users will be able to create and edit from the >> home page but then the admin will be able to update/delete/create that >> info from the settings page which only he can view? >> >> -- >> 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 [email protected]. >> To post to this group, send email to [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/rubyonrails-talk/41f86b6bffe82665a4d19e8884ca36e4%40ruby-forum.com >> . >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > Regards > Vineeth B S > > -- > 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 [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/rubyonrails-talk/CAAk7vinnr5C_SLoYGCRa3WXvd3tUrrb%3DXFHKpj_AegJh-ue5Jg%40mail.gmail.com > <https://groups.google.com/d/msgid/rubyonrails-talk/CAAk7vinnr5C_SLoYGCRa3WXvd3tUrrb%3DXFHKpj_AegJh-ue5Jg%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- 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 [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAFKVRj_h128c9yg5zQFVdE-2UdKT2%3DtDX77D_3dW01f4W8O29w%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

