On 8 July 2015 at 03:47, Padmahas Bn <[email protected]> wrote: >> Not sure what your helper method is doing > > > Hello Colin > > I've pasted my helper method in my recent post. Only methods starting from > admin is added by me. Other methods like current_user or any user related > methods are from railstutorials.org.
Why do you not use if current_user.roleid == 1 to test if the logged in user is admin or not? 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 [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/CAL%3D0gLsS56poFuGBLWukdBpxuDhar59%3D5R8%3DA69QVNCs3bHQjA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

