Rich Bodo
2005-Oct-21 01:32 UTC
Newbie depot issue - Agile web development with rails book
Followed along with the depot app config. All is well until: ruby script/generate scaffold Product Admin Which a products_controller.rb and a products view, but no admin view. So instead of: http://localhost:3000/admin, I use: http://localhost:3000/products and the app comes up just fine. What is this newbie doing wrong? TIA, -Rich _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
Neeraj Kumar
2005-Oct-21 01:42 UTC
Re: Newbie depot issue - Agile web development with rails book
Did you create the database with the table Product? What version of rails & ruby, what os? -=- Neeraj http://neeraj.name On 10/20/05, Rich Bodo <richbodo-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Followed along with the depot app config. All is well until: > > ruby script/generate scaffold Product Admin > > Which a products_controller.rb and a products view, but no admin view. > > So instead of: http://localhost:3000/admin, > I use: http://localhost:3000/products and the app comes up just fine. > > What is this newbie doing wrong? > > TIA, > > -Rich > > > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > >_______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
Rich Bodo
2005-Oct-21 02:01 UTC
Re: Newbie depot issue - Agile web development with rails book
On 10/20/05, Neeraj Kumar <neeraj.jsr-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Did you create the database with the table Product?I did, and I can manipulate it with the application that was created. All appears well, there. What version of rails & ruby, what os? Ruby 1.8.3, rails 0.14.1. Ubuntu hoary. -Rich -=- Neeraj> http://neeraj.name > > On 10/20/05, Rich Bodo <richbodo-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > Followed along with the depot app config. All is well until: > > > > ruby script/generate scaffold Product Admin > > > > Which a products_controller.rb and a products view, but no admin view. > > > > So instead of: http://localhost:3000/admin, > > I use: http://localhost:3000/products and the app comes up just fine. > > > > What is this newbie doing wrong? > > > > TIA, > > > > -Rich > > > > > > > > _______________________________________________ > > Rails mailing list > > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > > > > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > >_______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
tlalinne
2005-Oct-21 09:39 UTC
Re: Newbie depot issue - Agile web development with rails book
Rich Bodo <richbodo@...> writes:> > Followed along with the depot app config. All is well until: > ruby script/generate scaffold Product Admin > Which a products_controller.rb and a products view, but no admin view. > So instead of: http://localhost:3000/admin, > I use: http://localhost:3000/products and the app comes up just fine. > What is this newbie doing wrong? > TIA,I have the same problem and it seems that many other people have this problem on win32, linux and OS X. The generate scaffold code seems to ignore the additional controller parameter and is acting as none was passed on the commandline and then generates the default ProductController one. This must be a bug in the newer releases of Rails. The workaround is to downgrade to Rails 0.12.0 which works as described in the book. I did this and it works ok after that. Hope it helped. /cheers - Thierry Lalinne
Deirdre Saoirse Moen
2005-Oct-22 17:19 UTC
Re: Re: Newbie depot issue - Agile web development with rails book
On Oct 21, 2005, at 2:39 AM, tlalinne wrote:> I have the same problem and it seems that many other people have > this problem on > win32, linux and OS X. The generate scaffold code seems to ignore > the additional > controller parameter and is acting as none was passed on the > commandline and > then generates the default ProductController one. > > This must be a bug in the newer releases of Rails.RubyMatt (Matt Mower) and I rummaged around and we think he''s found the problem in edge rails. Thanks also to chris2 who spotted it in five seconds flat once Matt had narrowed down which line was the problem. There''s a patch submitted on this, see: http://dev.rubyonrails.com/ ticket/2556
Matt Mower
2005-Oct-22 17:33 UTC
Re: Re: Newbie depot issue - Agile web development with rails book
On 22/10/05, Deirdre Saoirse Moen <deirdre-mzk6fgDMp2XR7s880joybQ@public.gmane.org> wrote:> On Oct 21, 2005, at 2:39 AM, tlalinne wrote: > There''s a patch submitted on this, see: http://dev.rubyonrails.com/ > ticket/2556 >I added the patch to 2556 but I wasn''t sure it would be seen so I submitted a new ticket as: http://dev.rubyonrails.com/ticket/2562 M -- Matt Mower :: http://matt.blogs.it/
Deirdre Saoirse Moen
2005-Oct-22 17:42 UTC
Re: Re: Newbie depot issue - Agile web development with rails book
On Oct 22, 2005, at 10:33 AM, Matt Mower wrote:> On 22/10/05, Deirdre Saoirse Moen <deirdre-mzk6fgDMp2XR7s880joybQ@public.gmane.org> wrote: > >> On Oct 21, 2005, at 2:39 AM, tlalinne wrote: >> There''s a patch submitted on this, see: http://dev.rubyonrails.com/ >> ticket/2556 >> >> > > I added the patch to 2556 but I wasn''t sure it would be seen so I > submitted a new ticket as: > > http://dev.rubyonrails.com/ticket/2562Well, since you didn''t put [PATCH] in the title of 2556, yeah, that would be a problem. :)
Deirdre Saoirse Moen
2005-Oct-22 19:54 UTC
Re: Re: Newbie depot issue - Agile web development with rails book
On Oct 22, 2005, at 10:33 AM, Matt Mower wrote:> On 22/10/05, Deirdre Saoirse Moen <deirdre-mzk6fgDMp2XR7s880joybQ@public.gmane.org> wrote: > I added the patch to 2556 but I wasn''t sure it would be seen so I > submitted a new ticket as: > > http://dev.rubyonrails.com/ticket/2562And it''s now been accepted. That''s fast! (Thanks bitsweat!) So, if you''re running a current repository, svn up and now:> ruby script/generate scaffold Product Adminshould work. -- _Deirdre http://deirdre.net
Ezra Zygmuntowicz
2005-Oct-23 01:27 UTC
Re: Re: Newbie depot issue - Agile web development with rails book
On Oct 22, 2005, at 12:54 PM, Deirdre Saoirse Moen wrote:> > On Oct 22, 2005, at 10:33 AM, Matt Mower wrote: > > >> On 22/10/05, Deirdre Saoirse Moen <deirdre-mzk6fgDMp2XR7s880joybQ@public.gmane.org> wrote: >> I added the patch to 2556 but I wasn''t sure it would be seen so I >> submitted a new ticket as: >> >> http://dev.rubyonrails.com/ticket/2562 >> > > And it''s now been accepted. > > That''s fast! (Thanks bitsweat!) > > So, if you''re running a current repository, svn up and now: > > >> ruby script/generate scaffold Product Admin >> > > should work. > > -- >Deirdre- Thanks for fixing that bug. That one has been driving people crazy on #rubyonrails and I was getting a little tired of telling people about it ;-) Cheers- -Ezra Zygmuntowicz WebMaster Yakima Herald-Republic Newspaper ezra-gdxLOakOTQ9oetBuM9ipNAC/G2K4zDHf@public.gmane.org 509-577-7732
Deirdre Saoirse Moen
2005-Oct-23 01:43 UTC
Re: Re: Newbie depot issue - Agile web development with rails book
On Oct 22, 2005, at 6:27 PM, Ezra Zygmuntowicz wrote:> On Oct 22, 2005, at 12:54 PM, Deirdre Saoirse Moen wrote: > > Thanks for fixing that bug. That one has been driving people > crazy on #rubyonrails and I was getting a little tired of telling > people about it ;-)Matt fixed it. I just helped try to diagnose. Chris2 correctly spotted the precedence error. :) -- _Deirdre http://deirdre.net
Pierre De Wilde
2005-Oct-23 14:52 UTC
Re: Newbie depot issue - Agile web development with rails book
There is a fix for issue (rails 1.14.1): http://dev.rubyonrails.com/ticket/2562
Rich Bodo
2005-Oct-24 03:26 UTC
Re: Re: Newbie depot issue - Agile web development with rails book
Wow. Thanks a lot to everyone for getting that done so quickly. I''m all up to date now. -Rich On 10/23/05, Pierre De Wilde < pierredewilde-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org> wrote:> > There is a fix for issue (rails 1.14.1): > > http://dev.rubyonrails.com/ticket/2562 > > > > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >_______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails