Hi, If im in the wrong place please redirect me: I have decided that i''m goignt o jump inand learn rails the hard way. I know I have to go through the initial learnign curve. One of them is to know where to go when you get stuck.. so here goes... I''m installing on Windows 7. using guide: http://guides.rubyonrails.org/getting_started.html Ruby version:1.9.3p392 Rails version:3.2.13 the note on the instructions at: 4.3 Setting the Application Home Page says: root to: "welcome#index" I''ve un-commented it the routes.rb and saves the file. But now I can not open the page. I get error: Oops! Google Chrome could not connect to localhost:3000 Do i need to reboot routes.rb or server or something? It does not seem to obey the command in routes.rb or the path is wrong! I''ve check the directories and the file is there. Nat -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/8432931e-fff7-427f-bc55-bc276d5ad6f8%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
You needs to understand that what ever you typed in url field specific to rails application is mapped to that routes.rb files (and routes.rb file manages how your request is going to be processed ) if you delete the content of it ..you have the specification how to handle the request in rails app. ----------- you can access files from public directory. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/cdb4fbbe-bbb0-4c0f-b0f0-0802ead01e2f%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
On 17 October 2013 13:46, Natmanu <natmanu-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi, > > If im in the wrong place please redirect me: > > I have decided that i''m goignt o jump inand learn rails the hard way. I know > I have to go through the initial learnign curve. One of them is to know > where to go when you get stuck.. so here goes... > > I''m installing on Windows 7. using guide:Well you certainly are going about it the hard way. Rails is generatlly easier on Linux (eg Ubuntu) or Mac. In particular you will find it easier to get help as most developers use Linux or Mac.> http://guides.rubyonrails.org/getting_started.htmlRather than starting there I suggest a tutorial such as railstutorial.org (which is free to use online). That will guide you through the steps in rather more detail than the guide, I believe.> > Ruby version:1.9.3p392 > Rails version:3.2.13 > > the note on the instructions at: > 4.3 Setting the Application Home Page > says: > > root to: "welcome#index" > > I''ve un-commented it the routes.rb and saves the file. But now I can not > open the page. > > I get error: Oops! Google Chrome could not connect to localhost:3000 > > Do i need to reboot routes.rb or server or something? It does not seem to > obey the command in routes.rb or the path is wrong! I''ve check the > directories and the file is there.You need to restart the server after changing the routes.rb. You did not mention that you have started the server, but I presume you have. (rails server is the command). Colin -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLth%2Bs09fOiEigA9OGmy0d4HHYV_X-fnc%3DGECMfDjGWYpw%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
Thanks for the advice guys. Problem is that im sittign on a very good laptop. Do I really need to buy a mac or unix to develop in ROR??? Is it that much different on Windows??? Nat On Friday, 18 October 2013 08:29:59 UTC, Colin Law wrote:> > On 17 October 2013 13:46, Natmanu <nat...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <javascript:>> wrote: > > Hi, > > > > If im in the wrong place please redirect me: > > > > I have decided that i''m goignt o jump inand learn rails the hard way. I > know > > I have to go through the initial learnign curve. One of them is to know > > where to go when you get stuck.. so here goes... > > > > I''m installing on Windows 7. using guide: > > Well you certainly are going about it the hard way. Rails is > generatlly easier on Linux (eg Ubuntu) or Mac. In particular you will > find it easier to get help as most developers use Linux or Mac. > > > http://guides.rubyonrails.org/getting_started.html > > Rather than starting there I suggest a tutorial such as > railstutorial.org (which is free to use online). That will guide you > through the steps in rather more detail than the guide, I believe. > > > > > Ruby version:1.9.3p392 > > Rails version:3.2.13 > > > > the note on the instructions at: > > 4.3 Setting the Application Home Page > > says: > > > > root to: "welcome#index" > > > > I''ve un-commented it the routes.rb and saves the file. But now I can not > > open the page. > > > > I get error: Oops! Google Chrome could not connect to localhost:3000 > > > > Do i need to reboot routes.rb or server or something? It does not seem > to > > obey the command in routes.rb or the path is wrong! I''ve check the > > directories and the file is there. > > You need to restart the server after changing the routes.rb. You did > not mention that you have started the server, but I presume you have. > (rails server is the command). > > Colin >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/e7aeba48-e840-4e97-acb5-d0e9ed5635de%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
On 18 October 2013 15:09, Natmanu <natmanu-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Thanks for the advice guys. > > Problem is that im sittign on a very good laptop. Do I really need to buy a > mac or unix to develop in ROR??? Is it that much different on Windows???No you don''t need another computer to run a linux distribution such as Ubuntu. You can run Ubuntu in a virtual machine inside Windows (VMWare or VirtualBox for example) or you can do what I do which is install Ubuntu alongside Windows in a separate partition so that you select at boot time which one to use. I did that a few years ago and now find myself very rarely using Windows (just to interface with some usb devises hardware that only have windows drivers). It is great to feel back in control of the machine again. And the Ubuntu community is great if you have a problem (eg https://lists.ubuntu.com/mailman/listinfo/ubuntu-users). Colin> > Nat > > On Friday, 18 October 2013 08:29:59 UTC, Colin Law wrote: >> >> On 17 October 2013 13:46, Natmanu <nat...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> > Hi, >> > >> > If im in the wrong place please redirect me: >> > >> > I have decided that i''m goignt o jump inand learn rails the hard way. I >> > know >> > I have to go through the initial learnign curve. One of them is to know >> > where to go when you get stuck.. so here goes... >> > >> > I''m installing on Windows 7. using guide: >> >> Well you certainly are going about it the hard way. Rails is >> generatlly easier on Linux (eg Ubuntu) or Mac. In particular you will >> find it easier to get help as most developers use Linux or Mac. >> >> > http://guides.rubyonrails.org/getting_started.html >> >> Rather than starting there I suggest a tutorial such as >> railstutorial.org (which is free to use online). That will guide you >> through the steps in rather more detail than the guide, I believe. >> >> > >> > Ruby version:1.9.3p392 >> > Rails version:3.2.13 >> > >> > the note on the instructions at: >> > 4.3 Setting the Application Home Page >> > says: >> > >> > root to: "welcome#index" >> > >> > I''ve un-commented it the routes.rb and saves the file. But now I can not >> > open the page. >> > >> > I get error: Oops! Google Chrome could not connect to localhost:3000 >> > >> > Do i need to reboot routes.rb or server or something? It does not seem >> > to >> > obey the command in routes.rb or the path is wrong! I''ve check the >> > directories and the file is there. >> >> You need to restart the server after changing the routes.rb. You did >> not mention that you have started the server, but I presume you have. >> (rails server is the command). >> >> Colin-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLsUK5WxLj7ZACVmP6KmJpTtkY2M3vMaJMR4%3DdXcmJn98Q%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
Hi Nat, I believe you can do Rails on Windows, but you may face more problems and get less help. And yes, it is quite different. Mac and Linux are based on Unix so they work in the same way, but Windows is totally different. Linux is free so good news is you don''t need to buy anything. Bad news is, however, if you are not comfortable with command line, there will be a learning curve. Lei On Friday, October 18, 2013 at 9:09 AM, Natmanu wrote:> Thanks for the advice guys. > > Problem is that im sittign on a very good laptop. Do I really need to buy a mac or unix to develop in ROR??? Is it that much different on Windows??? > > Nat > > On Friday, 18 October 2013 08:29:59 UTC, Colin Law wrote: > > On 17 October 2013 13:46, Natmanu <nat...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org (javascript:)> wrote: > > > Hi, > > > > > > If im in the wrong place please redirect me: > > > > > > I have decided that i''m goignt o jump inand learn rails the hard way. I know > > > I have to go through the initial learnign curve. One of them is to know > > > where to go when you get stuck.. so here goes... > > > > > > I''m installing on Windows 7. using guide: > > > > Well you certainly are going about it the hard way. Rails is > > generatlly easier on Linux (eg Ubuntu) or Mac. In particular you will > > find it easier to get help as most developers use Linux or Mac. > > > > > http://guides.rubyonrails.org/getting_started.html > > > > Rather than starting there I suggest a tutorial such as > > railstutorial.org (http://railstutorial.org) (which is free to use online). That will guide you > > through the steps in rather more detail than the guide, I believe. > > > > > > > > Ruby version:1.9.3p392 > > > Rails version:3.2.13 > > > > > > the note on the instructions at: > > > 4.3 Setting the Application Home Page > > > says: > > > > > > root to: "welcome#index" > > > > > > I''ve un-commented it the routes.rb and saves the file. But now I can not > > > open the page. > > > > > > I get error: Oops! Google Chrome could not connect to localhost:3000 > > > > > > Do i need to reboot routes.rb or server or something? It does not seem to > > > obey the command in routes.rb or the path is wrong! I''ve check the > > > directories and the file is there. > > > > You need to restart the server after changing the routes.rb. You did > > not mention that you have started the server, but I presume you have. > > (rails server is the command). > > > > Colin > -- > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. > To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org (mailto:rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org). > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org (mailto:rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org). > To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/e7aeba48-e840-4e97-acb5-d0e9ed5635de%40googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out.-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/F089FFA03E0344E8A8D4D39989FEEBF6%40gmail.com. For more options, visit https://groups.google.com/groups/opt_out.