Re: [ilugd] Rails Application Help

2012-11-01 Thread studio
] On Behalf Of Harisankar P S Sent: Friday, October 26, 2012 7:21 PM To: Raakesh kumar Cc: Ilugd@lists.linux-delhi.org Subject: Re: [ilugd] Rails Application Help On Fri, Oct 26, 2012 at 7:13 PM, Raakesh kumar kumar3...@gmail.com wrote: No in rolify and CanCan, basically i check

Re: [ilugd] Rails Application Help

2012-11-01 Thread Raakesh kumar
: [ilugd] Rails Application Help On Fri, Oct 26, 2012 at 7:13 PM, Raakesh kumar kumar3...@gmail.com wrote: No in rolify and CanCan, basically i check for this by using user.has_role? :superadmin.. Then just change the if condition accordingly, if user.has_role? :super_admin and place

Re: [ilugd] Rails Application Help

2012-11-01 Thread Balwinder S Dheeman
On 11/01/2012 04:47 PM, studio wrote: I need the linux expert for my linux proxy server configure. Please call me on my mobile= 9654155625 The is no such thing as a _Linux Proxy Server_. Please mention which proxy server do you want to configure? e.g. an Http/ftp proxy server like squid and,

Re: [ilugd] Rails Application Help

2012-10-26 Thread Harisankar P S
On Fri, Oct 26, 2012 at 5:54 PM, Raakesh kumar kumar3...@gmail.com wrote: Hello, I have a Rails App. I had to add an admin section into that and for this i am using Rails Admin. My problem is that i want that when a user logs in it gets redirected to normal user's root controller but i want

Re: [ilugd] Rails Application Help

2012-10-26 Thread Raakesh kumar
On Fri, Oct 26, 2012 at 6:15 PM, Harisankar P S mai...@hsps.in wrote: On Fri, Oct 26, 2012 at 5:54 PM, Raakesh kumar kumar3...@gmail.comwrote: Hello, I have a Rails App. I had to add an admin section into that and for this i am using Rails Admin. My problem is that i want that when a user

Re: [ilugd] Rails Application Help

2012-10-26 Thread Harisankar P S
How do you specify in your application if he is admin or not. I do not use cancan so not sure how if some function is available in cancan. But how I would suggest is to use *before_filer* and check if admin or not. Find a small code snipet https://gist.github.com/3958710 *assuming that

Re: [ilugd] Rails Application Help

2012-10-26 Thread Raakesh kumar
On Fri, Oct 26, 2012 at 6:41 PM, Harisankar P S mai...@hsps.in wrote: How do you specify in your application if he is admin or not. I do not use cancan so not sure how if some function is available in cancan. But how I would suggest is to use *before_filer* and check if admin or not. Find a

Re: [ilugd] Rails Application Help

2012-10-26 Thread Harisankar P S
On Fri, Oct 26, 2012 at 7:13 PM, Raakesh kumar kumar3...@gmail.com wrote: No in rolify and CanCan, basically i check for this by using user.has_role? :superadmin.. Then just change the if condition accordingly, if user.has_role? :super_admin and place that code in the

Re: [ilugd] Rails Application Help

2012-10-26 Thread Raakesh kumar
On Fri, Oct 26, 2012 at 7:20 PM, Harisankar P S mai...@hsps.in wrote: On Fri, Oct 26, 2012 at 7:13 PM, Raakesh kumar kumar3...@gmail.comwrote: No in rolify and CanCan, basically i check for this by using user.has_role? :superadmin.. Then just change the if condition accordingly, if