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
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
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
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
4 matches
Mail list logo