# Rails fails to start when engine CSS/JS files are -w

**URL:** <https://www.ruby-forum.com/t/rails-fails-to-start-when-engine-css-js-files-are-w/51707>\
**Category:** Engines Development\
**Created:** [January 6, 2006, 2:53am UTC](https://www.ruby-forum.com/t/rails-fails-to-start-when-engine-css-js-files-are-w/51707 "2006-01-06T02:53:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![seth](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/f14d63/32.png) [@seth](https://www.ruby-forum.com/u/seth)\
**Post date:** [January 6, 2006, 2:53am UTC](https://www.ruby-forum.com/t/rails-fails-to-start-when-engine-css-js-files-are-w/51707/1 "2006-01-06T02:53:02Z")

</div>

I use perforce for my source control system. It has the notion of  
checking in / out files. To accomplish this, it sets files -w/+w if it’s  
checked in or not.

Rails chokes starting up when attempting to copy stuff in the public  
engine folder into the engine\_files folder.

If I chmod +w the files, or rm them before starting rails everything is  
cool. This should probably be fixed in the engine plugin itself…

I have a rake task right now that does it for me, but what do you think  
of modifying the core?

Thanks.

---

<div class="post-metadata">

**Author:** ![seth](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/f14d63/32.png) [@seth](https://www.ruby-forum.com/u/seth)\
**Post date:** [January 6, 2006, 11:11am UTC](https://www.ruby-forum.com/t/rails-fails-to-start-when-engine-css-js-files-are-w/51707/2 "2006-01-06T11:11:10Z")

</div>

This definitely sounds like something that the Engines plugin should  
fail gracefully at, but I’m not quite sure about having it directly  
affecting permissions. Regardless - submit this as a bug on the Trac  
site.

Cheers

- james

---

<div class="post-metadata">

**Author:** ![seth](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/f14d63/32.png) [@seth](https://www.ruby-forum.com/u/seth)\
**Post date:** [January 6, 2006, 12:18pm UTC](https://www.ruby-forum.com/t/rails-fails-to-start-when-engine-css-js-files-are-w/51707/3 "2006-01-06T12:18:33Z")

</div>

James A. wrote:

> This definitely sounds like something that the Engines plugin should  
> fail gracefully at, but I’m not quite sure about having it directly  
> affecting permissions. Regardless - submit this as a bug on the Trac  
> site.
> 
> Cheers
> 
> - james

It’s in there… 🙂 Thanks for the look on that & the other bug as well.
