# Rails Routing

**URL:** <https://www.ruby-forum.com/t/rails-routing/141211>\
**Category:** Rails\
**Created:** [June 23, 2008, 5:41pm UTC](https://www.ruby-forum.com/t/rails-routing/141211 "2008-06-23T17:41:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jeff\_Lee](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/8797f3/32.png) [@Jeff\_Lee](https://www.ruby-forum.com/u/Jeff_Lee)\
**Post date:** [June 23, 2008, 5:41pm UTC](https://www.ruby-forum.com/t/rails-routing/141211/1 "2008-06-23T17:41:37Z")

</div>

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](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/](http://localhost/profiles/add/)

such as

[http://localhost/profiles/add/student](http://localhost/profiles/add/student)  
[http://localhost/profiles/add/partner](http://localhost/profiles/add/partner)  
[http://localhost/profiles/add/faculty](http://localhost/profiles/add/faculty)

Am I going about the method/routing the wrong way?

---

<div class="post-metadata">

**Author:** ![Jeff\_Lee](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/8797f3/32.png) [@Jeff\_Lee](https://www.ruby-forum.com/u/Jeff_Lee)\
**Post date:** [June 23, 2008, 5:59pm UTC](https://www.ruby-forum.com/t/rails-routing/141211/2 "2008-06-23T17:59:49Z")

</div>

The controller should be plural

:controller =\> ‘profiles’
