On 6 April 2012 12:06, CC Chen <lists@ruby-forum.com> wrote:
> Colin Law wrote in post #1055252:
>> On 6 April 2012 11:42, CC Chen <lists@ruby-forum.com> wrote:
>>>
>>>
>>> Sorry, it is 'local folder'.
>>>
>>>
>>> I want to select a file and it can show the context on web directly.
>>
>> Still not enough information I am afraid. Local to who? The server
>> or the client? Please give an example of exactly what you want to do,
>> it will save us both a lot of typing.
>>
>> Colin
>
>
>
> Local I means those files saved on my server disk.
>
> (My database not ready)
>
> And I want to display the contents which I choose by using web
> interface.
Just put the files in the public folder of your rails app, then they
can be accessed directly. So if your app is accessed via
http://localhost:3000 then a file public/test.html can be fetched by
http://localhost:3000/test.html.
Colin
--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
No comments:
Post a Comment