Recent Posts

Monday, June 15, 2009

Sys Not defined even after you fix the web config " Solved "

I fixed this problem long time back by fixing the web.config and launched my website,
See the Web.config fix for 'Sys' is undefined
But to my surprise after few days i got complaints about my site crashing and the crashes were only for few Internet Explorer users.

I tested it again in my computer and saw the same old stupid bug "Sys Not Defined" !!!

Now what? I thought I have already fixed it, and i noticed its happening in only one page all other pages seem to be working normal. Then that kept me thinking if the fix of "Sys Not Defined " was in web.config modification then why I am getting error in only one page.

Did some investigation and found out the fix by declaring Scripts after ContentTemplate

script type="text/javascript" src="../Scripts/smartFare.js">/script>

This should fix the problem, for now, lets not hope it comes back again....

Read more!

Monday, June 1, 2009

Solve undefined method `render_text' in Ruby on rails

I have just started to work on Ruby on Rails and was going through step by step Ruby on rails tutorial. 

As i went through I got on to undefined method `render_text' .... Now what ???

so looking into various web sites I Finally got it

You can use

render :text =>"Hello World" Instead of render_text

Enjoy learning ruby

Read more!