I’d like to know the best way forward with regards to Rails and MVC.
This is really concerning the controller.
I have a ‘register’ controller which allows a company to register with
the site. Once registered, they go into a backend where they can add
employees, activities etc.
At the moment, these are all handled by the ‘register’ controller but to
me, it’s heading the wrong way.
Each object has it’s own model for example Company, Employee, Activity,
Qualification.
my register controller is now going along these lines with regards to
actions … add_employee, update_employee, add_activity,
update_activity etc.
Does that make sense or in this case, should each object have a
controller called from the main menu ‘register.rhtml’ such as
link_to ‘My Emplyees’, :controller => ‘employee’, :action => ‘do_sth’
link_to ‘My Activities’, :controller => ‘activity’, :action => ‘do_sth’
CIA
-Ants
What kind of emailer are you? Find out today - get a free analysis of
your email personality. Take the quiz at the Yahoo! Mail Championship.