User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Ruby section within the Web Development category of DaniWeb, a massive community of 456,472 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,795 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Ruby advertiser: SELL YOUR PRODUCT TODAY !
Views: 3264 | Replies: 1
Reply
Join Date: Nov 2006
Location: new delhi
Posts: 39
Reputation: amithasija is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
amithasija amithasija is offline Offline
Light Poster

access public folder

  #1  
Sep 17th, 2007
hi everybody,

i want to access the images stored in /public/images folder through url,

means if my application is running on port-3000,than i want to access the images folder
using localhost with this port in url.so that i can see any image in that folder just by changing name in url

i tried this(http://localhost:3000/public/images/cap.JPG) but it wont work out for me.

can anybody help me regarding this issue.

thanx in advance,
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Sep 2008
Posts: 1
Reputation: jrichter is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
jrichter jrichter is offline Offline
Newbie Poster

Re: access public folder

  #2  
Sep 16th, 2008
Originally Posted by amithasija View Post
hi everybody,

i want to access the images stored in /public/images folder through url,

means if my application is running on port-3000,than i want to access the images folder
using localhost with this port in url.so that i can see any image in that folder just by changing name in url

i tried this(http://localhost:3000/public/images/cap.JPG) but it wont work out for me.

can anybody help me regarding this issue.

thanx in advance,



I am sure you have figured this out already, but in case you have not. Simply remove the /public from your url. http://localhost:3000/images/cap.JPG
That should work.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb Ruby Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the Ruby Forum

All times are GMT -4. The time now is 2:32 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC