简体   繁体   中英

Contact gem in ruby on rails

I followed this blog . I found one error: I mentioned in environment.rb require 'contacts'.

When I use this require 'contacts' the server never started. When I replace this require 'contacts' the server starting but some syntax errors came in URL. How can I import my contacts?

That blog entry predates Rails 3, and thus does not refer to the fact that you must add the following to your Gemfile:

gem 'contacts'

and then run bundle install . As a result of this you do not need to put require 'contacts' anywhere, as Bundler will require it for you.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM