[Rails] Re: beginner problem
Aldric Giacomoni wrote:
> Guille San wrote:
>> Hi,
>> I´m starting using rails. I have one problem. I create a controller, the
>> code is the next:
>> class PlayersController < ApplicationController
>> scaffold:player
>> end
>
> "scaffold" is something that you use on the command line, not within
> your code.
> Delete the file in which your controller is.
> Go on the command line, in the root of your rails application.
> Type "ruby script/generate scaffold player name:string".
Scaffold was a controller method in Rails 1.x. If you are following a
tutorial that is having you use it, then you are following a seriously
outdated tutorial.
Best,
--
Marnen Laibow-Koser
http://www.marnen.org
marnen@marnen.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@googlegroups.com.
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.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home