You are previewing Rails 3 in Action.

Rails 3 in Action

Cover of Rails 3 in Action by Ryan Bigg... Published by Manning Publications
O'Reilly logo

Chapter 9. File uploading

This chapter covers

  • Uploading files to the app
  • Locking down file access based on declared permissions
  • Uploading multiple files using JavaScript, jQuery, and CoffeeScript

In chapter 9, you learned how to restrict access to specific actions in your application, such as viewing projects and creating tickets, by defining a Permission model that keeps track of which users have access to which actions.

Ticketee’s getting pretty useful now. This chapter focuses on file uploading, the next logical step in a ticket-tracking application. Sometimes, when people file a ticket on an application such as Ticketee, they want to attach a file to provide more information for that ticket, because words alone can only describe so ...

The best content for your career. Discover unlimited learning on demand for around $1/day.