I\'m using default Zend_Rest_Route to generate Rest routes: So given I just put resources.router.routes.rest.type = Zend_Rest_Route inside application.ini and now have Rest Routes for users
I think I am thinking about routing all wrong. I have a very simple, two model set-up: Product and Photo. 开发者_开发技巧Product has_many :photos, and Photo belongs_to :product.
I have a rails 3 application very similar to the one in Railscasts episode #229 the only difference is that in my code Articles is called Posts and I have a nested route:
I have 2 models - User and Activity - which are related by a has_many :through using the UserActivity model. A User can either \"want\" or \"done\" an activity, which creates a UserActivity record and
I have a comment form (in comments/_form.html.erb) that I use in my other controllers (posts and tags).
Right now I\'m building a project management app in rails, here is some background info: Right now i have 2 models, one is User and the other one is Client. Clients and Users have a one-to-one relati
I\'ve got something like this in my routes.rb: map.resources :retailers, :has_one => [:invite_code]
As I am learning more about rails, and breaking my design thinking from ASP.Net days, I was considering a scenario this morning but did not know if it was possible to do.