[Rails] importing mysql table

2013-07-14 Thread Oliver David
i got ruby and mysql configured successully on my windows pc. Im using mysql as default db. so I created new rails project. I ran the cmd rake db:create:all rake db:migrate so I got the db created. I have existing db of country table. I imported it to the development db. question: is ther

[Rails] Rails and MySQL

2013-07-12 Thread Oliver David
I'm trying to use MySQL instead of SQLite3. I have MySQL installed on my pc. Do I need to ran something in the ruby to use MySQL? C:\>rails new MySQLRestaurant --database=mysql C:\>cd MySQLRestaurant C:\MySQLRestaurant>rails generate scaffold review poster:string date:datetime ar ticle:te

Re: [Rails] localhost:­3000

2013-07-04 Thread Oliver David
I got it working. I reinstalled everything and run the file using Run As Administrator. Thanks On Thursday, July 4, 2013 4:46:04 PM UTC-4, Jordon Bedwell wrote: > > On Thu, Jul 4, 2013 at 3:06 PM, Oliver David > > wrote: > > getting Oops! Google Chrome could not connect

[Rails] localhost:­3000

2013-07-04 Thread Oliver David
My third post here. I'm learning Rails. getting Oops! Google Chrome could not connect to localhost:3000 I reinstalled Ruby and Rails. I create the Rails new then run Rails S or Rails server. still cant get the localhost:3000 to start. I'm running Windows 8.1 Ruby version 2.0.0p0 Rail

[Rails] Re: Rails 4 install

2013-06-27 Thread Oliver David
ok thanks. On Thursday, June 27, 2013 5:21:31 AM UTC-4, Tim Millwood wrote: > > It doesn't look like rails is installed. > > No idea how to do it on Windows but on Linux or Mac I would suggest > running, gem install rails > > On Thursday, 27 June 2013 03:18:48

[Rails] Rails 4 install

2013-06-26 Thread Oliver David
I'm newbie and installed Rails last week. When I did rails -v in cmd prompt, I got this: C:\Users\oliver\lesson3>ruby -v ruby 2.0.0p0 (2013-02-24) [i386-mingw32] C:\Users\oliver\lesson3>rails -v 'rails' is not recognized as an internal or external command, operable program or batch file. I wa

Re: [Rails] IRB help

2013-06-22 Thread Oliver David
I got it working. Thanks for helping. On Friday, June 21, 2013 11:22:05 PM UTC-4, kotp wrote: > > IRB is not the command line. Use the command line to mkdir. > > > On Fri, Jun 21, 2013 at 10:56 PM, Oliver David > > wrote: > >> I used the cmd prompt Windows and

Re: [Rails] IRB help

2013-06-21 Thread Oliver David
I used the cmd prompt Windows and type IRB to start and get that error. On Friday, June 21, 2013 10:49:39 AM UTC-4, Colin Law wrote: > > On 21 June 2013 14:12, Oliver David > > wrote: > > I'm new to Ruby. I installed Rails on Windows 8. > > > > When I

[Rails] IRB help

2013-06-21 Thread Oliver David
Im new to Ruby and isntalled Rails on Windows 8. I tried typing this in IRB run it normal or as administrator and getting this result. might have duplicated this post, first time posting on the group did not see where my post is :) irb(main):001:0> mkdir lesson2 NameError: undefined local var

[Rails] IRB help

2013-06-21 Thread Oliver David
I'm new to Ruby. I installed Rails on Windows 8. When I type mkdir in IRB, I'm getting this. I tried running the IRB as administrator too, and still get the same result irb(main):001:0> mkdir lesson2 NameError: undefined local variable or method `lesson2' for main:Object from (irb):