-Java版 Ruby onrails

#contents

*実行環境 [#x8085fc5]

結構メモリを使うのでLinuxの1GB程度のマシンだと厳しい。

*インストール [#yab35b7e]

*ディレクトリ構成 [#a8ee0949]

 root
   grails-app

**構成要素 [#o7dcd7b4]

+Controller
+Service(Logic層)
+Domain Class(ORマッピング)
+View(GSP)

*各モジュール等の作成 [#a1624387]

**アプリケーションの作成 [#afad58ff]

**コントローラーの作成 [#la2ec2f9]


*Scaffold [#sdc8d42a]

+ドメインクラスを作成
+Scafffoldを作成

 grails> create-domain-class  book
 | Created grails-app/domain/sample/Book.groovy
 | Created src/test/groovy/sample/BookSpec.groov
 grails> generate-all sample.Book
 | Rendered template Spec.groovy to destination src\test\groovy\sample\BookControllerSpec.groovy
 | Rendered template edit.gsp to destination grails-app\views\book\edit.gsp
 | Rendered template create.gsp to destination grails-app\views\book\create.gsp
 | Rendered template index.gsp to destination grails-app\views\book\index.gsp
 | Rendered template show.gsp to destination grails-app\views\book\show.gsp
 | Scaffolding completed for grails-app\domain\sample\Book.groovy


#counter


トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS