Forum: Ruby on Rails problems with rails 1.2 routing

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
79caabff3b239b1bee6de8c51bc7f78c?d=identicon&s=25 Rolando Abarca (Guest)
on 2007-02-06 17:23
Right now I have a method like this:

  def estados
    respond_to do |format|
      format.xls do
        # generate xls and send it with send_data

in my routes.rb I've changed the default route to this:

  map.connect ':controller/:action/:id.:format'

And in environment.rb, I added this line:

  Mime::Type.register "application/", :xls

However, when I use the new default route, none of my
controllers/actions is recognized, and I get this error:

  Routing Error
  no route found to match "/informes/estados" with {:method=>:get}

What's the right way to use the respond_to method?
Thanks for any tip.

8f3739e3b34bfea19fd381500d8a8fe6?d=identicon&s=25 Anthony Carlos (acarlos)
on 2007-02-07 04:35
(Received via mailing list)

When I switched to rails 1.2.1, I got the same error message for
pages using the default routes. Are you seeing the same no route
found error on other pages? Are you using any symbolic links in your
application? If so, check out this ticket:

Hope it helps,


It explains that the RAILS_ROOT
This topic is locked and can not be replied to.