Displaying 3 results from an estimated 3 matches for "sale_price".
2006 Jun 01
1
Automatted Getter/Setter
Hey..
So I have a model that has a lot of number fields. Each of these go
through a process when read in and read out to add/remove commas
(between every three numbers) to make them more readable.
The getter I currently have is like this:
def sale_price
Listing.insert_commas(read_attribte (:sale_price))
end
and the setter is:
def sale_price=(price)
write_attribute(:saleprice, Listing.remove_commas(price))
end
The trouble is there is at least 5 other fields that need the same thing
done for them (and most likely more will be added in time)....
2010 Jan 25
4
R Memory Problem
...ng 64bit
machine using 4GB RAM .I'm running predictive analytics using R and to
calibrate my model i used to adjust the variables used in the model and the
problem happens here.R just runs out of memory .I tried garbage cleaning
also.
data
APN condition quality site_zip sale_date sale_price
estimate
1.1-1 good good 10201 1/1/07 $234,000
$254,000
1.5-1 average good 10201 1/1/08 $254,000
$276,000
1.6-1 poor poor 10202 1/1/06 $192,000
$199,000
1.7-1 good good...
2011 Sep 07
4
jquery and ajax query in rails 3
hi people
I don''t know much about ajax - jquery. And right now I need to use
some functionality with them.
In a form (sales model) I have the following code:
<div>
<%= f.label :product_id, "Product" %>
<%= f.collection_select( :product_id, Product.all, :id, :name,
options={} ) %>
</div>
<div>
<%= f.label :price,