search for: max_bid

Displaying 2 results from an estimated 2 matches for "max_bid".

Did you mean: map_uid
2006 Jul 11
0
Inplace editor oddity
...alue].gsub!(/[^\d\.]/, '''') if params[:value].to_f == 0.0 render :update do |page| page.alert(''You must enter a dollar amount, e.g. 23.22, 0.23'') end return false end @link = KeywordLink.find(params[:id]) previous = @link.max_bid @link.max_bid = params[:value] @link.max_bid = previous unless @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...
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::Base belongs_to