On Thu, Oct 11, 2012 at 4:23 AM, roelof <
rwo...@hotmail.com> wrote:
> class Berichten < ActiveRecord::Base
> attr_accessible :bericht, :user
> belongs_to :user
> belongs_to :Category
"Category" there should not be capitalized
> end
> 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/<categoryname>/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".
--
Hassan Schroeder ------------------------
hassan.s...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan