On Thu, Oct 11, 2012 at 4:23 AM, roelof <[email protected]> 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 ------------------------ [email protected]
http://about.me/hassanschroeder
twitter: @hassan

-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to