Displaying 2 results from an estimated 2 matches for "display_ad".
Did you mean:
display_3d
2006 Feb 22
2
Using ez_where
Hi All,
I am trying to pass values to ez_where to construct my conditions. I
need
to know how the params need to be formated for ez_where.
My search class looks like this:
def search
@display_ad = DisplayAd.new(params[:display_ad])
cond = Caboose::EZ::Condition.new do
pub_date == ''@display_ad.pub_date''
io_number =~ ''@display_ad.io_number''
end
puts @display_ad.pub_date
puts @display_ad.io_number
puts cond.to_sql...
2006 Feb 19
0
newbe: observer setup
...ave following the Prag Rails book but think
I have something missing. I am trying a simple puts to see
if the observer is working, but getting nothing on the console.
Here is what I have. I don''t get any errors.
Thanks for any suggestions/references to debugging.
Dave
The two models:
display_ad.rd
require ''observer''
class DisplayAd < ActiveRecord::Base
include Observable
has_many :activities
#def after_update
# puts "*************Updated display ad*************"
#end
end
display_ad_observer.rd
class DisplayAdObserver < ActiveRecord::...