Displaying 2 results from an estimated 2 matches for "keyword_link".
Did you mean:
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
...@link.save
render :text => help.number_to_currency(@link.max_bid)
end
#in view
<%= in_place_editor ''bid_'' + keyword.id.to_s,
:url => { :controller => ''keyword'', :action =>
''set_bid'', :id => keyword.keyword_link.id } -%>
thanks,
ed
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060711/b52a4187/attachment.html