Skip to content

afeiship/rails-module-signin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#rails-module-signin

Rails module for sign in.

replace gem source

gem source --remove https://rubygems.org/
gem source -a https://gems.ruby-china.org

initialize:

cd ~/github/rails-module-signin
rails new .

rails g model user name:string email:string password_digest:string
rake db:migrate

rails g controller users login

some errors:

An error occurred while installing nokogiri (1.7.0.1), and Bundler cannot continue.
Make sure that `gem install nokogiri -v '1.7.0.1'` succeeds before bundling.

http://stackoverflow.com/questions/34651519/error-while-installing-nokogiri-1-6-7-on-el-capitan

You should install xcode-select packages first, then try installing nokogiri again. Try these commands,

xcode-select --install
then try

gem install nokogiri
with whatever Nokogiri version you want.
Nokogiri depends on multiple libraries like libxslt, libxml and zlib. Dev versions (including source) of these should be installed before installing Nokogiri in any Linux distribution. For OS X, the above command should work I guess.
The actual solution is in the comments below.

resources: