[Rails] what;s the right url in this case

2012-10-11 Thread roelof
Hello, I have this models class Berichten ActiveRecord::Base attr_accessible :bericht, :user belongs_to :user belongs_to :Category end class User ActiveRecord::Base attr_accessible :email, :name has_many :berichten end class Category ActiveRecord::Base attr_accessible :id

Re: [Rails] what;s the right url in this case

2012-10-11 Thread Hassan Schroeder
On Thu, Oct 11, 2012 at 4:23 AM, roelof rwob...@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

Re: [Rails] what;s the right url in this case

2012-10-11 Thread Jordon Bedwell
On Thu, Oct 11, 2012 at 6:23 AM, roelof rwob...@hotmail.com wrote: Hello, I have this models class Berichten ActiveRecord::Base attr_accessible :bericht, :user belongs_to :user belongs_to :Category end class User ActiveRecord::Base attr_accessible :email, :name has_many

Re: [Rails] what;s the right url in this case

2012-10-11 Thread roelof
The controllers looks now like this : class BerichtenController ApplicationController def new end def index @berichten = Berichten.all end def delete end def show end end class And the other controller: lass UsersController ApplicationController def new end def