質問文中で具体的にエラー内容が提示されていないので、こちらの勝手な想像ですが、
$ rails new bookapp $ cd bookapp/ $ rails generate scaffold bookapp isbn:string titile:string price:integer publish:string published:date cd:boolean
と実行したら、
The name 'Bookapp' is either already used in your application or reserved by Ruby on Rails. Please choose an alternative and run this generator again.
というエラーが出たのでしょうか?
もし、そうなら
$ rails generate scaffold book isbn:string titile:string price:integer publish:string published:date cd:boolean
のようにするとよいとおいます。
アプリ名とモデル名が同じだと問題がおこる気がします。
上の解決例ではモデル名を bookapp -> book に変更して scaffold を実行しています。
あるいはアプリ名の方を別の名前にすると解決すると思います。
実行した事 と その結果 を質問文で明示していただけると、回答がつきやすくなると思います。
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2014/08/15 08:21