How to include twitter bootstrap in my Rails project manually (without using any gems)?

前端 未结 5 1794
野的像风
野的像风 2021-01-07 03:28

I\'m learning Rails and want to play with Rails and Twitter Bootstrap. My Rails project layout is:

├─assets
│  ├─images
│  ├─javascripts
│  └─stylesheets
├─c         


        
5条回答
  •  孤城傲影
    2021-01-07 03:53

    Redirect calls in routes.rb

      get '/img/:name', to: redirect {|params, req| "/assets/#{params[:name]}.#{params[:format]}" }
    

    This will redirect calls for /img to /assets

提交回复
热议问题