Hey there, Your question is 100% server-side, it seems, so you should ask it on the RubyOnRails-Talk group. As Colin said, this group is about Prototype and script.aculo.us.
gberz3 a écrit : > Although I'm not completely new to Rails, I do have a question that'll > likely make you think otherwise. I am absolutely lost when it comes > to using "map". The way rails is using map doesn't seem to be the way > I'm familiar with it from Ruby, but then again that doesn't > necessarily mean anything. For instance, what does "map.resources" > actually *do* and where are the values stored? First, don't mistake Enumerable#map, which is equivalent in Prototype and Ruby, and the map you're alluding to here, which yields statements in your Routing configuration like "map.connect" and "map.resources," to name the two most frequent ones. This second "map" is just the argument passed to blocks by ActionController::Routing::Routes.draw. It's main description is in the RDoc: http://api.rubyonrails.org/classes/ActionController/Routing.html It's also explained in great detail in "Agile Web Development with Rails, 2nd edition" in chapter 20, which is dedicated to the issue. -- Christophe Porteneuve a.k.a. TDD "[They] did not know it was impossible, so they did it." --Mark Twain Email: [EMAIL PROTECTED] --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" 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-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
