LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > External Applications > Ruby/Rails > mint still hitting rails

Reply
 
Thread Tools Display Modes
  #1  
Old 04-05-2007, 01:48 AM
cswilliams cswilliams is offline
Member
 
Join Date: Jan 2007
Posts: 24
Default mint still hitting rails

Hi,
I'm using mint with my Ruby on Rails app via lsphp. I'm just putting <script src="/mint/?js" type="text/javascript"></script> on each page. Mint is working fine.

However, I started looking through my production logs and it appears that this javascript call is actually getting all the way to rails and generating errors like:
ActionController::UnknownAction (No action responded to mint):
in my production log. Is there anyway I can keep requests to /mint from hitting my rails app?

Even though it's getting to my rails app, mint still seems to be working and recording hits though.

Thanks!
Reply With Quote
  #2  
Old 04-05-2007, 02:24 AM
cswilliams cswilliams is offline
Member
 
Join Date: Jan 2007
Posts: 24
well, i misspoke, mint actually wasn't working. Going to /mint gave me a 404 but /mint/index.php worked fine. I figured out now it stopped working once i added the rewrite cache rules in your rails guide:
RewriteRule ^(.*)/$ $1/index.html [QSA]
RewriteRule ^([^.]+)$ $1.html [QSA]

Makes sense now. I'm pretty new to these rewrite rules, anyone correct me if I'm wrong, but I changed it to:
RewriteCond %{REQUEST_URI} !mint/
RewriteRule ^(.*)/$ $1/index.html [QSA]
RewriteRule ^([^.]+)$ $1.html [QSA]

And now it seems to work again.
Reply With Quote
Reply

Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 09:51 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.