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/.
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 rubyonra...@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-ta...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
script/plugin install scaffolding
However, that tutorial seems pretty out of date. You might want to
find a newer one.
-Ethan
Yeah i installed --independencies
still it wont work.
It says "ruby: No such file or directory -- script/plugin (LoadError)"
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
mar...@marnen.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....."
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
mar...@marnen.org