About | Archives | Categories
Digg | Lifehacker | Richard Hart | Seth Godin | Tom Peters | Trizle | Work Happy

Rails Input output error on linux

If you are getting input/output error on linux rendering .rhtml pages then the only way you can resolve it is by freezing the version of rails…just do:

rake rails:freeze:gems

This command will freeze this rails application to the version of Rails on the server. If you want to delve deep click the link : Freeze Rails

4 Responses to “Rails Input output error on linux”

  1. Blake Says:

    Do you know why freezing the code eliminates the errors? I’m having the same problem on OS X and no one knows why…

  2. andhapp Says:

    @Blake what freeze does is it makes a copy of the current rails version on your machine and copies it in the vendor directory with your web application and every time you make a call to ActiveRecord or one of the methods in RAILS libraries it looks for them in the vendor directory rather than on your local machine.

    Which implies that your application does not produce any versioning errors when you deploy it as all the libraries it needs are in the same webapp directory.It is suggested to perform the “freeze” rails function just before the deployment.

    It is a brilliant functionality.

    — andHApp

  3. Idetrorce Says:

    very interesting, but I don’t agree with you
    Idetrorce

  4. andhapp Says:

    @Idetrorce - Please explain what do you think it does… I just gave my opinion.

    Thanks for your comment.

Have you got anything to say...???