Re: Version issue with First App in Hartl Tutorial

47 views
Skip to first unread message

7stud --

unread,
Oct 13, 2012, 9:31:06 PM10/13/12
to rubyonra...@googlegroups.com
Have you checked the free online version of the book for the latest
updates?

--
Posted via http://www.ruby-forum.com/.

Colin Law

unread,
Oct 14, 2012, 3:24:03 AM10/14/12
to rubyonra...@googlegroups.com
On 13 October 2012 15:47, Tim Escher <esche...@gmail.com> wrote:
> Stepping through the Hartl Rails 3 Tutorial from the 2nd edition book hot
> off the presses. Modified the Gemfile *exactly* as specified in the book,
> immediately got version issues:
>
> Could not find gem 'jquery-rails (= 2.0.0) x86-mingw32', etc., etc.
>
> Tried removing the version spec from various gems, but it was like peeling
> an onion - other stuff would start failing.
>
> Running Win 7 for Rails.

I can't help with the problem I am afraid, but since no-one has
provided a solution I feel I should point out that RoR development on
Windows can be problematic and many believe that it is better to use
Linux (Ubuntu for example) or Mac. You have not said how you
installed Rails, I believe that on windows railsinstaller.org is
considered a good solution.

Colin

Shourav R.

unread,
Jan 6, 2013, 5:16:21 PM1/6/13
to rubyonra...@googlegroups.com
I am using linux mint maya. And unfortunately facing the same problem. I
dont think this is an issue of windows or linux. But is there any
problem using jquery-rails 2.1.0 or any latest one?

Tajul A.

unread,
Mar 10, 2013, 6:37:58 AM3/10/13
to rubyonra...@googlegroups.com
Hi all

I faced the same problem. So any solution right now? Can I switch to
other version?

Colin Law

unread,
Mar 10, 2013, 6:49:38 AM3/10/13
to rubyonra...@googlegroups.com
On 10 March 2013 10:37, Tajul A. <li...@ruby-forum.com> wrote:
> Hi all
>
> I faced the same problem. So any solution right now? Can I switch to
> other version?

Which same problem? With windows as the OP or mint?

Colin

Tajul Azhar Mohd Tajul Ariffin

unread,
Mar 10, 2013, 8:43:05 AM3/10/13
to rubyonra...@googlegroups.com
On my Windows. The version maybe contain bugs or no longer supported. I
try to move the '2.0.0' but still other problem occured with json 1.7.7.
Any solution guys or should us email to Harlt personally.

Andrew Cheong

unread,
Jun 8, 2013, 11:00:13 PM6/8/13
to rubyonra...@googlegroups.com
I don't know why this works, but I found it on Stack Overflow and it
worked for me. (I'm going through Hartl's second edition.)

Run this first (it installs the gem separately):

gem install jquery-rails

And then try bundle install again.

mike

unread,
Jun 9, 2013, 12:08:45 PM6/9/13
to rubyonra...@googlegroups.com


On Saturday, October 13, 2012 10:47:44 AM UTC-4, Tim Escher wrote:
Stepping through the Hartl Rails 3 Tutorial from the 2nd edition book hot off the presses. Modified the Gemfile *exactly* as specified in the book, immediately got version issues:

Could not find gem 'jquery-rails (= 2.0.0) x86-mingw32', etc., etc.

Tried removing the version spec from various gems, but it was like peeling an onion - other stuff would start failing.

Running Win 7 for Rails.

Any help appreciated. Thanks.

Something's a little off.  Your message indicates that version 2.0.0 of jquery-rails is missing.  The 2nd edition of the Rails Tutorial uses version 2.0.2, not 2.0.0.  If you have 2.0.2 in your gemfile, It is possible that one of the other gems is requiring 2.0.0 as a dependency.   

If that's the case, I would force the install of version 2.0.0 as follows:

gem install jquery-rails --version '2.0.0'

It is very important that you use the version of the gems specified in the book.  In particular, if you do not use the same version of rspec and capybara as the book does, you will have real problems.  FYI, the full source code of the application you will be building in the tutorial (which includes the gemfile) is available at:

github/railstutorial/sample_app_2nd_ed

Curt S.

unread,
Nov 26, 2013, 8:46:07 PM11/26/13
to rubyonra...@googlegroups.com
I am running Windows 8 and I received the same error message as that
reported by Tim Escher.

I was also following the printed book. I have the second edition, and on
page 21 the book (twice, actually) specifies version '2.0.0' for
jquery-rails. When I ran "bundle install" (after editing the Gemfile for
first_app) I received this error message:

"Could not find gem 'jquery-rails (= 2.0.0) x86-mingw32' in the gems
available on this machine."

But when I changed the jquery-rails version to 2.0.2 everything worked
fine.
Reply all
Reply to author
Forward
0 new messages