Displaying 3 results from an estimated 3 matches for "assetid".
Did you mean:
  asset_id
  
2007 Jun 26
4
Can I stub a method on a belongs_to association:
...re(:each) do
    @asset = assets(:test_asset)
    @mock_hook = mock("hook")
    @asset.video.stub!(:hook).and_return @mock_hook   # error occurs here
  end
  it "should call the delete hook" do
    @mock_hook.should_receive(:update).with("test_video", :asset_id =>
@assetid, :asset_action => "destroy")
    @asset.destroy
  end
end
NameError in ''Asset when destroyed should call the delete hook''
undefined method `hook'' for class
`ActiveRecord::Associations::BelongsToAssociation''
I''m not sure why I can''...
2009 Oct 22
1
Help regarding removing Inf from dataframe, creating new dataframe with selected variables, count function
...f dates, the security is present, I want to read latest status of market cap.
4. Change in market cap represent by 0/1 so even if market cap status changed once, take value 1.
5. create output file containing some already existed variables and newly created variables.
following is sample data:
Date	AssetId	Name	Country	Liquidity	MCName
2006_12_31	322833	YPF 'D'	Argentina	1	LC
2006_12_31	321948	TELECOM ARGN.'B'	Argentina	1	LC
2006_12_31	320205	TELEFONICA DE ARGN.'B'	Argentina	1	LC
2007_12_31	874140	YPF 'D'	Argentina	1	LC
2006_12_31	281678	PETROBRAS ENGA.PPC.'B'...
2010 Mar 25
4
Convert number to Date
Hello, I have a date value in excel: 1/4/2010 which in number format gives me
40182. When I read this with read.xls from R I get same 40182 so what I do
is that I use the as.Date() function but here is what the as.Date() function
returns me:
> as.Date(40182)
[1] "2080-01-06"
Why don't I get the same thing as in excel?
Thanks!
-----
Anna Lippel
-- 
View this message in context: