How to do a rewrite rule in rails .htaccess to disallow rails in certain subfolders (for example, you might want to run a php forum software under /public/forum)
Mainly, you can just edit the .htaccess file in your rails app under public/.htaccess. Inside there is a short explanation and example of how to do this.
For example,
RewriteCond %{REQUEST_URI} ^/forum.* RewriteRule .* - [L]
Helpful link Hosting rails helpful link
No Comments | May 6, 2008
CSS stylesheet & viewport meta tag
Basically, you want the following in your header tag - this will give you a css stylesheet just for the iphone, and make the scale to 1.
<%= stylesheet_link_tag 'iphone-app', :media => 'only screen and (max-device-width: 480px)' %>
No Comments | May 3, 2008
If you are a ruby on rails web developer like me, use a mac, and would prefer to test your rails creations in internet explorer without having to upload your app every time you make a change and then testing on a windows computer, here is how you can develop and test on windows using vmware.
First, follow this tutorial: Setting up vmware
Then, follow this tutorial: Setting up localhost through vmware
No Comments | May 2, 2008