Ruby Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesRuby Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old March 1st, 2010, 07:02 PM
Pepe''s Avatar
Pepe' Pepe' is offline
the one
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2000
Location: .hr
Posts: 109 Pepe' User rank is Sergeant (500 - 2000 Reputation Level)Pepe' User rank is Sergeant (500 - 2000 Reputation Level)Pepe' User rank is Sergeant (500 - 2000 Reputation Level)Pepe' User rank is Sergeant (500 - 2000 Reputation Level)Pepe' User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Day 14 m 45 sec
Reputation Power: 21
Basic but urgent help about configuration

I'm programming in PERL & PHP, but I have to make urgent changes to web site that appears to be built in ruby on rails and I'm lost as it is my first contact.

I'm trying to delete section of web site: my-site.com/corporate
There is no such folder and no html files in root, so I assumed that it's url overwritten in .htaccess, but web site is fully functional even if I delete .htaccess file, it makes no difference.
.htaccess
Code:
AddHandler fastcgi-script .fcgi
AddHandler cgi-script .cgi
Options +FollowSymLinks +ExecCGI
RewriteEngine On

RewriteRule ^$ index.html [QSA]
RewriteRule ^([^.]+)$ $1.html [QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ dispatch.cgi [QSA,L]

(ruby comments are left out)

I have also found above public root folder
config/routes.rb file with paths/URLs obvious used by web site, like:
Code:
map.connect '/corporate', :controller => 'corporate', :action =>'corporate'

and deleted that lines I don't want, but it also has no effect...
How do I make changes to website, is there any server cache that I can delete and how or do I need to restart server (I would have to request hoster to do it)?
I have attempted to delete browser history, so it's not a problem.
__________________
If I'm posting problem here, it means that I have not been sleeping for at least 20 hours

Last edited by Pepe' : March 1st, 2010 at 07:09 PM.

Reply With Quote
  #2  
Old March 3rd, 2010, 10:04 AM
Scorpions4ever's Avatar
Scorpions4ever Scorpions4ever is offline
Banned ;)
Dev Shed God 9th Plane (9000 - 9499 posts)
 
Join Date: Nov 2001
Location: Woodland Hills, Los Angeles County, California, USA
Posts: 9,387 Scorpions4ever User rank is General 46th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 46th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 46th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 46th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 46th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 46th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 46th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 46th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 46th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 46th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 46th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 46th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 46th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 46th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 46th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 46th Grade (Above 100000 Reputation Level) 
Time spent in forums: 1 Month 4 Weeks 1 Day 21 h 39 m 3 sec
Reputation Power: 4080
You're correct in deleting the entry in routes.rb, but you still need to restart the rails webserver. In production environments, this might be something called 'mongrel' (at least, that's what I used when I did ruby work). You just need to restart that daemon to pick up the changes to routes.rb.

Note that just restarting apache (or lighttpd or whatever) will not have an effect, since apache is just being used as a proxy to mongrel. You need to restart mongrel to see the changes.
__________________
Up the Irons
What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
"Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
Down with Sharon Osbourne

Last edited by Scorpions4ever : March 3rd, 2010 at 10:06 AM.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesRuby Programming > Basic but urgent help about configuration

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap