Posted by: Purab on: September 30, 2009
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 doing rework of building site.
Requirement:
Apache Server.
mod_rewrite engine need to on.
Create .htaccess file
and copy paste the following lines
Options [...]
Posted by: Purab on: September 25, 2009
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.
[purab@localhost ~]$ sftp user@example.net -oPort=2202
Connecting to example.net…
ssh: connect to host stylo.smartsourcingglobal.net port 22: No route to host
Couldn’t read packet: Connection reset by peer
Then i tried the following command, [...]
Posted by: Purab on: September 15, 2009
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 files or script is SEO. PHP is a very SEO friendly.
Customer does not want to spend money [...]
Posted by: Purab on: September 15, 2009
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 install the supported gem first.
#gem install json
#gem install eventmachine
#gem install juggernaut
Juggernaut is aims to revolutionize your Rails [...]
Posted by: Purab on: September 15, 2009
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 Option:
<%= link_to image_tag(“/images/submit.jpg”, :border=>0,:class=>’sub20′), :url =>{:controller=> ‘user’,:action=>’create’} %>
Recent Comments