Probably something obvious that im missing but since implementing the plugin
version of upload progress i''m receiving the error beneath, I have
included
the relevant controllers refered to by the error. Any help would be much
appreciated;
NoMethodError (undefined method `file_name_temp='' for
#<Script:0x55f9d90>):
F:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/base.rb:1789:in
`method_missing''
F:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/base.rb:1510:in
`send''
F:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/base.rb:1510:in
`attributes=''
F:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/base.rb:1509:in
`each''
F:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/base.rb:1509:in
`attributes=''
F:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/base.rb:1354:in
`initialize_without_callbacks''
F:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/callbacks.rb:236:in
`initialize''
/app/controllers/scripts_controller.rb:6:in `new''
/app/controllers/scripts_controller.rb:6:in `upload''
F:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/base.rb:910:in
`send''
F:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/base.rb:910:in
`perform_action_without_filters''
F:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/filters.rb:368:in
`perform_action_without_benchmark''
F:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/benchmarking.rb:69:in
`perform_action_without_rescue''
F:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/benchmarking.rb:69:in
`measure''
F:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/benchmarking.rb:69:in
`perform_action_without_rescue''
F:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/rescue.rb:82:in
`perform_action''
F:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/base.rb:381:in
`send''
F:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/base.rb:381:in
`process_without_filters''
F:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/filters.rb:377:in
`process_without_session_management_support''
F:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/session_management.rb:117:in
`process''
F:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/dispatcher.rb:38:in
`dispatch''
F:/work/bdhfilms/public/dispatch.cgi:10
def upload
@script = Script.new(params[:script])
if @script.save
redirect_to "/home"
else
render :text => ''failed to save''
#render :action => ''new''
end
end
//////
def new
@scripts = Script.new
end
/////
<%= form_tag_with_upload_progress({:action =>
''upload''},{:begin =>
visual_effect(:opacity,''upload_holder''),:finish =>
visual_effect(:opacity,''upload_holder'', :to=> 0)}) %>
<%= file_column_field "script",
"file_name",{:class=> ''file hidden'',
:noscript => true} %>
<%= submit_tag "Upload" , {:disabled =>
''true'', :id => ''upload''}%>
<div id="upload_holder"><%= upload_status_tag
%></div>
<%= end_form_tag %>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://wrath.rubyonrails.org/pipermail/rails/attachments/20060618/66b87e06/attachment.html