It depends. I typically just have controllers/some_controller.rb
controllers/some_other_controller.rb. Some people desire to sandbox
facebook functionality to a specific portion of their site. In that
case you would probably want to use a namespace for your controllers.
Your routes without namespaces would look like:
map.resources :some_controller
map.resources :some_other_controller
Your routes with namespaces would look like:
map.namespace(:your_namespace) do |your_namespace|
your_namespace.resources :some_controller
your_namespace.resources :some_other_controller
end
I haven''t had a need to create a namespace for any of my models.
Michael Niessner
On Mar 2, 2008, at 12:50 AM, S. Woodside wrote:
> Hi bit of a newbie question here.
>
> What is the "right" way to do have multiple controllers in my
> facebooker app. Should I create a "namespace" for my models? e.g.
> controllers/facebook/index.fbml.erb would become controllers/facebook/
> section1/index.fbml.erb etc.
>
> If I do that, what other changes do I need to make, e.g. to my routes?
>
> And then, let''s say I''m doing an fb:action or a link_to,
what changes
> do I need to make there?
>
> --simon
>
> --
> http://simonwoodside.com
>
> _______________________________________________
> Facebooker-talk mailing list
> Facebooker-talk at rubyforge.org
> http://rubyforge.org/mailman/listinfo/facebooker-talk