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:

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
`’

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

On Jun 22, 5:25pm, richard reyes [email protected] 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