File column plugin with ActiveScaffold upload branch

Email this to someoneShare on Google+Share on FacebookTweet about this on TwitterShare on LinkedIn

When using the file_column plugin in the active_scaffold upload branch, the documentation in the file_column doesn’t make it clear what we have to change to make it work.

In the example below the model is number and the file_column is intro.

1. In models/number.rb add:

2. in controllers/numbers_controller.rb, make sure we have:

3. in helpers/numbers_helper.rb add:

4. in views/numbers/_intro_form_column.rhtml add: