HighDots Forums  

Linking to dynamically added html pages.

Ruby On Rails Talk Ruby On Rails programming language mailing list


Discuss Linking to dynamically added html pages. in the Ruby On Rails Talk forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Avnish Malik
 
Posts: n/a

Default Linking to dynamically added html pages. - 11-04-2009 , 06:57 PM






Hello All,

In my application new HTML pages are added into a folder by some
service running in the background. I've constructed the links for these
pages and I also display them on my ruby application's home page. I've
also taken care that each time a new page is added, the webpage gets
updated too with addition of a new link. I used the href tag in the ruby
file (Views) for my application. But no browser currently supports
hyperlinking to files in local filesystem, for e.g. C:\abc.html.

I use the default Mongrel server. I was wondering if
there is any way I can put them into some server folder so that instead
of having a relative path like C:\abc.html I can have something like
http://www.localhost.com:3000/myproject/abc.html. Also I cannot restart
my server each time some new html file is added. Appreciate all your
help.

Thank You
--
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk (AT) googlegroups (DOT) com
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe (AT) googlegroups (DOT) com
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply With Quote
  #2  
Old   
Hassan Schroeder
 
Posts: n/a

Default Re: Linking to dynamically added html pages. - 11-04-2009 , 07:07 PM






On Wed, Nov 4, 2009 at 3:57 PM, Avnish Malik
<rails-mailing-list (AT) andreas-s (DOT) net> wrote:

Quote:
* * * *In my application new HTML pages are added into a folder by some
service running in the background.

* * * * * * * * * *I use the default Mongrel server. I was wondering if
there is any way I can put them into some server folder so that instead
of having a relative path like C:\abc.html I can have something like
http://www.localhost.com:3000/myproject/abc.html.
Of course. Did you even try? Anything in /public is accessible, so
create your 'myproject' directory there and put the files in it.

--
Hassan Schroeder ------------------------ hassan.schroeder (AT) gmail (DOT) com
twitter: @hassan

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk (AT) googlegroups (DOT) com
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe (AT) googlegroups (DOT) com
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

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

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



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.