I have a profiles controller and added a method named student_add. I would like to access this method via:
http://localhost/profiles/add/student
However, when I add the route "map.connect 'profiles/student/ add', :controller => 'profile', :action => 'student_add'
I am given the following error:
Unknown action No action responded to add
Obviously I'm doing something wrong here. I would like to have a few different methods in my profiles controller and access them each with
http://localhost/profiles/add/
such as
http://localhost/profiles/add/student http://localhost/profiles/add/partner http://localhost/profiles/add/faculty
Am I going about the method/routing the wrong way?