[LRUG] Embarrassing Newbie question
Pratik Naik
pratik at thinkwares.com
Mon Aug 13 18:41:41 PDT 2007
Keeping it really short :
- No. There is no 1:1 mapping of controllers and models. If there was,
it wouldn't be an MVC framework.
- RESTful != CRUD. Always remember that.
- If you have 20 models and you gonna be doing a lot of CRUD stuff,
save some time and check out
http://hamptoncatlin.com/2007/make_resourceful-0-1-0-release
-Pratik
On 8/13/07, Ben Rooney <ben at benrooney.com> wrote:
> Is there a 1:1 relationship between controllers and models? ie does
> every model have an associated controller, or can one controller
> control more than one model.
>
> I have an app I would like to build in RoR (quite heavy on Ajax and I
> don't fancy doing AJAX in PHP ...). It has about 20 or so models -
> the bulk of the work is going to be CRUD but there will be some cases
> of more complexity. So for example if I had a User class, and an
> organisation class which are going to be predominantly CRUD ops,
> could one controller do that, or do I need one for each?
>
> Apols if this is the stupidest question ever asked...
>
> _______________________________________________
> Chat mailing list
> Chat at lists.lrug.org
> http://lists.lrug.org/listinfo.cgi/chat-lrug.org
>
--
http://m.onkey.org
More information about the Chat
mailing list