片山よしくにと申します。
ご質問の件ですが、コントローラを機能別に分けたいときは私は以下のように
しています。
ruby script/generate controller group/test
このようにすると、
create app/controllers/group
create app/helpers/group
create app/views/group/test
create test/functional/group
create test/unit/helpers/group
create app/controllers/group/test_controller.rb
create test/functional/group/test_controller_test.rb
create app/helpers/group/test_helper.rb
create test/unit/helpers/group/test_helper_test.rb
こんな感じで、「group」というフォルダの下に該当のコントローラやビュー
などが作成されます。
アクセスするためのURLは
http://xxx.xxx.xx/group/test
のようなURLになります。
もしかすると、railsのソースツリーを
app/group/controllers/test.rb
app/group/views/test.htnl.erb
のような形にしたいのかもしれませんが、上記のようにする場合の方法は
私は存じません。
ご参考になればと思います。
よろしくお願いします。
2009年9月16日10:15 kiyo <
kiyo...@f4.dion.ne.jp>:
--
==♪==♯==♪==♯==♪==♯==♪==♯==♪==♯==♪==
片山 嘉國 (Yoshikuni Katayama)
有限会社ライトハウス
URL:
http://www.l-house.net/
E-Mail:kata...@l-house.net
eNote-無料で使える日報管理&グループウェア
まずは覗いてみて →
http://www.enote.jp/
==♭==♪==♭==♪==♭==♪==♭==♪==♭==♪==♭==