Image upload with attachment_fu

I want to be able to edit the uploaded images from attachment_fu. In my view I do something like this:

<p>   <b>Cover</b><br />   <%= f.file_field :cover %> </p>

and then in my controller, I do something like

@book = Book.new(params[:book].except(:author_ids, :cover)) if !params[:book][:cover].instance_of? String   @cover = Cover.create!(:uploaded_data => params[:book][:cover], :book_id => @book.id) end

I just wanted to know if this is the best way to do this or if there is something I am missing

You'll want to save the book first so that @book.id will exist.

Other than that, I'm not really sure what you mean about being able to edit the images.

Are you getting a particular error?