What I wonder is what the right url is when I want to place a new bericht
into a specific category.
Is it localhost:3000//bericht/new ?
Why don’t you run rake routes and see the URLs that have been
automatically defined by your relationships? You might also want to
read the comments in config/routes.rb about “nested resources”.
class User < ActiveRecord::Base
into a specific category.
Is it localhost:3000//bericht/new ?
It depends on how you setup your resource and how you setup your
controller. The model does not interact with the view and the view
should not interact with the model directly under any circumstance,
the controller hits up the model and then setups the view.