n0ne / rails-carrierwave-jquery-file-upload Goto Github PK
View Code? Open in Web Editor NEWRails 3.2.3 + Carrierwave + jQuery-File-Upload
Rails 3.2.3 + Carrierwave + jQuery-File-Upload
When we are going create new Gallery and attach an image then if we click on edit button which display on image, it will give this error: Couldn't find Gallery with id=undefined.
I would like to add increment number concatenated with file name, to extract and use that variable for inserting other array variables in the database.This I will use it for the array position. I have exhausted all my resource and cannot do it.
I someone can help me I will appreciate a lot.
Errors in browser console
Uncaught ReferenceError: jQuery is not defined jquery.ui.widget.js:19
Uncaught TypeError: Cannot call method 'ajaxTransport' of undefined jquery.iframe-transport.js:39
Uncaught TypeError: Cannot read property 'support' of undefined jquery.fileupload.js:34
Uncaught TypeError: Cannot read property 'blueimpIP' of undefined jquery.fileupload-ui.js:39
Here is output for bundle install command:
evo@famous ~/Downloads/railstest (master) $ bundle install
Fetching gem metadata from https://rubygems.org/.........
Fetching version metadata from https://rubygems.org/..
Using rake 0.9.2.2
Using i18n 0.6.0
Using multi_json 1.3.6
Using activesupport 3.2.3
Using builder 3.0.0
Using activemodel 3.2.3
Using erubis 2.7.0
Using journey 1.0.3
Using rack 1.4.1
Using rack-cache 1.2
Using rack-test 0.6.1
Using hike 1.2.1
Using tilt 1.3.3
Using sprockets 2.1.3
Using actionpack 3.2.3
Using mime-types 1.18
Using polyglot 0.3.3
Using treetop 1.4.10
Using mail 2.4.4
Using actionmailer 3.2.3
Using arel 3.0.2
Using tzinfo 0.3.33
Using activerecord 3.2.3
Using activeresource 3.2.3
Using carrierwave 0.6.2
Using coffee-script-source 1.3.3
Using execjs 1.4.0
Using coffee-script 2.2.0
Using rack-ssl 1.3.2
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/Users/evo/.rubies/ruby-2.2.0/bin/ruby -r ./siteconf20150302-98319-183h689.rb extconf.rb
creating Makefile
make "DESTDIR=" clean
make "DESTDIR="
compiling generator.c
In file included from generator.c:1:
./../fbuffer/fbuffer.h:149:9: warning: variable 'result' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
if (len > 0) {
^~~~~~~
./../fbuffer/fbuffer.h:153:12: note: uninitialized use occurs here
return result;
^~~~~~
./../fbuffer/fbuffer.h:149:5: note: remove the 'if' if its condition is always true
if (len > 0) {
^~~~~~~~~~~~~
./../fbuffer/fbuffer.h:146:20: note: initialize the variable 'result' to silence this warning
FBuffer *result;
^
= NULL
./../fbuffer/fbuffer.h:158:47: error: too few arguments provided to function-like macro invocation
VALUE result = rb_str_new(FBUFFER_PAIR(fb));
^
/Users/evo/.rubies/ruby-2.2.0/include/ruby-2.2.0/ruby/intern.h:793:9: note: macro 'rb_str_new' defined here
#define rb_str_new(str, len) __extension__ ( \
^
In file included from generator.c:1:
./../fbuffer/fbuffer.h:158:11: warning: incompatible pointer to integer conversion initializing 'VALUE' (aka 'unsigned long') with an expression of type 'VALUE (const char *, long)' [-Wint-conversion]
VALUE result = rb_str_new(FBUFFER_PAIR(fb));
^ ~~~~~~~~~~
2 warnings and 1 error generated.
make: *** [generator.o] Error 1
make failed, exit code 2
Gem files will remain installed in /Users/evo/.gem/ruby/2.2.0/gems/json-1.7.3 for inspection.
Results logged to /Users/evo/.gem/ruby/2.2.0/extensions/x86_64-darwin-14/2.2.0-static/json-1.7.3/gem_make.out
An error occurred while installing json (1.7.3), and Bundler cannot continue.
Make sure that `gem install json -v '1.7.3'` succeeds before bundling.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.