The controller should be plural
:controller => ''profiles''
On Jun 23, 8:41 am, Jeff Lee
<jle...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> 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/studenthttp://localhost/profiles/add/partnerhttp://localhost/profiles/add/faculty
>
> Am I going about the method/routing the wrong way?
--~--~---------~--~----~------------~-------~--~----~
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---