Archive for February, 2009

Setting up tiny_mce_plus plugin in rails application

Wednesday, February 25th, 2009

I recently had to struggle with setting up tiny_mce_plugin and spend a whole day trying to get it working. Troubleshooting it was very difficult since tiny_mce_plus plugin has dependencies on other plugins ( mentioned below) and there was no one place where everything was laid out to make it to work. I had to really dig in. The last step is the most important.

The following are the steps I had used to make it work on windows.


ActionController::InvalidAuthenticityToken error when using firefox

Friday, February 20th, 2009

I recently came across “ActionController::InvalidAuthenticityToken” error while working on an ROR application. It kind of threw me off track. I was thinking this error is somehow related to cross-site request forgery and something to do with protect_from_forgery option in application.rb controller. This error would only show up in Firefox and not in IE.

The problem is that Firefox as per standards does not allow form elements to be inserted within the “table” or “tr” elements (You can embed a form within the “td” and it will work). The form functionality gets broken if it is within the “table” or “tr” elements and you can get unpredictable results. The following is a mortgage calculator form. Firefox gave the “ActionController::InvalidAuthenticityToken” error when the remote_form_for helper was used within the table as shown below.


Handling Binary Data in Silk Performer

Thursday, February 12th, 2009

I have run into issues while performance testing Flex Applications where sometimes the AMF responses come back in binary format instead of more readable XML format.  Actually in one case the binary data was even base64 encoded and presented by silk performer ( in this case just disable the  option to transform the flex responses to xml format in your active profile). 


Setting up Ruby on Rails at Bluehost

Tuesday, February 10th, 2009

I recently hosted my Ruby on Rails (ROR) application at Bluehost and I am laying out a step by step approach. I have tried to keep it as simple as I can.

The following steps are for setting up ROR application in a shared hosting environment at Bluehost. Bluehost does not let you use mongrel in a shared hosting as this requires running the server at a different port (12010 etc..). In order to use mongrel you need to have a dedicated IP.  In a shared hosting environment you will need to enable FastCGI in your web server ( Apache). Also the following example uses an Add on Domain .