I'm trying to run a story for sample caboose that I created. <br>I haven't changed any of the sample application code.<br><br>When I try to do the following:<br><br>When "creating a new asset named", File.open
('/Users/multimedia/desktop/sample/assets/bridge.jpg') do |path|<br> post_via_redirect "/users/#{@user.login}/assets", :asset => { :uploaded_data => path }<br>end<br><br>Processing UserAssetsController#create (for
<a href="http://127.0.0.1">127.0.0.1</a> at 2007-09-26 14:49:10) [POST]<br> Session ID: d7b173a79b7f1382dc3b037c73608233<br> Parameters: {"action"=>"create", "controller"=>"user_assets", "user_id"=>"Andrew", "asset"=>{"uploaded_data"=>"#<File:0x326eaf0>"}}
<br> User Load (1) (0.002464) SELECT * FROM users WHERE (users.`id` = 20) LIMIT 1<br> User Load (1) (0.002417) SELECT * FROM users WHERE (users.`login` = 'Andrew') LIMIT 1<br> Asset Columns (12) (0.004395) SHOW FIELDS FROM assets
<br><br><br>Processing UserAssetsController#create (for <a href="http://127.0.0.1">127.0.0.1</a> at 2007-09-26 14:49:11) [POST]<br> Session ID: d7b173a79b7f1382dc3b037c73608233<br> Parameters: {"action"=>"create", "controller"=>"user_assets", "user_id"=>"Andrew", "asset"=>{"uploaded_data"=>"#<File:0x326eaf0>"}}
<br>undefined method `content_type' for "#<File:0x326eaf0>":String<br><br>If I launch the console and try the following line:<br><br>app.post "users/admin/assets", :asset => { :uploaded_data =>
File.open('/Users/multimedia/desktop/sample/assets/bridge.jpg') }<br><br>I get:<br><br>Processing UserAssetsController#create (for <a href="http://127.0.0.1">127.0.0.1</a> at 2007-09-25 23:47:36) [POST]<br> Session ID: e23542c4871504f64044a25d8d49871b
<br> Parameters: {"action"=>"create", "controller"=>"user_assets", "user_id"=>"admin", "asset"=>{"uploaded_data"=>"#<File:0x36a68ac>"}}
<br><br>ArgumentError (A copy of AuthenticatedSystem has been removed from the module tree but is still active!):<br><br>Any ideas?<br>