Hmm, I feel so embarrassed. I should have tried that... I guess I didn't want to do something I didn't quite understand.
Thanks so much Jim! Cheers, SS On Apr 23, 12:17 am, Jim Ruther Nill <[email protected]> wrote: > place the map.connect line before the map.routes_from_plugin. the routes of > CE has a catch all route which causes the redirect. > > > > On Fri, Apr 23, 2010 at 1:13 PM, sSs <[email protected]> wrote: > > Jim, I added a new connect to my routes.rb as follow: > > > map.connect '/home', :controller=>'base', :action=>'site_index' > > > However, that didn't work. I get a redirect to login page saying > > "Please log in." > > I placed the map.connect line right after the > > "map.routes_from_plugin :community_engine". > > > Any other thoughts as to what I need to change? > > > Thanks, > > SS > > > On Apr 22, 9:46 pm, Jim Ruther Nill <[email protected]> wrote: > > > i don't have a bare copy of ce at the moment so this is not guaranteed to > > > work. > > > > just add an index.html file on your public directory which contains the > > > warning and the link to enter your app. the link, of course, should be > > > linked towww.mywebsite.com/home > > > > just remember to connect to your routes the /home url. > > > > for example: > > > map.connect '/home', :controller => 'home', :action => 'index' > > > > or just > > > map.resources :home > > > > hope this helps. > > > > On Fri, Apr 23, 2010 at 11:06 AM, sSs <[email protected]> > > wrote: > > > > Hi, > > > > I was wondering how I can insert an index.html page before my regular > > > > application.html.haml page? I need to add a Warning page before users > > > > actually go to the "What's Fresh" section and the rest of the website > > > > main navigation. > > > > > I know that by adding an index.html to my /public folder that will be > > > > the page rendered first when users go to my page. However, I can't > > > > seem to be able to link the two pages (intex.html & > > > > application.html.haml) so that if user decides to go forward to the > > > > main page, the application.html.haml page will be rendered using > > > > different address i.e. "www.mywebsite.com/home" where as the > > > >www.mywebsite.com > > > > will be the one with the Warning section. > > > > > I tried finding in CE the code to change. I looked at the > > > > desert_routes.rb but can't get it work. Am I on the right file or do I > > > > need to change another file in CE? > > > > > Please help. > > > > > Thanks, > > > > SS > > > > > -- > > > > You received this message because you are subscribed to the Google > > Groups > > > > "CommunityEngine" group. > > > > To post to this group, send email to [email protected]. > > > > To unsubscribe from this group, send email to > > > > [email protected]<communityengine%[email protected]> > > <communityengine%[email protected]<communityengine%[email protected]> > > > > > . > > > > For more options, visit this group at > > > >http://groups.google.com/group/communityengine?hl=en. > > > > -- > > > You received this message because you are subscribed to the Google Groups > > "CommunityEngine" group. > > > To post to this group, send email to [email protected]. > > > To unsubscribe from this group, send email to > > [email protected]<communityengine%[email protected]> > > . > > > For more options, visit this group athttp:// > > groups.google.com/group/communityengine?hl=en. > > > -- > > You received this message because you are subscribed to the Google Groups > > "CommunityEngine" group. > > To post to this group, send email to [email protected]. > > To unsubscribe from this group, send email to > > [email protected]<communityengine%[email protected]> > > . > > For more options, visit this group at > >http://groups.google.com/group/communityengine?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "CommunityEngine" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group > athttp://groups.google.com/group/communityengine?hl=en. -- You received this message because you are subscribed to the Google Groups "CommunityEngine" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/communityengine?hl=en.
