Marcelo de Moraes Serpa
2007-Nov-20 19:09 UTC
administration of RESTFul-based entities (admin namespace)
Hello list, I''m building a youtube-like application in Rails. I''m basing it on the wootube open source project (kudos to wootube developers!). I''m not into the RESTful model yet but I want to avoid modifying the architecture borrowed from wootube. All my controllers are rpc/rest mixed and the videos_controller, based on the one from wootube is RESTful. I really like the idea of separating the admin side from the front-end of the website (a la Django). This model fits nicely into client''s minds and content creators for the website and IMHO is easier for code maintenance since I don''t need myriad of ifs inside the view as I have a view for admin actions and another view for front-end actions. For each of my controllers, I have one that has actions for the "front-end" and another one inside an admin subdirectory (namespace) for administration actions. I would like to follow this admin model for the RESTful controller too. I''m not sure on how I would do this and if it is viable. Maybe I should not use this model on RESTful controllers? Any help and directions would be greatly appreciated, Thanks, Marcelo. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Marcelo de Moraes Serpa
2007-Nov-21 12:08 UTC
Re: administration of RESTFul-based entities (admin namespace)
No ideas? On Nov 20, 2007 5:09 PM, Marcelo de Moraes Serpa <celoserpa-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hello list, > > I''m building a youtube-like application in Rails. I''m basing it on the > wootube open source project (kudos to wootube developers!). > > I''m not into the RESTful model yet but I want to avoid modifying the > architecture borrowed from wootube. All my controllers are rpc/rest > mixed and the videos_controller, based on the one from wootube is > RESTful. I really like the idea of separating the admin side from the > front-end of the website (a la Django). This model fits nicely into > client''s minds and content creators for the website and IMHO is easier > for code maintenance since I don''t need myriad of ifs inside the view > as I have a view for admin actions and another view for front-end > actions. For each of my controllers, I have one that has actions for > the "front-end" and another one inside an admin subdirectory > (namespace) for administration actions. > > I would like to follow this admin model for the RESTful controller > too. I''m not sure on how I would do this and if it is viable. Maybe I > should not use this model on RESTful controllers? > > Any help and directions would be greatly appreciated, > > Thanks, > > Marcelo. >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---