Displaying 2 results from an estimated 2 matches for "keyword_links".
2006 Jun 26
4
has_many :through
first, the models:
class Listing < ActiveRecord::Base
has_many :keyword_links
has_many :keywords, :through => :keyword_links, :conditions => "active =
1"
end
class Keyword < ActiveRecord::Base
has_many :keyword_links
has_many :listings, :through => :keyword_links, :conditions => "active =
1"
end
class KeywordLink < ActiveRecord::...
2006 Jul 11
0
Inplace editor oddity
I''m having issues handling output of a inplace editor function. When the
controller action is successful, it returns the new value that populates the
DIV and all is well. When it fails, it sends a js alert to the user. The
problem is, after it sends the alert (and the user clicks OK) it then spits
back the try/catch javascript code which gets inserted into the DIV. I''ve
tried