Giter Site home page Giter Site logo

bug: rails generate about jquery-ujs HOT 8 CLOSED

rails avatar rails commented on June 4, 2024
bug: rails generate

from jquery-ujs.

Comments (8)

josevalim avatar josevalim commented on June 4, 2024

This bug was already opened different times here. Please, please check the closed tickets before opening a new one.

from jquery-ujs.

sergeych avatar sergeych commented on June 4, 2024

I suppose you should add it to the readme. I got the issue first time i bundle installed the gem. its quite uncommon approach to bundle update immediately after install. most people like me read the readme but not closed issues before first use. and the common sense is that closed issues are closed and should not have anything important to the current version. well, thats just my opinion. thanks for the support!

from jquery-ujs.

josevalim avatar josevalim commented on June 4, 2024

Bundle install will use whatever version in your system and not necessarily the latest one. So this is fixed in the current version, but you are still using the previous one.

from jquery-ujs.

sergeych avatar sergeych commented on June 4, 2024

it was the first time I installed it:

sergey@Mac-sergeych:/dev/alpha3$ mate .
sergey@Mac-sergeych:
/dev/alpha3$ bundle
Fetching source index for http://rubygems.org/
(skip)
Installing jquery-rails (0.2.4)
Using newrelic_rpm (2.13.2)
(skip)
Your bundle is complete! Use bundle show [gemname] to see where a bundled gem is installed.
sergey@Mac-sergeych:~/dev/alpha3$ rails generate jquery:install --ui
remove public/javascripts/controls.js
remove public/javascripts/dragdrop.js
remove public/javascripts/effects.js
remove public/javascripts/prototype.js
fetching jQuery (1.4.3)
create public/javascripts/jquery.js
identical public/javascripts/jquery.min.js
fetching jQuery UI (latest 1.x release)
create public/javascripts/jquery-ui.js
create public/javascripts/jquery-ui.min.js
fetching jQuery UJS adapter (github HEAD)
/usr/local/lib/ruby/1.9.1/open-uri.rb:216:in open_loop': redirection forbidden: http://github.com/rails/jquery-ujs/raw/master/src/rails.js -> https://github.com/rails/jquery-ujs/raw/master/src/rails.js (RuntimeError) from /usr/local/lib/ruby/1.9.1/open-uri.rb:146:inopen_uri

from jquery-ujs.

sergeych avatar sergeych commented on June 4, 2024

anyway it works after bundle update. wish I understand why

from jquery-ujs.

josevalim avatar josevalim commented on June 4, 2024

Bundler also check your gem cache, so if you used it before or as a dependency in another RVM gemset, bundler will still pick the cache up. Anyway, this is weird. :(

In any case, before starting a new project, I recommend you to use bundle update, to ensure you will have the latest version of everything.

from jquery-ujs.

sergeych avatar sergeych commented on June 4, 2024

thanks. actually it is my first attempt to use jquery with rails, so there was no gem in locally cached for sure. thanks again.

from jquery-ujs.

lgs avatar lgs commented on June 4, 2024

the same happen to me, but "bundle update" doesn't work: http://pastie.org/1306828

ruby-1.8.7-p302
bundler 1.0.6

luca

from jquery-ujs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.