chemio / chemistry_rails Goto Github PK
View Code? Open in Web Editor NEWA gem for validating chemical formula and calculating analysis
License: MIT License
A gem for validating chemical formula and calculating analysis
License: MIT License
I am using your gem, but there is an ortographical error in the vanadium name, because the creators have written venadium instead.
I hope it will be corrected as soon as possible because I need it on my web application.
Thanks!!
Hi, I think this is a great project, but I'm having some trouble installing the gem. When I run rake db:migrate I get this, and it's caused by the chemistry_rails gem
rake aborted!
LoadError: cannot load such file -- chemistry_rails/orm/activerecord
/home/hassan/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:247:in require' /home/hassan/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:247:in
block in require'
/home/hassan/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:232:in load_dependency' /home/hassan/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:247:in
require'
/home/hassan/.rvm/gems/ruby-1.9.3-p547/gems/chemistry_rails-0.1.2/lib/chemistry_rails.rb:160:in block (2 levels) in <class:Railtie>' /home/hassan/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-4.1.4/lib/active_support/lazy_load_hooks.rb:38:in
instance_eval'
/home/hassan/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-4.1.4/lib/active_support/lazy_load_hooks.rb:38:in execute_hook' /home/hassan/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-4.1.4/lib/active_support/lazy_load_hooks.rb:28:in
block in on_load'
/home/hassan/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-4.1.4/lib/active_support/lazy_load_hooks.rb:27:in each' /home/hassan/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-4.1.4/lib/active_support/lazy_load_hooks.rb:27:in
on_load'
/home/hassan/.rvm/gems/ruby-1.9.3-p547/gems/chemistry_rails-0.1.2/lib/chemistry_rails.rb:159:in block in <class:Railtie>' /home/hassan/.rvm/gems/ruby-1.9.3-p547/gems/railties-4.1.4/lib/rails/initializable.rb:30:in
instance_exec'
/home/hassan/.rvm/gems/ruby-1.9.3-p547/gems/railties-4.1.4/lib/rails/initializable.rb:30:in run' /home/hassan/.rvm/gems/ruby-1.9.3-p547/gems/railties-4.1.4/lib/rails/initializable.rb:55:in
block in run_initializers'
/home/hassan/.rvm/gems/ruby-1.9.3-p547/gems/railties-4.1.4/lib/rails/initializable.rb:54:in run_initializers' /home/hassan/.rvm/gems/ruby-1.9.3-p547/gems/railties-4.1.4/lib/rails/application.rb:300:in
initialize!'
/home/hassan/chemistry/config/environment.rb:5:in <top (required)>' /home/hassan/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:247:in
require'
/home/hassan/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:247:in block in require' /home/hassan/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:232:in
load_dependency'
/home/hassan/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:247:in require' /home/hassan/.rvm/gems/ruby-1.9.3-p547/gems/railties-4.1.4/lib/rails/application.rb:276:in
require_environment!'
/home/hassan/.rvm/gems/ruby-1.9.3-p547/gems/railties-4.1.4/lib/rails/application.rb:379:in `block in run_tasks_blocks'
Tasks: TOP => db:migrate => environment
(See full trace by running task with --trace)
Check formula like 'C3H6(OH)2' (Propylene Glycol). Creating object with that formula returns
formula = ChemistryRails::Formula.new('C3H6(OH)2')
#<ChemistryRails::Formula:0x000000028d9eb8 @formula="C3H6(OH)2", @options={}, @is_OH=false, @elements={"C"=>3, "H"=>1, "O"=>1}>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.