Routes.rb. what's diff map.connect and map.name?

Hi

as title says, what’s the difference between map.connect and
map.somename ?

thanks

rubynuby wrote:

as title says, what’s the difference between map.connect and
map.somename ?

http://api.rubyonrails.org/classes/ActionController/Routing.html

Check out the section on Named Routes.


Josh S.
http://blog.hasmanythrough.com

Map.foo is named route. It gives helper methods you can use in views.
Map.connect will associate a URL to controller/action.

Sent from my iPhone

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs