On 28 March 2012 12:54, Pallav_bfs <[email protected]> wrote: > In a sample app,we have one controller called employee_controller.This > one has its model and view parts. > Now can we create another controller(say,emp_controller,which > shouldn't have model or view parts) in such a way that one can access > all employee's methods through emp_controller. > > That means,GET on http://server:3000/emp/{:id} would give same results > as a GET on http://server:3000/employee/{:id} would do? > > Or,http://server:3000/emp/{:id}/skill/ would give same results as a > GET on http://server:3000/employee/{:id}/expertise/ would do?
Set up routes for those actions so that emp url goes to the appropriate employee controller actions. 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.

