My Ruby on rails environment suddenly started throwing the following error when I tried to attach to http://localhost:3000 -”private method `gsub!’ called for #”. I had not made any changes in the environment for me to suspect on anything specific. This was also concerning because I was still evaluating the fresh ruby on rails installation on Ubutnu. I noticed that the print also mentioned Webrick which is the default RoR web server. I recollected that I had used mongrel in my last installation as it is supposed to more fast….. Read More
Rails – Private Method `gsub!’ called for – Solution
ActionController Invalid Authenticity Token Solution For Using Ajax On Rails
The other day I was trying to run Ajax with Rails and a very simple pop-up invocation started failing when I used it with prototype.js. Basically I wanted that when a link object is clicked, it pops up a message from the browser using Ajax. Essentially <OnSuccess> was intended to create this pop-up which was not appearing. So I changed <OnSuccess> to <OnFailure> to figure out the reason of failure and discovered the error [ActionController::InvalidAuthenticityToken] was causing the problem. This was strange since the non prototype.js counterpart code was working….. Read More
How To Install Ruby On Rails Server On Ubuntu
The other day I wanted to setup ruby on rails server on Ubuntu for some experimentation. After some trial and error and a few google searches – I was able to get the server running on Ubuntu. Following are the steps that worked for me on Ubuntu 10.04 Step 1 – Install ruby Ruby is the object oriented language based on which the web framework called rails has been built. sudo apt-get install ruby-full build-essential Step 2 – Check ruby installation ruby -v ruby -ropenssl -rzlib -rreadline -e “puts :Hello”….. Read More


Most Commented