Rails 1.1, "enable_upload_progress"
Rails 1.1 was released, and with it the functionality for the "Ajax" (ug, I hate that word) file upload progress bar was turned into a plugin. I am posting this just in case someone followed one of the 1 million "how to upload files" in Rails tutorials and can't figure out why they're seeing the following errors:
config/environment.rb:59: undefined method `enable_upload_progress' for ActionController?::Base:Class (NoMethodError?) from
All you need to do is remove the offending line in their environment.rb file, and run the following command from your rails project root:
script/plugin install upload_progress
Everything should work perfectly. (Mine does. :))
("Thanks" to this blog post.)
config/environment.rb:59: undefined method `enable_upload_progress' for ActionController?::Base:Class (NoMethodError?) from
All you need to do is remove the offending line in their environment.rb file, and run the following command from your rails project root:
script/plugin install upload_progress
Everything should work perfectly. (Mine does. :))
("Thanks" to this blog post.)

5 Comments:
Hi Sica,
Spent a few hours looking for this solution... Many thanks, it helped me a lot.
Regards,
Fabrice.
Sorry, I wanted to write: Hi Michael :)
Fabrice.
Glad I could help!
Thanks so much, this was required to get the open source wiki software Hieraki2 working.
No problem.
Just an update - I'm not using FastCGI anymore, so I've had to switch to using the mongrel version. More info here: http://mongrel.rubyforge.org/docs/upload_progress.html
Post a Comment
<< Home