In the gem file for https://github.com/justinfrench/formtastic they have:
gem 'formtastic', '~> 2.0.0'
What does the ~> mean.
It actually gives me the error “Could not find gem ‘formtastic (~> 2.0.0, runtime)’ in any of the gem sources.”
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It’s a confusing operand, but it limits versions to a subset of the possible versions. So
~> 2.0.0means “>= 2.0.0 and < 2.1.0” in version numbers.1.2.3 seems to be the latest version of Formtasic, that’s why you’re getting this error message.