How to use web to show/display locate folder. Thanks, -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 6 April 2012 05:02, CC Chen <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> How to use web to show/display locate folder.I have no idea what you mean by that (though others may I suppose). Try asking the question again with a bit more detail of what you mean. What is the ''locate folder''? 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Colin Law wrote in post #1055229:> On 6 April 2012 05:02, CC Chen <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote: >> How to use web to show/display locate folder. > > I have no idea what you mean by that (though others may I suppose). > Try asking the question again with a bit more detail of what you mean. > What is the ''locate folder''? > > ColinSorry, it is ''local folder''. I want to select a file and it can show the context on web directly. But I don''t know how to implement it. Thanks, -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 6 April 2012 11:42, CC Chen <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Colin Law wrote in post #1055229: >> On 6 April 2012 05:02, CC Chen <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote: >>> How to use web to show/display locate folder. >> >> I have no idea what you mean by that (though others may I suppose). >> Try asking the question again with a bit more detail of what you mean. >> What is the ''locate folder''? >> >> Colin > > > > 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 -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org 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.
Colin Law wrote in post #1055252:> On 6 April 2012 11:42, CC Chen <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> 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. > > ColinLocal 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. Thanks, -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 6 April 2012 12:06, CC Chen <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Colin Law wrote in post #1055252: >> On 6 April 2012 11:42, CC Chen <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org 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.
Thanks, But my folder all are txt file(not html), just want they can show by web interface. If I choose test.txt , test.txt content will show on web site right away. Could you give me some suggestion? Thanks, Colin Law <clanlaw-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> 於 2012年4月6日下午8:22 寫道:> On 6 April 2012 12:06, CC Chen <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote: > > Colin Law wrote in post #1055252: > >> On 6 April 2012 11:42, CC Chen <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org 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.
On 6 April 2012 17:40, C.C Chen <dickyhide-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Thanks, > > But my folder all are txt file(not html), just want they can show by web > interface. > > If I choose test.txt , test.txt content will show on web site right away.If you put the file in the public folder and open it with the browser (http://localhost:3000/test.txt) it will probably display in the browser (dependent on how the browser is setup), but that is nothing at all to do with rails so this is not the right place to ask. Colin> > > Could you give me some suggestion? > > > > Thanks, > > > Colin Law <clanlaw-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> 於 2012年4月6日下午8:22 寫道: >> >> On 6 April 2012 12:06, CC Chen <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote: >> > Colin Law wrote in post #1055252: >> >> On 6 April 2012 11:42, CC Chen <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> To unsubscribe from this group, send email to >> rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> For more options, visit this group at >> http://groups.google.com/group/rubyonrails-talk?hl=en. >> > > -- > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en.-- gplus.to/clanlaw -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org 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.
Thanks, I try to file search on local folder, but it still can''t work. it will show this error No route matches [POST] "/downloadfile/search" but I had add "get ''downloadfile/search'' " into routes.rb How to fix the problems? html.erb file <%= form_tag :controller =>''downloadfile'', :action=>''search'', :method => ''get'' do %> <p> <%= text_field_tag :search_name, params[:search_name]%> <%= submit_tag "Search", :name=> nil %> <%= link_to_function "Clear", "$(''search_field'').clear"%> </p> <% end %> Thanks, Colin Law <clanlaw-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> 於 2012年4月7日上午2:44 寫道:> On 6 April 2012 17:40, C.C Chen <dickyhide-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > Thanks, > > > > But my folder all are txt file(not html), just want they can show by web > > interface. > > > > If I choose test.txt , test.txt content will show on web site right away. > > If you put the file in the public folder and open it with the browser > (http://localhost:3000/test.txt) it will probably display in the > browser (dependent on how the browser is setup), but that is nothing > at all to do with rails so this is not the right place to ask. > > Colin > > > > > > > Could you give me some suggestion? > > > > > > > > Thanks, > > > > > > Colin Law <clanlaw-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> 於 2012年4月6日下午8:22 寫道: > >> > >> On 6 April 2012 12:06, CC Chen <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote: > >> > Colin Law wrote in post #1055252: > >> >> On 6 April 2012 11:42, CC Chen <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org. > >> To unsubscribe from this group, send email to > >> rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > >> For more options, visit this group at > >> http://groups.google.com/group/rubyonrails-talk?hl=en. > >> > > > > -- > > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To unsubscribe from this group, send email to > > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > For more options, visit this group at > > http://groups.google.com/group/rubyonrails-talk?hl=en. > > > > -- > gplus.to/clanlaw > > -- > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org 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.