Hi all, 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? I''ve read through most of "Agile Web Development" as well as "Beginning Ruby on Rails E-Commerce" and, so far, neither seem to clearly indicate anything regarding it. It''s rather frustrating to see these apparently powerful one-liners without knowing what/where the meat of them is/does. Anyway, I''ve looked at the API and have found nothing useful. I need a ''ground up'' tutorial/presentation regarding map, and I suppose anything like it. Thanks, Michael --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
This group focuses on Rails *spinoffs*, primarily Scriptaculous and Prototype (JS libraries). Incidentally, I don''t know the answer to your question as I''m not a Ruby programmer, there is a different group somewhere for general Rails/Ruby questions. Thanks, Colin gberz3 wrote:> Hi all, > > 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? > > I''ve read through most of "Agile Web Development" as well as > "Beginning Ruby on Rails E-Commerce" and, so far, neither seem to > clearly indicate anything regarding it. It''s rather frustrating to > see these apparently powerful one-liners without knowing what/where > the meat of them is/does. > > Anyway, I''ve looked at the API and have found nothing useful. I need > a ''ground up'' tutorial/presentation regarding map, and I suppose > anything like it. > > Thanks, > Michael > > > > > >--~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
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: tdd-x+CfDp/qHev2eFz/2MeuCQ@public.gmane.org --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---