[Rails] Using scaffolding with Ruby 4.1.0 on existing Db

2014-08-20 Thread Al Rushing
Thanks in advance for the great responses on this forum. My question is this: Let's say I have a MySQL database with three tables. Referential integrity is set up in the database, so invalid keys will cause a non zero query return code. The tables are: Category which o

RE: [Rails] Using scaffolding

2013-03-20 Thread G M
. Hopefully today's progress will be good too! Cheers, G > From: clan...@googlemail.com > Date: Wed, 20 Mar 2013 13:29:01 +0000 > Subject: Re: [Rails] Using scaffolding > To: rubyonrails-talk@googlegroups.com > > On 20 March 2013 10:34, G M wrote: > > I tried t

Re: [Rails] Using scaffolding

2013-03-20 Thread Colin Law
tarting it did not fix the problem? If the latter were you in the correct directory in the terminal? If the former what OS are you using? Colin > > G :) > >> From: clan...@googlemail.com >> Date: Wed, 20 Mar 2013 10:23:59 +0000 > >> Subject: Re: [Rails] Using scaffold

RE: [Rails] Using scaffolding

2013-03-20 Thread G M
I tried that a number of times but it didn't work, closing the terminal window was the only way to get it to work. G :) > From: clan...@googlemail.com > Date: Wed, 20 Mar 2013 10:23:59 + > Subject: Re: [Rails] Using scaffolding > To: rubyonrails-talk@googlegroups.com >

Re: [Rails] Using scaffolding

2013-03-20 Thread Colin Law
lemail.com >> Date: Wed, 20 Mar 2013 09:49:14 +0000 >> Subject: Re: [Rails] Using scaffolding >> To: rubyonrails-talk@googlegroups.com > >> >> On 20 March 2013 00:47, G wrote: >> > Hi all, >> > >> > I've been following this onli

RE: [Rails] Using scaffolding

2013-03-20 Thread G M
Hi Colin, Closing the terminal and restarting the server did the trick, thank you. G :) > From: clan...@googlemail.com > Date: Wed, 20 Mar 2013 09:49:14 + > Subject: Re: [Rails] Using scaffolding > To: rubyonrails-talk@googlegroups.com > > On 20 March 2013 00:47, G

Re: [Rails] Using scaffolding

2013-03-20 Thread Colin Law
On 20 March 2013 00:47, G wrote: > Hi all, > > I've been following this online book: > http://ruby.railstutorial.org/chapters/a-demo-app#sec-modeling_demo_users > > I ran the commands: > rails generate scaffold User name:string email:string > bundle exec rake db:migrate > > As I understand it I sh

[Rails] Using scaffolding

2013-03-20 Thread G
Hi all, I've been following this online book: http://ruby.railstutorial.org/chapters/a-demo-app#sec-modeling_demo_users I ran the commands: rails generate scaffold User name:string email:string bundle exec rake db:migrate As I understand it I should be able to go to the following URL and it s