richard reyes
2012-Jun-22 16:25 UTC
Ajax Partials not refreshing | How to start downloaded code
Hi All, Greetings to all. Noob RoR dev here and trying to learn it from a book. Here it is: http://pragprog.com/book/rails4/agile-web-development-with-rails I am having trouble working on some of the chapters and I have downloaded the src codes and want to test if it works as it should. Now when I ran "rails server" inside the server folder here''s what I get: einstein:depot_l richard$ rails server /Users/richard/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.4/lib/bundler/resolver.rb:287:in `resolve'': Could not find gem ''rails (= 3.2.0) ruby'' in the gems available on this machine. (Bundler::GemNotFound) from /Users/richard/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.4/lib/bundler/resolver.rb:161:in `start'' from /Users/richard/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.4/lib/bundler/resolver.rb:128:in `block in resolve'' from /Users/richard/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.4/lib/bundler/resolver.rb:127:in `catch'' from /Users/richard/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.4/lib/bundler/resolver.rb:127:in `resolve'' from /Users/richard/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.4/lib/bundler/definition.rb:192:in `resolve'' from /Users/richard/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.4/lib/bundler/definition.rb:127:in `specs'' from /Users/richard/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.4/lib/bundler/environment.rb:27:in `specs'' from /Users/richard/.rvm/gems/ruby-1.9.3-p194@global/gems/rubygems-bundler-1.0.2/lib/rubygems-bundler/noexec.rb:41:in `candidate?'' from /Users/richard/.rvm/gems/ruby-1.9.3-p194@global/gems/rubygems-bundler-1.0.2/lib/rubygems-bundler/noexec.rb:60:in `setup'' from /Users/richard/.rvm/gems/ruby-1.9.3-p194@global/gems/rubygems-bundler-1.0.2/lib/rubygems-bundler/noexec.rb:75:in `<top (required)>'' from /Users/richard/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:60:in `require'' from /Users/richard/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:60:in `rescue in require'' from /Users/richard/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:35:in `require'' from /Users/richard/.rvm/gems/ruby-1.9.3-p194/bin/ruby_noexec_wrapper:9:in `<main>'' Not sure I get what gem not found is but the application I started from scratch is still running okay when I start it using this command. Thanks Richard -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/_riJu1ZBOToJ. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Frederick Cheung
2012-Jun-24 21:09 UTC
Re: Ajax Partials not refreshing | How to start downloaded code
On Jun 22, 5:25 pm, richard reyes <rgreyes.1...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Not sure I get what gem not found is but the application I started from > scratch is still running okay when I start it using this command. >Rubygems is a package management system for ruby libraries. Packages are called gems, so gem not found means you''re missing a library. Rails apps use bundler these days to manage their dependencies. A freshly generated app is locked to the version of rails you have, whereas the one you''ve downloaded is locked to whatever was on the author''s machine at the time (this is a good thing - it makes it less likely that instructions won''t work because of differing versions) You can install all of an apps dependencies by running bundle install From the root of the app Fred> Thanks > > Richard-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org 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.