This project is archived and is in readonly mode.

#6768 new
Oleg

/assets route should not be prefixed

Reported by Oleg | May 3rd, 2011 @ 04:46 PM

Sprokets thing is attached as a last route. So if I have something like this in my routes:

Rails.application.routes.draw do
  get '/' => :render_page, :as => 'pages', :path => '(*page_path)'
end

My catch-all route will not allow /assets to map to a proper place. This is what I see in rake routes

pages GET    /(*page_path)(.:format)  {:controller=>"pages", :action=>"render_page"}
             /assets                  {:to=>#<Sprockets::Environment:0x00000100f5d240 ...

/assets route should be defined before any of my application routes.

Comments and changes to this ticket

  • af001

    af001 May 5th, 2011 @ 02:57 AM

    私の中で、総合評価のとっても低いアバアバクロホリスタークロ銀座店。アバクロは大好きなんですけどね。一昨日の東京駅付近での打ち合わせの後、散歩がてら久々に行ってきました。そしたらビックリ!相変わらアバクロず、踊っているだけの店員さんとかもいましたが、

  • Mike Howard

    Mike Howard May 7th, 2011 @ 09:36 PM

    This is Pilot error

    rake route dies with 'missing controller' on this route file.

    Need to specify controller for the generic route.

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Tags

Pages