Re: [Rails] Carrierwave - Can't upload multiple images
On 22 April 2012 19:05, Vitali R. <lists@ruby-forum.com> wrote:
> I am using jQuery File Upload
> http://blueimp.github.com/jQuery-File-Upload/
>
> Together with Carrierwave for uploading images, with latest stable
> version of Ruby and Rails installed.
>
> I managed to make it working by following this manual
> https://github.com/blueimp/jQuery-File-Upload/wiki/Rails-setup-for-V6
>
> And it works perfectly well for uploading single images, but
> once I add HTML5 multiple attribute to allow uploading multiple images
> at once and select multiple images, I get following error on each
> request.
>
> NoMethodError in Advertiser::MediaController#create
> undefined method `[]' for nil:NilClass
The error message should tell you the line number so you can see where
the problem is, you are calling [] on something that is nil. Have a
look at the Rails Guide on Debugging to get ideas on how to debug the
code.
Colin
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home