sxross / MotionModel

Simple Model and Validation Mixins for RubyMotion
MIT License
192 stars 67 forks source link

Proper set up of MotionModel for sqlite #115

Closed dhf0820 closed 10 years ago

dhf0820 commented 10 years ago

If I do not include the require motion_model/fmdb it compiles and I get this Terminating app due to uncaught exception 'NameError', reason: 'fmdb_adapter.rb:143:in `db': uninitialized constant MotionModel::FMDBAdapter::FMDatabase (NameError)

if I require motion_model/FMDB the it does not compile says : LoadError: cannot load such file -- motion_model/FMDB

This is my rake and gem https://gist.github.com/dhf0820/bbccf46249d7a8cc0745

I have attempted to use the one with the ../../lib however that does work if using the sample code since the motion_model library is at that location. Of course this does not work in a normal app.

Mahalo Don

sxross commented 10 years ago

@aceofspades -- does this sound familiar?

dhf0820 commented 10 years ago

I figured it out. Need to run rake pod:install or update and not use the require 'motion_model/FMDB'

It seems to work, just need documenting

dhf On Jun 21, 2014, at 4:11 PM, "s.ross" notifications@github.com wrote:

@aceofspades -- does this sound familiar?

— Reply to this email directly or view it on GitHub.

sxross commented 10 years ago

Awesome!