Re: [ruby-81] Problem upgrading to asset pipeline

From: Billy
Sent on: Sunday, February 17, 2013 3:08 PM

Unless you're testing out precompile, I'd explicitly put in to development.rb:

  # Don't fallback to assets pipeline if a precompiled asset is missed
  config.assets.compile = false

as well as (which some you have already)
  config.assets.compress = false
  config.assets.digest = false


I don't know if that is false by default outside of prod . I guess since you aren't getting application errors, it probably is.

Also I see you're re-adding the asset paths in applicaton.rb in an attempt to fix your issues. I am unsure if that is messing things up even more but by default app/assets should be the path.

Can you try to add in your CSS/JS files one by one to see if its an ordering problem with require tree/self ? Tree will just load them all in the order they fall in inside the directories. It could one one rule overriding another in an order you don't expect, making your CSS wonky.


I also found that using only //= as the require directive helped out -- probably not an issue but I remember something working after I change my comment lines from *= to that, ie;

pages.js:
//= require jquery.ba-throttle-debounce.min
//= require raphael
//= require pageview.scroll
//= require pageview
//= require pageview.zoom
//= require pageview.resize

Lastly I recall seing a fair deal or issues with Heroku and rake assets:precompile, but if you arent' doing that, it shouldn't matter yet.




On Sun, Feb 17, 2013 at 2:16 PM, Eric Theise <[address removed]> wrote:
Jon,

You'll want to take a look at https://devcenter.heroku.com/articles/rails3x-asset-pipeline-cedar before deploying to production. Other than that, sounds like Billy's your man.

Cheers, Eric

On Sun, Feb 17, 2013 at 2:06 PM, Jon Seidel <[address removed]> wrote:

Just development so far; haven't tried production, which is on Heroku.

Assets seem to be loading just fine:

Started GET "/assets/application.js?body=1" for[masked] at[masked]:12:09 -0800

Served asset /application.js - 304 Not Modified (1ms)

...jon

Jon Seidel, CMC®

EDP Consulting, Inc. / www.edpci.com / www.4mypasswords.com

Effective Decisions... Priceless

Technology that means Business - Since 1979

3373 Guido Street

Oakland, CA 94602

phone: [masked]

fax: [masked]

Results that Make a Difference! -- The Certified Management Consultant (CMC) mark is awarded to consultants who meet the strict standards defined by the Institute of Management Consultants USA, including examination by their peers, client evaluations, and a written examination evidencing their understanding of the IMC USA's Code of Ethics.

Check out IMC USA for more information.





--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by Jon Seidel ([address removed]) from The East Bay Ruby Meetup Group.
To learn more about Jon Seidel, visit his/her member profile
Set my mailing list to email me As they are sent | In one daily email | Don't send me mailing list messages

Meetup, POB 4668 #37895 NY NY USA 10163 | [address removed]





--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by Eric Theise ([address removed]) from The East Bay Ruby Meetup Group.
To learn more about Eric Theise, visit his/her member profile

Our Sponsors

People in this
Meetup are also in:

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy