NoMethodError in TsgController#create_document

granddetourfannieInternet and Web Development

Feb 2, 2013 (4 years and 7 months ago)

96 views

NoMethodError in TsgController#create_document

undefined method `original_filename' for "":String

RAILS_ROOT: ../config/..


Application Trace | Framework Trace | Full Trace

#{RAILS_ROOT}/app/controllers/tsg_controller.rb:84:in `create_document'

/usr/lib/
ruby/gems/1.8/gems/actionpack
-
1.13.3/lib/action_controller/base.rb:1095:in
`send'

/usr/lib/ruby/gems/1.8/gems/actionpack
-
1.13.3/lib/action_controller/base.rb:1095:in
`perform_action_without_filters'

/usr/lib/ruby/gems/1.8/gems/actionpack
-
1.13.3/lib/action_
controller/filters.rb:632:in
`call_filter'

/usr/lib/ruby/gems/1.8/gems/actionpack
-
1.13.3/lib/action_controller/filters.rb:638:in
`call_filter'

/usr/lib/ruby/gems/1.8/gems/actionpack
-
1.13.3/lib/action_controller/filters.rb:438:in
`call'

/usr/lib/ruby/gems/1
.8/gems/actionpack
-
1.13.3/lib/action_controller/filters.rb:637:in
`call_filter'

/usr/lib/ruby/gems/1.8/gems/actionpack
-
1.13.3/lib/action_controller/filters.rb:638:in
`call_filter'

/usr/lib/ruby/gems/1.8/gems/actionpack
-
1.13.3/lib/action_controller/filters.
rb:438:in
`call'

/usr/lib/ruby/gems/1.8/gems/actionpack
-
1.13.3/lib/action_controller/filters.rb:637:in
`call_filter'

/usr/lib/ruby/gems/1.8/gems/actionpack
-
1.13.3/lib/action_controller/filters.rb:638:in
`call_filter'

/usr/lib/ruby/gems/1.8/gems/actionpack
-
1.13.3/lib/action_controller/filters.rb:438:in
`call'

/usr/lib/ruby/gems/1.8/gems/actionpack
-
1.13.3/lib/action_controller/filters.rb:637:in
`call_filter'

/usr/lib/ruby/gems/1.8/gems/actionpack
-
1.13.3/lib/action_controller/filters.rb:619:in
`perform_action_
without_benchmark'

/usr/lib/ruby/gems/1.8/gems/actionpack
-
1.13.3/lib/action_controller/benchmarking.rb:66:in `perform_action_without_rescue'

/usr/lib/ruby/1.8/benchmark.rb:293:in `measure'

/usr/lib/ruby/gems/1.8/gems/actionpack
-
1.13.3/lib/action_controller
/benchmarking.rb:66:in `perform_action_without_rescue'

/usr/lib/ruby/gems/1.8/gems/actionpack
-
1.13.3/lib/action_controller/rescue.rb:83:in
`perform_action'

/usr/lib/ruby/gems/1.8/gems/actionpack
-
1.13.3/lib/action_controller/base.rb:430:in
`send'

/usr/lib/r
uby/gems/1.8/gems/actionpack
-
1.13.3/lib/action_controller/base.rb:430:in
`process_without_filters'

/usr/lib/ruby/gems/1.8/gems/actionpack
-
1.13.3/lib/action_controller/filters.rb:624:in
`process_without_session_management_support'

/usr/lib/ruby/gems/1.8/gem
s/actionpack
-
1.13.3/lib/action_controller/session_management.rb:114:in `process'

/usr/lib/ruby/gems/1.8/gems/actionpack
-
1.13.3/lib/action_controller/base.rb:330:in
`process'

/usr/lib/ruby/gems/1.8/gems/rails
-
1.2.3/lib/dispatcher.rb:41:in `dispatch'

dispatc
h.cgi:12

#{RAILS_ROOT}/app/controllers/tsg_controller.rb:84:in `create_document'

/usr/lib/ruby/gems/1.8/gems/actionpack
-
1.13.3/lib/action_controller/base.rb:1095:in
`send'

/usr/lib/ruby/gems/1.8/gems/actionpack
-
1.13.3/lib/action_controller/base.rb:1095:in
`perform_action_without_filters'

/usr/lib/ruby/gems/1.8/gems/actionpack
-
1.13.3/lib/action_controller/filters.rb:632:in
`call_filter'

/usr/lib/ruby/gems/1.8/gems/actionpack
-
1.13.3/lib/action_controller/filters.rb:638:in
`call_filter'

/usr/lib/ruby/gems/1.8/
gems/actionpack
-
1.13.3/lib/action_controller/filters.rb:438:in
`call'

/usr/lib/ruby/gems/1.8/gems/actionpack
-
1.13.3/lib/action_controller/filters.rb:637:in
`call_filter'

/usr/lib/ruby/gems/1.8/gems/actionpack
-
1.13.3/lib/action_controller/filters.rb:638:in
`call_filter'

/usr/lib/ruby/gems/1.8/gems/actionpack
-
1.13.3/lib/action_controller/filters.rb:438:in
`call'

/usr/lib/ruby/gems/1.8/gems/actionpack
-
1.13.3/lib/action_controller/filters.rb:637:in
`call_filter'

/usr/lib/ruby/gems/1.8/gems/actionpack
-
1.13.3/lib
/action_controller/filters.rb:638:in
`call_filter'

/usr/lib/ruby/gems/1.8/gems/actionpack
-
1.13.3/lib/action_controller/filters.rb:438:in
`call'

/usr/lib/ruby/gems/1.8/gems/actionpack
-
1.13.3/lib/action_controller/filters.rb:637:in
`call_filter'

/usr/lib/rub
y/gems/1.8/gems/actionpack
-
1.13.3/lib/action_controller/filters.rb:619:in
`perform_action_without_benchmark'

/usr/lib/ruby/gems/1.8/gems/actionpack
-
1.13.3/lib/action_controller/benchmarking.rb:66:in `perform_action_without_rescue'

/usr/lib/ruby/1.8/benchma
rk.rb:293:in `measure'

/usr/lib/ruby/gems/1.8/gems/actionpack
-
1.13.3/lib/action_controller/benchmarking.rb:66:in `perform_action_without_rescue'

/usr/lib/ruby/gems/1.8/gems/actionpack
-
1.13.3/lib/action_controller/rescue.rb:83:in
`perform_action'

/usr/lib/r
uby/gems/1.8/gems/actionpack
-
1.13.3/lib/action_controller/base.rb:430:in
`send'

/usr/lib/ruby/gems/1.8/gems/actionpack
-
1.13.3/lib/action_controller/base.rb:430:in
`process_without_filters'

/usr/lib/ruby/gems/1.8/gems/actionpack
-
1.13.3/lib/action_controller
/filters.rb:624:in
`process_without_session_management_support'

/usr/lib/ruby/gems/1.8/gems/actionpack
-
1.13.3/lib/action_controller/session_management.rb:114:in `process'

/usr/lib/ruby/gems/1.8/gems/actionpack
-
1.13.3/lib/action_controller/base.rb:330:in
`p
rocess'

/usr/lib/ruby/gems/1.8/gems/rails
-
1.2.3/lib/dispatcher.rb:41:in `dispatch'

dispatch.cgi:12

Request

Parameters: {"commit"=>"Save changes", "id"=>"1", "document"=>{"title"=>"",
"file"=>""}}


Show session dump


---


:expire: 2007
-
07
-
02 21:25:33.921239

-
07:00

:user: !ruby/object:User


attributes:


name: Gunnar Wolf


passwd: 098f6bcd4621d373cade4e832627b4f6


id: "1"


tsg_id: "1"


login: gwolf


tsg: !ruby/object:Tsg


attributes:


descr: |


This is my first *TSG*.



[[hola|http://www.google.com]]




I hope it stays around for _long_!



title: The first and the better


id: "1"

flash: !map:ActionController::Flash::FlashHash {}



Response

Headers: {"cookie"=>[], "Cache
-
Control"=>"no
-
cache"}