I have 2 types of users , and generated devise models and views for them . Had to do this basically because using roles was out of question here . Both Users are different and will have different dashboards . Also have to store there data in different tables as those will be further processed on . I was successful in creating different routes for both of them but now as i plan to move forward , i want to follow a definite structure which won't cause problems later . I went the polymorphic way to associate the models and also namespaced them as User A and User B.
User A
Will be able to post queries
Will be able to release payments for B
Will be able to keep and remove jobs
User B
Will just be able to answer queries
Will receive payments on completing job
Will be able to view job
*Note - These are just some of the functions of the many i have to accomplish .
I have looked into other questions at SO but i didn't get a concrete answer . Looking forward to suggestions from those who might have achieved the same or have been in a similar situation . Thanks in advance .