Rails server is not starting? - ruby-on-rails-3

i have succesfully installed rails 3.2.8, ruby 1.9.3, gems are also updated.
when rails server command is entered in myapp folder following error is displayed
←[31mCould not find gem 'jquery-rails (>= 0) x86-mingw32' in the gems available
on this machine.←[0m
←[33mRun bundle install to install missing gems.←[0m

Did you install the corresponding gems by using
gem install jquery-rails
or run the bundle install command in console before you start the rails server?

Related

ruby on rails server is not running

i m new to ruby on rails can any one help me. i cant start my rails server below is the error which m getting
i also tried by installing bundle but getting same error
ahaad#Labbaik:~/Desktop/Ruby_Pro/App_demo$ rails server
Could not find gem 'jquery-rails (>= 0) ruby' in the gems available on this machine.
Run bundle install to install missing gems.
Install this gem separately:
gem install jquery-rails
and run the bundle:
bundle install
(or)
Look up your Gemfile, add gem 'jquery-rails' if Gemfile not contain it, then at your terminial, run
bundle install

installing bcrypt-ruby (rails 3.2.8 using devise) on a raspberry pi

I'm having fun trying to get my raspberry pi setup as a staging server. It's a rails app 3.2.8 using devise for authentication.
When it's bundling the install is failing with
Installing bcrypt-ruby (3.0.1) with native extensions
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension
If I "sudo gem install bcrypt-ruby -v '3.0.1' " then it installs fine, but the capistrano deploy is always failing.
Any ideas? I'd rather not deploy as sudo as that's not how it works in production.
You may not have a working ruby development library installed. Check your Ruby version:
$ ruby --version
Assuming that you have ruby v1.9.3, install ruby1.9.3-dev. The version number doesn't matter; just use the same version number that you have installed.

Getting Rails working with a JS runtime environment

I'm using Ubuntu 11.10 and the terminal to install and run Rails. Here
is the process I've taken so far to setup Rails:
download and install Ruby 1.9.2 and Rails 3.1.0
-- I did this using sudo apt-get ruby1.9.1 and sudo gem install
rails
I made a new rails app using rails new path/to/app
I went to the new app directory and tried running rails server and got an
error about not having a JS ruby environment
I had to get a JS runtime environment for execjs so I downloaded 'therubyracer'
as well as 'therubyrhino' and added them to my gem file, one at a time like this:
gem
'therubyracer' then ran bundle install
After everything was successful with the install, I ran rails server again
-- with both runtime environments I have had similar errors:
Could not find libv8-3.3.10.4 in any of the sources
Run `bundle install` to install missing gems.
Could not find therubyrhino-1.73.0 in any of the sources
Run `bundle install` to install missing gems.
Bundle knows where these programs live, giving correct pathnames when I
enter bundle show libv8 or bundle show therubyrhino. They are both
in /usr/lib/ruby/gems/1.9.1/gems/_ where all the other gems are
located for the bundle install.
Does anyone know where this exception is coming up in the Rails source
code? Does anyone know how Rails is gathering the gems? Better yet,
anyone had this problem and know how to fix it?
Thanks so much,
Feav
Have you tried starting the server using bundle exec rails server?
This problem has been fixed in a newer version of Rails.

Using bundle with rvm at hosting

I am try
hosting_barthez#lithium:~/projects/taxes/current$ bundle install
/usr/lib/ruby/1.8/rubygems.rb:900:in `report_activate_error': Could not find RubyGem bundler (>= 0) (Gem::LoadError)
from /usr/lib/ruby/1.8/rubygems.rb:248:in `activate'
from /usr/lib/ruby/1.8/rubygems.rb:1276:in `gem'
from /var/lib/gems/1.8/bin/bundle:18
but when I write
hosting_barthez#lithium:~/projects/taxes/current$ gem install bundler
Successfully installed bundler-1.0.15
1 gem installed
I think that is obvious. You got error because you were trying to use bundle command which comes with bundler gem only, without installing it. You have to install bundler to use bundle.

Problems with installing mail gem for Rails 3

I'm trying to install rails 3.0.7 on Mac OSX. I'm using rvm and I've got ruby 1.9.2p180 installed.
When I run
gem install rails --version 3.0.7
It seems to work fine, until it gets to the mail gem.
Fetching: mail-2.2.17.gem (100%)
ERROR: While executing gem ... (Zlib::DataError)
invalid block type
The installer them stops and rails is not installed. How do I get around this?
Update: Since I asked this question the mail gem has been updated to 2.2.19, and this seems to have solved the problem.
I just replicated your env (MacOS, ruby 1.9.2) and rails installed fine, along with the mail gem (2.2.17).
Perhaps try again? Maybe the package that was fetched was temporarily corrupt. You can also run gem with the verbose flag to see more info:
gem install rails -V --version 3.0.7