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

Go Back   LiteSpeed Support Forums > External Applications > Ruby/Rails > Ruby on Rails and sub-folding opportunities

Reply
 
Thread Tools Display Modes
  #1  
Old 03-12-2007, 01:18 AM
TOYOU TOYOU is offline
Member
 
Join Date: Oct 2006
Posts: 14
Default Ruby on Rails and sub-folding opportunities

Being happy with the ease of use of your products, I have had a troublesome experience trying to make ruby work under sub-folder. Your Rails Step-by-step wiki is more-or-less good but I strongly advice you to add some info saying that which step is compulsory and why. Most of my time I spent returning back to find out that I should have placed dispatch.lsapi exactly under ..public/ folder.So much of tears... Now I will proceed to the main course.

Easy Rails was nice idea, since noone likes rewrite-rules. They are ugly, you know . I tried using your example rules, but they are not 100% suitable. Please, tell me how to make RoR work under this scheme: -http://some.dmn/1levelFolder/RoR. If it is possible, of course... Myself, I made it to some.dmn/ror->conroller, which is not suffice to say - perfect. I know about basic rewrite you proposed, but I had to make a context rule for every method, as I did not want all the subfolders handled solely by dispatch.lsapi...

Thanks for all your work, and if you have by chance to answer my question, please make another person happy. In this cruel world.

P.S. I am using you pre-release 3.0 standard and it says smth about 14.000 days without registration. "Your free software update had expired 13584 days ago." - Good humor was always a wonderful habit.

Cheers.

Last edited by TOYOU; 03-12-2007 at 04:51 AM..
Reply With Quote
  #2  
Old 03-12-2007, 10:37 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
Quote:
Please, tell me how to make RoR work under this scheme: -http://some.dmn/1levelFolder/RoR. If it is possible, of course...
With the easy rails setup, just define a Rails context with URI "/1levelfolder/" pointing to the root directory of RoR application. Actually, just change the URI from "/" to "/1levelfoler/" for your current rails context.
Reply With Quote
  #3  
Old 03-12-2007, 11:32 AM
TOYOU TOYOU is offline
Member
 
Join Date: Oct 2006
Posts: 14
Sorry, but you must have misunderstood me. I have already made /subFolders but they are interpreted by Rails only if I define context. I meant that this app vmail to be sure) redirects to different methods, going form /address to /admin and so on. What I ask is how can I fool Rails app to think that root domain.name/method is smth like domain.name/folder/method? Just by adding one context declaration or redirect rule? Though I guess smth could be done in routes.rb, is there smth better?

If it is possible? Without digging into rails and changing method enterpretation. Really?

I would appreciate if it simpler than my head thinks...
Reply With Quote
  #4  
Old 03-12-2007, 03:49 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
I think need to use rewrite rule or using a redirect context.
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 02:51 PM.



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