We have site in plain html file and some time we want to use clean URLs or Pretty URLs for our site. Clean URLs are in demand becasue of Seach Engine Optimiztion. You can achive the Clean URLs. With not … Continue reading
Monthly Archives: September 2009
how to use sftp command with different port
I am using the Fedora 9 here for this explaination. I tried to sftp on remote server for port no 2202. I got the following error on command prompt. [siwan@localhost ~]$ sftp user@example.net -oPort=2202 Connecting to example.net… ssh: connect to … Continue reading
Use PHP in Rails project
Many times you need to use PHP scripts in Rails project. You will got so much open source PHP scripts for various use. Example is So many Rails site is using WordPress for blogging system. Main reason behind using PHP … Continue reading
How to use juggernaut in Rails project
Juggernaut is the Rails plugin for sending and receiving data in different thread. It gives you real time connection to server and you can implement different ideas work or fulfil your requirement. Juggernaut uses the eventmachine as a server. So … Continue reading
link_to with image_tag in Rails
This is very basic form tag in rails. but some time you get confused about using this tag. How to displays a image inside link_to instead of text? Here is answer: <%= link_to image_tag(“/images/submit.jpg”, :border=>0), :action => ‘create’ %> Section … Continue reading
Share Thunderbird Between Windows and Linux
Many people are using Thunderbird as a email client. I am using the Windows xp and Fedora 8 (Dual boot OS) on my System. Two years back i was using Microsoft office Outlook for viewing the emails. Later on i … Continue reading
Create XML document with Ruby -XML parsing
XML is most popular data transfer layer. In every language we need XML parsing. In Ruby there is in build XML strong parsing support. In this post I am going to cover the How to create XML file with simple … Continue reading
text_area tag in Rails – Issues
When you start New Rails project. Always we used scaffolding for creating simple base for out application. I used scaffolding for some methods. I got some very weird issue about tex_area tag in rails. When i check the forms textagea … Continue reading
Rich Text Editor in Rails Application
Many times you need normal CMS for your application. You want to need some pages data need to handle through CMS. It is really very easy to Install any RTE in the Rails. There are many open source RTE available. … Continue reading
Rails if else statement
Here i am going to give some example of conditional statements in Rails. Normal IF ELSE <% if user %> <%= user.name %> <% else %> Anonymous <% end %> Normal code for ELSIF if var == 10 print “Variable … Continue reading