Greetings! Today when i was working with helper methods for a ruby on rails project, i faced a problem of not rendering HTML tags in View Instead it rendered as a String. For example, the actual scenario is, I had the following code in helper module Inside view when i called this method I got [...]
Archive for May, 2011
How to display HTML tags in rails helper methods ?
Posted in Ruby on Rails on May 26, 2011 | 5 Comments »
Soultion for rake aborted! undefined method `task’ in rails 3.0.7
Posted in Ruby on Rails on May 25, 2011 | 10 Comments »
Hai, today when i created an empty database rake db:create for a rails project, i faced the following error Error: rake aborted! undefined method `task’ for #<Pagescroll::Application:0xb74dcb0c> (See full trace by running task with –trace) To solve it, i followed the below steps which i found while surfing The issue is because of the version [...]
Problem solved for Mysql2::Error Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’ (2) in Rails 3
Posted in Ruby on Rails on May 18, 2011 | 3 Comments »
Hai, iam using Fedora 14. Today i cloned a repo from github. When i executed the application i faced the following mysql error Mysql2::Error Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’ (2) Then after googling, i came to know that we need to change the path ( must give the correct path of [...]
How to extract rar files in fedora 14 ?
Posted in Uncategorized on May 17, 2011 | 1 Comment »
To extract the rar format files on Fedora 14, as a root user type the following commands Install free and non free yum repositories rpm -Uvh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm rpm -Uvh http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm Install unrar yum install unrar