newb
February 3, 2009, 7:37am
1
Hello…
when i use below code to open a google page it works.
But i have html file in my application folder.to open that file i tried
this Code.
When i click this, new window opens but i get routing Error like
No route matches
“/ACMServer_exe/ChatHistory/2009-01-11/[email protected] [email protected] /[email protected] [email protected] ”
with {:method=get}
Pls Help me .i m troubling with this for the past two days .
nothing works .pls help.how can i open local html file
newb
February 3, 2009, 7:52am
2
What do you want it to do? What is the path supposed to load?
Blog: http://random8.zenunit.com/
Learn rails: http://sensei.zenunit.com/
On 03/02/2009, at 5:37 PM, Newb N. <rails-mailing-list@andreas-
newb
February 3, 2009, 8:01am
3
Julian L. wrote:
What do you want it to do? What is the path supposed to load?
Blog: http://random8.zenunit.com/
Learn rails: http://sensei.zenunit.com/
On 03/02/2009, at 5:37 PM, Newb N. <rails-mailing-list@andreas-
as like google page opens ,i want to open my local file from application
folder
That HTML file’s Actual path
D:\Projects\inProgress\ANGACM0908\re\Back
Ups\acm_administration-31-jan-09_2\ACMServer_exe\ChatHistory\2009-01-22\[email protected] [email protected] \[email protected] [email protected]
newb
February 3, 2009, 8:36am
4
put the file in your ‘public’-folder of your rails app or make it
accessible by other means (= webserver).
newb
February 3, 2009, 9:06am
5
Before you do rails driven sites work out about how webservers work
first.
Blog: http://random8.zenunit.com/
Learn rails: http://sensei.zenunit.com/
On 03/02/2009, at 6:01 PM, Newb N. <rails-mailing-list@andreas-
newb
February 3, 2009, 9:29am
6
On 3 Feb 2009, at 7:37 AM, Newb N. wrote:
Do you see what you’re doing here? You’re not opening a local file,
you’re asking a web server for a file. So either you need to put this
file in the public folder of your project (so the web server can find
it), configure your web server so it can find the file elsewhere, or,
if you really want the file to remain local, change the url to a local
path (“file:”). But unless this is for personal use only, I
don’t think that’s what you’re looking for.
Then again, if this is not for personal use, you might want to learn
a bit more about web servers first.
mcv.
newb
February 3, 2009, 9:40am
8
Martijn Vos wrote:
On 3 Feb 2009, at 7:37 AM, Newb N. wrote:
thanks for the reply.
ok if i put my folder in public
how can i open that file.
newb
February 3, 2009, 3:30pm
10
On 3 Feb 2009, at 9:40 AM, Newb N. wrote:
Martijn Vos wrote:
On 3 Feb 2009, at 7:37 AM, Newb N. wrote:
thanks for the reply.
ok if i put my folder in public
how can i open that file.
Same way you’d load anything else in the public folder, like images
or css files. Take a look at an example Rails site.
mcv.