search for: bac6cc45

Displaying 1 result from an estimated 1 matches for "bac6cc45".

2006 Feb 13
4
activerecord << operator
Hello, I am new here and actually I am writing my first RoR app. My question is: -------- class Topic < ActiveRecord::Base has_many :messages end class Message < ActiveRecord::Base belongs_to :topic end class ForumController < ApplicationController def post message = Message.new(params[:message]) @topic = Topic.find(params[:id]) @topic.messages