search for: find_by_school_id

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

2007 Oct 15
5
Very simple code throwing "uninitialized constant" error
This code works on an older version of Ruby and Rails but not with Ruby 1.8.6 and Rails 1.2.5. The code is so simple that I can''t figure out where the problem is. profile_controller.rb class ProfileController < ApplicationController def show @profile = Profile.find_by_school_id(params[:id]) end end ----------------------------------------------------------- profile.rb class Profile < ActiveRecord::Base belongs_to :school belongs_to :profile_type translates :text #<--- I''m using the Globalize plugin end ---------------------------------------------...