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
About andhapp
Namastey (Hello) Stranger,
This is not the geekiest blog on the planet yet it is not the dumbest one either. I am a small time developer who likes to explore new technologies. I usually program in Java, Groovy and Ruby and take keen interest in the surrounding geeky developments.
This entry was posted in
Linux,
Rails and tagged
Linux,
Rails. Bookmark the
permalink.
Do you know why freezing the code eliminates the errors? I’m having the same problem on OS X and no one knows why…
@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
very interesting, but I don’t agree with you
Idetrorce
@Idetrorce – Please explain what do you think it does… I just gave my opinion.
Thanks for your comment.