I have this in my routes.rb: map.resources :events # ... map.root :controller => "events", :action => :index
Surely enough, accessing http://localhost:3000/ renders the events/index.html.erb template. However, accessing http://localhost:3000/events renders the same page/template slightly different, as the controller logic (EventsController#index) loads some objects that's not available at "/". Apparently the root route doesn't run the controller logic at all - it only renders the template. Is there something wrong here, or am I the one with wrong expectations? How can I fix it? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 [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-talk?hl=en -~----------~----~----~----~------~----~------~--~---

