I fixed the issue I was having. The only thing at the moment I can't seem to get working is the has_geographic_location on my models. It always throws a boot error. Could you possibly write some documentation for dm-geokit as there seems to be none at the moment.
Quoting Mike S <[email protected]>: > I don't mind waiting, but I didn't do much more that update that > rakefile/gemspec in order to get the gems to stop throwing version > errors. Once I got the gems working together, I kept getting errors on > the property_to_column_name_without_distance method in resource.rb. (3 > of 2 Arguements). After changing > property_to_column_name_without_distance(property, qualify, qualifier) > to property_to_column_name_without_distance(property, qualify) the > error disappeared. But when logging in I'm getting this error. > > undefined method `field' for > #<DataMapper::Query::Operator @target=:all @operator=:count> > > in adapter.rb which is part of the datamapper stuff. > > Unfortunately, I don't really know what I'm doing and just trying to > hack things together at this point to get something working. Enjoy > help from you would be appreciated. > > > On Aug 30, 6:17 pm, Matt King <[email protected]> wrote: > > On 30 August 2010 13:00, Mike S <[email protected]> wrote: > > > > > I am currently working on a sinatra app using datamapper and I would > > > like to use the geokit gem. The last time anyone touched the geokit > > > gem was about a year ago and it is still using datamapper version > > > 0.10.2. I have been trying to get it up and running on dm 1.0.0. I > > > kept getting 3 for 2 arguement errors on the > > > property_to_column_name_with_distance method and deleted the qualifer > > > variable that was getting passed in and that fixed that issue. Now on > > > my login, the login works fine until after authenticating the user I > > > try to grab the ID. Then I get this error undefined method `field' for > > > #<DataMapper::Query::Operator @target=:all @operator=:count>. > > > It appears to be a conflict with the adapter.rb file in datamapper. > > > > Hi Mike, > > > > I maintain dm-geokit, and I believe I got your pull request on github the > > other day, but haven't had a chance to do an update...obviously it needs > to > > be updated to work with dm-core-1.0.0. I'm hoping to get to it this week, > if > > you can wait... > > > > Cheers, > > > > -- > > Matt > Kinghttp://github.com/mattking17http://github.com/mattking17/dm-geokithttp://github.com/mattking17/Togo > > -- > You received this message because you are subscribed to the Google Groups > "DataMapper" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/datamapper?hl=en. > > -- You received this message because you are subscribed to the Google Groups "DataMapper" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/datamapper?hl=en.
