Rails 3.1.0.rc1 assets not compiling

86 views
Skip to first unread message

noel_g

unread,
May 29, 2011, 11:19:04 AM5/29/11
to Ruby on Rails: Talk
I started a test app to try out 3.1

At first .coffee files were compiling into application.js, but now
nothing is compiled.

I set up 2 .coffee files with alerts and expected //=require_tree to
incorporate them into application.js, but that does not happen.
ran rake assets:precompile and indeed the file in public/assets
matches what I see in the browser.

Here is a list of my gems
https://gist.github.com/990283

and here is my sample app
https://github.com/noel/happy

I also tried requiring specific files like
//= require foo
and that had no effect.

interestingly if I also required a file that does not exist like
//= require bar

I see no console errors during compilation

Any ideas what could be the cause?

Noel

unread,
May 29, 2011, 7:05:21 PM5/29/11
to Ruby on Rails: Talk
found the problem.

There can't be any blank lines in the manifest

https://github.com/noel/happy/blob/master/app/assets/javascripts/application.js#L8-10

Is this a bug or should the text in the generated file be more explicit?

> --
> 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 rubyonra...@googlegroups.com.
> To unsubscribe from this group, send email to rubyonrails-ta...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>

Reply all
Reply to author
Forward
0 new messages