I am following video tutorials for rails. I am a part where i am suppose to write "scaffold :album" inside admin_controller. "class AdminController < ApplicationController scaffold :album end " I did that but i get this error "undefined method `scaffold'' for AdminController:Class" What is going on? i am running rails 2.3.5 thanks -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Scaffolding was pulled out into a plugin in Rails 2.0 In order to follow that tutorial, you''ll need to install it: script/plugin install scaffolding However, that tutorial seems pretty out of date. You might want to find a newer one. -Ethan On Jan 27, 10:09 pm, Afg Afg <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> I am following video tutorials for rails. > > I am a part where i am suppose to write "scaffold :album" inside > admin_controller. > > "class AdminController < ApplicationController > > scaffold :album > end > " > > I did that but i get this error "undefined method `scaffold'' for > AdminController:Class" > > What is going on? i am running rails 2.3.5 > > thanks > -- > Posted viahttp://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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@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.
On Wed, Jan 27, 2010 at 11:09 PM, Afg Afg <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> I am following video tutorials for rails. > > I am a part where i am suppose to write "scaffold :album" inside > admin_controller. > > "class AdminController < ApplicationController > > scaffold :album > end > " > > I did that but i get this error "undefined method `scaffold'' for > AdminController:Class" > > What is going on? i am running rails 2.3.5 > > thanks >Hi, I would recommend using the following link to learn Rails: http://guides.rubyonrails.org Good luck, -Conrad> -- > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Is the tutorial telling you to put that code in the AdminController? It is my guess that the code is based on a plugin or gem. Have you included all the proper plugins and gems? -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Sean Six wrote:> Is the tutorial telling you to put that code in the AdminController? It > is my guess that the code is based on a plugin or gem. Have you > included all the proper plugins and gems?Yeah i installed --independencies still it wont work. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Ethan Gunderson wrote:> Scaffolding was pulled out into a plugin in Rails 2.0 > In order to follow that tutorial, you''ll need to install it: > > script/plugin install scaffolding > > However, that tutorial seems pretty out of date. You might want to > find a newer one. > > -EthanIt says "ruby: No such file or directory -- script/plugin (LoadError)" -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Sean Six wrote:> Is the tutorial telling you to put that code in the AdminController? It > is my guess that the code is based on a plugin or gem. Have you > included all the proper plugins and gems?Scaffold (in the controller) used to be part of Rails. It was removed in 2.0. The original poster should find a current tutorial! Best, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Are you inside of your project directory when running that command? On Thu, Jan 28, 2010 at 5:55 PM, Afg Afg <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Ethan Gunderson wrote: > > Scaffolding was pulled out into a plugin in Rails 2.0 > > In order to follow that tutorial, you''ll need to install it: > > > > script/plugin install scaffolding > > > > However, that tutorial seems pretty out of date. You might want to > > find a newer one. > > > > -Ethan > > It says "ruby: No such file or directory -- script/plugin (LoadError)" > -- > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Marnen Laibow-Koser wrote:> Sean Six wrote: >> Is the tutorial telling you to put that code in the AdminController? It >> is my guess that the code is based on a plugin or gem. Have you >> included all the proper plugins and gems? > > Scaffold (in the controller) used to be part of Rails. It was removed > in 2.0. The original poster should find a current tutorial! > > Best, > -- > Marnen Laibow-Koser > http://www.marnen.org > marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.orgyeah i guess so and i cant find a way to get around it. I am a visual learner and these videos help me understand better. He makes the databases manually in cmd. then db:migrate and then he goes to the admin_controller.rb and put "scaffold :albums" and everything works. when i do the same thing i get "unexpected action view....." -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Can you not install the plugin for some reason? Alternatively, you could always install the version of rails that he is using, which must be a pre 2.0 rails. On Fri, Jan 29, 2010 at 12:14 PM, Afg Afg <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Marnen Laibow-Koser wrote: > > Sean Six wrote: > >> Is the tutorial telling you to put that code in the AdminController? It > >> is my guess that the code is based on a plugin or gem. Have you > >> included all the proper plugins and gems? > > > > Scaffold (in the controller) used to be part of Rails. It was removed > > in 2.0. The original poster should find a current tutorial! > > > > Best, > > -- > > Marnen Laibow-Koser > > http://www.marnen.org > > marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org > > yeah i guess so and i cant find a way to get around it. I am a visual > learner and these videos help me understand better. > > He makes the databases manually in cmd. then db:migrate and then he goes > to the admin_controller.rb and put "scaffold :albums" and everything > works. when i do the same thing i get "unexpected action view....." > -- > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Ethan Gunderson wrote:> Can you not install the plugin for some reason?Bad idea. Scaffolding is best avoided.> Alternatively, you could > always install the version of rails that he is using, which must be a > pre > 2.0 rails.No, please don''t do that. Learn the current version of Rails. The Rails Guides and Railscasts should get you started. Best, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
I entirely agree, and we''ve all recommended the same, but he seems pretty set on using these certain tutorials :) On Fri, Jan 29, 2010 at 2:02 PM, Marnen Laibow-Koser <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org>wrote:> Ethan Gunderson wrote: > > Can you not install the plugin for some reason? > > Bad idea. Scaffolding is best avoided. > > > Alternatively, you could > > always install the version of rails that he is using, which must be a > > pre > > 2.0 rails. > > No, please don''t do that. Learn the current version of Rails. The > Rails Guides and Railscasts should get you started. > > > Best, > -- > Marnen Laibow-Koser > http://www.marnen.org > marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org > -- > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.