I was originally using instant rails, and decided to try installing ruby, rails, and mysql on my own. No problem with the install. I used gem install rails --include-dependencies, and got no errors. The problem seems to be with defining the scaffold method. I had no problems with this in Instant Rails, and i''m guessing this has something to do with Rails 2.0. Would the RoR gurus please lend a hand, and guide me to the light? thanks, Jason NoMethodError in AdminController#index undefined method `scaffold'' for AdminController:Class RAILS_ROOT: /Users/jason/rails/depot Application Trace | Framework Trace | Full Trace app/controllers/admin_controller.rb:2 --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
I was originally using instant rails, and decided to try installing ruby, rails, and mysql on my own. No problem with the install. I used gem install rails --include-dependencies, and got no errors. The problem seems to be with defining the scaffold method. I had no problems with this in Instant Rails, and i''m guessing this has something to do with Rails 2.0. Would the RoR gurus please lend a hand, and guide me to the light? thanks, Jason NoMethodError in AdminController#index undefined method `scaffold'' for AdminController:Class RAILS_ROOT: /Users/jason/rails/depot *Application Trace* <http://localhost:3000/admin#> | *Framework Trace*<http://localhost:3000/admin#> | *Full Trace* <http://localhost:3000/admin#> app/controllers/admin_controller.rb:2 --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
greenideas-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-Dec-09 19:49 UTC
Re: error when following Agile Web Development in RoR
If I''m not mistaken, the issue you''re having is due to the fact that scaffolding has been deprecated as of Rails 2.0. If that''s the case, it might be a bit hard for a Rails newbie to follow along with AWDwR. I''m pretty n00b-ish myself, so am I totally wrong about this? If I''m not, does anyone out there have any suggestions for alternative tutorials that don''t presuppose scaffolding? On Dec 9, 2:40 pm, "jason white" <sillymun...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I was originally using instant rails, and decided to try installing ruby, > rails, and mysql on my own. No problem with the install. I used gem install > rails --include-dependencies, and got no errors. The problem seems to be > with defining the scaffold method. I had no problems with this in Instant > Rails, and i''m guessing this has something to do with Rails 2.0. Would the > RoR gurus please lend a hand, and guide me to the light? > > thanks, > > Jason > > NoMethodError in AdminController#index > undefined method `scaffold'' for AdminController:Class > > RAILS_ROOT: /Users/jason/rails/depot > *Application Trace* <http://localhost:3000/admin#> | *Framework > Trace*<http://localhost:3000/admin#> > | *Full Trace* <http://localhost:3000/admin#> > app/controllers/admin_controller.rb:2--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On 12/8/07, jason white <sillymunkie-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > I was originally using instant rails, and decided to try installing ruby, > rails, and mysql on my own. No problem with the install. I used gem install > rails --include-dependencies, and got no errors. The problem seems to be > with defining the scaffold method. I had no problems with this in Instant > Rails, and i''m guessing this has something to do with Rails 2.0. Would the > RoR gurus please lend a hand, and guide me to the light?Yep, dynamic scaffolding has been moved out to a plugin in Rails 2.0. Your options are: 1) Switch to rails 1.2.6. This will be the easiest route if you''re still learning rails using AWDWR 2nd ed. 2) Install the scaffolding plugin with: script/plugin install scaffolding Option 1 means you are continuing to tread on the same turf expected by the book, Option 2 is but on step towards adapting your knowledge, and the books, to Rails 2.0. -- Rick DeNatale My blog on Ruby http://talklikeaduck.denhaven2.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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On 12/9/07, greenideas-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <greenideas-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > If I''m not mistaken, the issue you''re having is due to the fact that > scaffolding has been deprecated as of Rails 2.0. If that''s the case, > it might be a bit hard for a Rails newbie to follow along with AWDwR. > > I''m pretty n00b-ish myself, so am I totally wrong about this? If I''m > not, does anyone out there have any suggestions for alternative > tutorials that don''t presuppose scaffolding?I''m not sure deprecated is the right term, it (dynamic scaffolding as opposed to generated scaffolds) has been moved out of the core and into a plugin in Rails 2.0. Another thing which has been moved out of core are db adapters for commercial databases like Oracle, and SQL server, these are now separate gems. For the most part Rails 2.0 is pretty compatible with 1.2.x, however, it''s probably different enough to trip up n00bs working through things like AWDWR 2nd ed. I don''t know that there''s a really good in-depth beginners tutorial on Rails 2.0 yet. I''d probably advise folks starting out with Rails right now to install rails 1.2.x and use that while following AWDWR. If someone wants to persist in using AWDWR with Rails 2.0, one hint is to check the plugin repository at http://svn.rubyonrails.org/rails/plugins/ if you run into a missing function like this. The new book "The Rails Way" looks like a very good resource on Rails 2.0 for those with some rails experience under their belt, but it''s really not structured as a beginner''s book. -- Rick DeNatale My blog on Ruby http://talklikeaduck.denhaven2.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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
I got the AWDWR 2nd ed for Xmas. I just ran into the "undefined method `scaffold'' for AdminController:Class" error working on my "depoot" example. I am running on OS X and installed Rails 2.0.2. Someone suggested I use Rails 1.2. How do I back out 2.0 and go back to 1.2? I installed it as a "package" on OS X. It installed in /usr/local/bin. Do I just delete it? Can rails stand alone, or do I need all the other stuff? Maybe the scaffold plug in is easier. Can someone explain in detail how to add that plug in? I''m a java developer w/Unix experience, so I''m not totally clueless, but I am very new to Rails and Ruby. Thanks! --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Search for rails freeze command, use it to go back to version 1.2.6 Sent from my iPhone On Dec 26, 2007, at 6:30 PM, alfredojahn <alfredojahn-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > I got the AWDWR 2nd ed for Xmas. I just ran into the "undefined method > `scaffold'' for AdminController:Class" error working on my "depoot" > example. I am running on OS X and installed Rails 2.0.2. Someone > suggested I use Rails 1.2. How do I back out 2.0 and go back to 1.2? I > installed it as a "package" on OS X. It installed in /usr/local/bin. > Do I just delete it? Can rails stand alone, or do I need all the > other stuff? Maybe the scaffold plug in is easier. Can someone explain > in detail how to add that plug in? > > I''m a java developer w/Unix experience, so I''m not totally clueless, > but I am very new to Rails and Ruby. > > Thanks! > >--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Or just gem install rails -v=1.2.6 then specify RAILS_GEM_VERSION in your config/environment.rb. On Dec 27, 2007 4:03 PM, Bcp <bcparanj-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Search for rails freeze command, use it to go back to version 1.2.6 > > Sent from my iPhone > > On Dec 26, 2007, at 6:30 PM, alfredojahn <alfredojahn-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > I got the AWDWR 2nd ed for Xmas. I just ran into the "undefined method > > `scaffold'' for AdminController:Class" error working on my "depoot" > > example. I am running on OS X and installed Rails 2.0.2. Someone > > suggested I use Rails 1.2. How do I back out 2.0 and go back to 1.2? I > > installed it as a "package" on OS X. It installed in /usr/local/bin. > > Do I just delete it? Can rails stand alone, or do I need all the > > other stuff? Maybe the scaffold plug in is easier. Can someone explain > > in detail how to add that plug in? > > > > I''m a java developer w/Unix experience, so I''m not totally clueless, > > but I am very new to Rails and Ruby. > > > > Thanks! > > > > > > >-- Ryan Bigg http://www.frozenplague.net Feel free to add me to MSN and/or GTalk as this email. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Dec 26, 2007, at 8:30 PM, alfredojahn wrote:> > I got the AWDWR 2nd ed for Xmas. I just ran into the "undefined method > `scaffold'' for AdminController:Class" error working on my "depoot" > example. I am running on OS X and installed Rails 2.0.2. Someone > suggested I use Rails 1.2. How do I back out 2.0 and go back to 1.2? I > installed it as a "package" on OS X. It installed in /usr/local/bin. > Do I just delete it? Can rails stand alone, or do I need all the > other stuff? Maybe the scaffold plug in is easier. Can someone explain > in detail how to add that plug in? > > I''m a java developer w/Unix experience, so I''m not totally clueless, > but I am very new to Rails and Ruby.The easiest way by far is to just download Locomotive. It''s self- contained, and is removed simply by dragging its folder to the trash. You''ll be up and running in about two minutes after your download completes. For even extra easiness, download MAMP as well, and have a self- contained MySQL install as well. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Jason, I''ve found the same trouble installing ruby on rails on Windows. I''ve tried to install the ruby plugin but failed. You need to do a few little changes from the original rubyonrails.org website. Here is the installation I did: 1) install ruby from www.rubyonrails.org/down. 2) Because ruby changes your path settings, open a NEW command prompt and install gems like is told on the www.rubyonrails.org/down website. In the new command prompt type "ruby setup.rb". 3) Install the correct rails with the scaffolding. If you already installed the latest rails 2.x then uninstall it with "gem uninstall rails". Then do the rails install with version 1.2.6. Type "gem install rails --version 1.2.6 --include-dependencies" 4) Looking at all the different directories, rails creates, I need the projec manager. After trying out several I found "Intype" which is very small and just do the needful in a nice view. Its still in beta and therefore its still free. Download from: "http://intype.info/home/index.php". You can download both the editor and the project manager (I''ve used rarzilla for the rar file). 5) Download and install the freeware package of MySQL. I''m using the essentials package. You need to register though. 6) Create your work direcory (I''m using c:\webserver\test). If you want to follow the "Hello" example from the Agile book then type: "rails Hello" cd into the "Hello" directory. Open the webserver with "ruby script/server". Open the webpage with "http://localhost:3000" and check the "about your application''s environment" for the installed versions etcetera. Wish you good luck -- 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
I too had the AWDwR book 2nd Edition, P3.0 printing (use the P2.0 errata says Dave). I installed the scaffolding plugin. That step alone, didn''t help, although it may have been best to delete the depot folder and start again. But that plugin may have been a different type of scaffolding. I went back to rails version 1.2.5, that was installed when I first set up Ruby on Linix Fedora 7. I used the commands from a later post (Jan 1, by Jos Achten, step 3). In fact I had 1.2.5, and 2.0.2 installed and it asked me which I wanted to uninstall. In the end I uninstalled both and asked for "--version 1.2.5 --include- dependencies" and that did it. Then I had to delete the depot folder and restart from the beginning of that chapter. Everything worked as on pages 68 onward. Frankly, I''m impressed that it generated so much automatically. On Dec 10 2007, 9:31 am, "Rick DeNatale" <rick.denat...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On 12/8/07, jason white <sillymun...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > Your options are: > > 1) Switch to rails 1.2.6. This will be the easiest route if you''re > still learning rails using AWDWR 2nd ed. > 2) Install the scaffolding plugin with: > script/plugin install scaffolding--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
werner.schnitzler-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2008-Jan-06 21:28 UTC
Re: error when following Agile Web Development in RoR
Thanks for asking this question, and thanks for all the replies! I ran into the same issue today, and thanks to this page here, it was quick and easy to resolve. Summary: 1. I had done the standard Windows installation as described in AWDwR 2nd Edition 2. Gotten to the point in the book where I got the aforementioned error. 3. typed "gem uninstall rails" at the rails command line 4. typed "gem install rails --version 1.2.6 --include-dependencies" at the rails command line 5. renamed the old depot folder (to old_broken_depot, in my case); you could just delete the dir instead 6. recreated everything in minutes (change the D:/Rails to wherever you installed rails): D:\Rails\rails_apps\work>rails depot cd depot D:\Rails\rails_apps\work\depot>ruby script/generate model product edit D:\Rails\rails_apps\work\depot\db\migrate\001_create_products.rb add t.column :title, :string t.column :text, :text t.column :image_url, :string rake db:migrate ruby script/generate controller admin edit D:\Rails\rails_apps\work\depot\app\controllers \admin_controller.rb add scaffold :product Again, thank you for making this so easy! Werner On Jan 1, 8:07 pm, LouA <louarnoldott...-FFYn/CNdgSA@public.gmane.org> wrote:> I too had the AWDwR book 2nd Edition, P3.0 printing (use the P2.0 > errata says Dave). > I installed the scaffolding plugin. That step alone, didn''t help, > although it may have been best to delete the depot folder and start > again. But that plugin may have been a different type of scaffolding. > > I went back to rails version 1.2.5, that was installed when I first > set up Ruby on Linix Fedora 7. I used the commands from a later post > (Jan 1, by Jos Achten, step 3). In fact I had 1.2.5, and 2.0.2 > installed and it asked me which I wanted to uninstall. In the end I > uninstalled both and asked for "--version 1.2.5 --include- > dependencies" and that did it. Then I had to delete the depot folder > and restart from the beginning of that chapter. Everything worked as > on pages 68 onward. Frankly, I''m impressed that it generated so much > automatically. > > On Dec 10 2007, 9:31 am, "Rick DeNatale" <rick.denat...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > wrote: > > > > > On 12/8/07, jason white <sillymun...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > Your options are: > > > 1) Switch to rails 1.2.6. This will be the easiest route if you''re > > still learning rails using AWDWR 2nd ed. > > 2) Install the scaffolding plugin with: > > script/plugin install scaffolding- Hide quoted text - > > - Show quoted text ---~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Thank you for asking the questions, and thank you for all the replies! I just ran into the same issue and had it resolved in no time flat thanks to you! Summary: 1. I had installed Rails according to the Windows recommendation in the book 2. When I ran into the problem, I googled the error message, found this error message, and did the following: 3. typed "gem uninstall rails" at the rails command line 4. typed "gem install rails --version 1.2.6 --include-dependencies" at the rails command line 5. delete or rename the original depot folder 6. do the following to quickly get back to where you were when the error hit you: D:\Rails\rails_apps\work>rails depot cd depot D:\Rails\rails_apps\work\depot>ruby script/generate model product edit D:\Rails\rails_apps\work\depot\db\migrate\001_create_products.rb add t.column :title, :string t.column :text, :text t.column :image_url, :string rake db:migrate ruby script/generate controller admin edit D:\Rails\rails_apps\work\depot\app\controllers \admin_controller.rb add scaffold :product (change D:\Rails to where you installed rails, obviously) Thanks, Werner On Jan 1, 8:07 pm, LouA <louarnoldott...-FFYn/CNdgSA@public.gmane.org> wrote:> I too had the AWDwR book 2nd Edition, P3.0 printing (use the P2.0 > errata says Dave). > I installed the scaffolding plugin. That step alone, didn''t help, > although it may have been best to delete the depot folder and start > again. But that plugin may have been a different type of scaffolding. > > I went back to rails version 1.2.5, that was installed when I first > set up Ruby on Linix Fedora 7. I used the commands from a later post > (Jan 1, by Jos Achten, step 3). In fact I had 1.2.5, and 2.0.2 > installed and it asked me which I wanted to uninstall. In the end I > uninstalled both and asked for "--version 1.2.5 --include- > dependencies" and that did it. Then I had to delete the depot folder > and restart from the beginning of that chapter. Everything worked as > on pages 68 onward. Frankly, I''m impressed that it generated so much > automatically. > > On Dec 10 2007, 9:31 am, "Rick DeNatale" <rick.denat...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > wrote: > > > > > On 12/8/07, jason white <sillymun...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > Your options are: > > > 1) Switch to rails 1.2.6. This will be the easiest route if you''re > > still learning rails using AWDWR 2nd ed. > > 2) Install the scaffolding plugin with: > > script/plugin install scaffolding- Hide quoted text - > > - Show quoted text ---~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Just a quick correction to the last entry. When editing the migration for the products model, the line ''t.column :text, :text'' should be ''t.column :description, :text''. My validation kept failing until I realized that the ''description'' column had been incorrectly named as ''text''. Bob On Jan 6, 1:41 pm, schni <werner.schnitz...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Thank you for asking the questions, and thank you for all the replies! > > I just ran into the same issue and had it resolved in no time flat > thanks to you! > > Summary: > > 1. I had installed Rails according to the Windows recommendation in > the book > 2. When I ran into the problem, I googled the error message, found > this error message, and did the following: > 3. typed "gem uninstall rails" at the rails command line > 4. typed "gem install rails --version 1.2.6 --include-dependencies" > at the rails command line > 5. delete or rename the original depot folder > 6. do the following to quickly get back to where you were when the > error hit you: > D:\Rails\rails_apps\work>rails depot > cd depot > D:\Rails\rails_apps\work\depot>ruby script/generate model product > edit D:\Rails\rails_apps\work\depot\db\migrate\001_create_products.rb > add > t.column :title, :string > t.column :text, :text > t.column :image_url, :string > rake db:migrate > ruby script/generate controller admin > edit D:\Rails\rails_apps\work\depot\app\controllers > \admin_controller.rb > add > scaffold :product > > (change D:\Rails to where you installed rails, obviously) > > Thanks, > Werner > > On Jan 1, 8:07 pm, LouA <louarnoldott...-FFYn/CNdgSA@public.gmane.org> wrote: > > > I too had the AWDwR book 2nd Edition, P3.0 printing (use the P2.0 > > errata says Dave). > > I installed the scaffolding plugin. That step alone, didn''t help, > > although it may have been best to delete the depot folder and start > > again. But that plugin may have been a different type of scaffolding. > > > I went back to rails version 1.2.5, that was installed when I first > > set up Ruby on Linix Fedora 7. I used the commands from a later post > > (Jan 1, by Jos Achten, step 3). In fact I had 1.2.5, and 2.0.2 > > installed and it asked me which I wanted to uninstall. In the end I > > uninstalled both and asked for "--version 1.2.5 --include- > > dependencies" and that did it. Then I had to delete the depot folder > > and restart from the beginning of that chapter. Everything worked as > > on pages 68 onward. Frankly, I''m impressed that it generated so much > > automatically. > > > On Dec 10 2007, 9:31 am, "Rick DeNatale" <rick.denat...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > > wrote: > > > > On 12/8/07, jason white <sillymun...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > Your options are: > > > > 1) Switch to rails 1.2.6. This will be the easiest route if you''re > > > still learning rails using AWDWR 2nd ed. > > > 2) Install the scaffolding plugin with: > > > script/plugin install scaffolding- Hide quoted text - > > > - Show quoted text ---~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
If you''re following the AWDWR book using Rails 2 you will hit other problems - for example when it talks about pagination that has been removed from Rails 2 so it won''t work as expected. While running through the Depot for learning I''d stick with 1.2.6 and then start develping on 1.2.6 so you can rely on the book. Only make the change to 2.0 when you''re comfortable with the basics. -- 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
You can install "classic pagination" if that''s an issue. http://railscasts.com/episodes/51 On Thu, 2008-02-21 at 23:46 +0100, John Lane wrote:> If you''re following the AWDWR book using Rails 2 you will hit other > problems - for example when it talks about pagination that has been > removed from Rails 2 so it won''t work as expected. While running through > the Depot for learning I''d stick with 1.2.6 and then start develping on > 1.2.6 so you can rely on the book. Only make the change to 2.0 when > you''re comfortable with the basics. >--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On the topic of scaffolding--I''ve found this helpful: http://fairleads.blogspot.com/2007/12/rails-20-and-scaffolding-step-by-step.html On Feb 21, 2:55 pm, Paul Hoehne <phoe...-CEHHuaDLTIwbPXlZ+wYYRg@public.gmane.org> wrote:> You can install "classic pagination" if that''s an issue.http://railscasts.com/episodes/51 > > On Thu, 2008-02-21 at 23:46 +0100, John Lane wrote: > > If you''re following the AWDWR book using Rails 2 you will hit other > > problems - for example when it talks about pagination that has been > > removed from Rails 2 so it won''t work as expected. While running through > > the Depot for learning I''d stick with 1.2.6 and then start develping on > > 1.2.6 so you can rely on the book. Only make the change to 2.0 when > > you''re comfortable with the basics.--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
I tried installing the scaffolding plugin as suggested, and now I get the following error: undefined method `paginate'' for #<AdminController:0x3216af8> RAILS_ROOT: C:/InstantRails-2.0-win/rails_apps/depot Do I need another plugin? Thanks, Jeff --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
rail_passenger_beginners_class
2008-Mar-31 21:50 UTC
Re: error when following Agile Web Development in RoR
I originally got the <b>undefined method `scaffold'' for AdminController:Class</b> then after installing pagination I got <b>undefined method `paginate'' for #<AdminController:...</b> How I got around was this: 1) check all installed gems on your machine <b>gem list --local </b> check the rails versions installed (in my case, this was 2.0.2, 1.2.6, 1.2.5, 1.2.3) 2) uninstall version 2.0.2, using this command: <b>sudo gem uninstall -v=2.0.2 rails</b> --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
I admit, I''m a Rails noob and have been following the instructions in AWDwR edition *3*, they haven''t mentioned lack of support for this, so you kind of get stuck on page 76. Is it worth rolling back my version of rails do you think, or is scaffolding something I can live/learn without ... cheers Tim On Apr 1, 7:50 am, rail_passenger_beginners_class <ttreitlin...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I originally got the <b>undefined method `scaffold'' for > AdminController:Class</b> > then after installing pagination I got <b>undefined method `paginate'' > for #<AdminController:...</b> > > How I got around was this: > 1) check all installed gems on your machine > <b>gem list --local </b> > check the rails versions installed (in my case, this was 2.0.2, 1.2.6, > 1.2.5, 1.2.3) > > 2) uninstall version 2.0.2, using this command: > <b>sudo gem uninstall -v=2.0.2 rails</b>--~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Ryan Bigg (Radar)
2008-Apr-28 08:14 UTC
Re: error when following Agile Web Development in RoR
Scaffolding is definitely something you can live and learn without. On Mon, Apr 28, 2008 at 5:22 PM, 90kts <koops-wvPrmorOTxQAvxtiuMwx3w@public.gmane.org> wrote:> > > I admit, I''m a Rails noob and have been following the instructions in > AWDwR edition *3*, they haven''t mentioned lack of support for this, so > you kind of get stuck on page 76. Is it worth rolling back my version > of rails do you think, or is scaffolding something I can live/learn > without ... > > cheers > Tim > > On Apr 1, 7:50 am, rail_passenger_beginners_class > <ttreitlin...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > I originally got the <b>undefined method `scaffold'' for > > AdminController:Class</b> > > then after installing pagination I got <b>undefined method `paginate'' > > for #<AdminController:...</b> > > > > How I got around was this: > > 1) check all installed gems on your machine > > <b>gem list --local </b> > > check the rails versions installed (in my case, this was 2.0.2, 1.2.6, > > 1.2.5, 1.2.3) > > > > 2) uninstall version 2.0.2, using this command: > > <b>sudo gem uninstall -v=2.0.2 rails</b> > > > >-- Ryan Bigg http://www.frozenplague.net Feel free to add me to MSN and/or GTalk as this email. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Is there any place where it is summarized the changes to make to Awdwr''s depot exercise if we decide to use RoR 2.0? It doesn''t make sens to me to learn an old technology when I''m not gonna stick with it anyways... thanks --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Yep - get the third edition ( currently in Beta ) http://pragprog.com/titles/rails3/agile-web-development-with-rails-third-edition HTH - Dave On Jun 20, 1:05 pm, c-a <charlesantoi...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Is there any place where it is summarized the changes to make to > Awdwr''s depot exercise if we decide to use RoR 2.0? > It doesn''t make sens to me to learn an old technology when I''m not > gonna stick with it anyways... > > thanks--~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---