On 8 August 2011 09:12, Dhaval Mehta <[email protected]> wrote: > hello every one, > i am new in ror, > > i have created admin, employee and client model and inherit to > user class.. > but how to check in login form that the current user is who? > > i am trying STI..
I am not sure what you are asking. If you are looking for general help on STI then googling for rails sti tutorial provides a number of links that should get you going. If you do not yet understand the basics of RoR then I suggest that you would be better to understand the basic principles before moving on to more complex capabilities such as STI. You could work through the free-to-use-online tutorial railstutorial.org (or a similar tutorial) to help you to understand what it is all about. If you do understand the basics but have a particular issue with STI then please explain in more detail what the problem is. Colin -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

