search for: datamapp

Displaying 20 results from an estimated 31 matches for "datamapp".

Did you mean: datamap
2011 Dec 23
0
Datamapper problem "no such table"
Hi, this code used to work, but for some reason it won''t now: [... load models] DataMapper.setup(:default, "mysql://cm:password-yro0w6Hh2UrkfKl135yGWg@public.gmane.org/cm") DataMapper.setup(:lite, "sqlite3:///home/tigre/cm.sqlite") DataMapper.finalize DataMapper.repository(:lite).auto_migrate! DataMapper.repository(:lite) do w = WorkCenter.new(:name => "F...
2007 Nov 27
2
Expectations on Class Methods
Sorry about the non-specific subject. Here''s what I''m trying to do. I have a method: DataMapper::Database.setup That I want to create an expectation on. I wrote: DataMapper::Database.should_receive(:setup).once.and_return (connection_hash) The call to setup is invoked in the "Object" namespace. I.e., it is setup code, and not in any method or class. I can see that the class...
2011 Mar 18
7
Controller Spec & DataMapper Chaining
Hi there, I''m fairly new to RSpec, and DataMapper and I''m trying to write a controller spec for an index action that will include DM query chaining. Here is a very simplified version of the Controller#index I''m working on def index @widgets = Widget.all(:order => [ :name.asc ]) if params[:alpha] @widgets = @widget...
2008 Feb 07
2
Catching non-Merb::ControllerExceptions Exceptions
Is there an agreed upon method for handling exceptions thrown by something outside of Merb? For example, DataMapper now throws a DataMapper::ObjectNotFoundError when a record isn''t found in the db. I''d like to catch these exceptions and raise a C:E:NotFound exception instead, but without having to wrap a lot of code in begin/rescue/end blocks. Thanks, Mike Irwin
2009 Mar 31
15
Error: undefined method ''calc_min'' for #<Wx::IdleEvent>
Hi, I occasionally had the following error when application in idle state. Error: undefined method ''calc_min'' for #<Wx::IdleEvent:0xb115e44> OS: WXMSW Ruby Version: 1.8.6 wxRuby 2.0.0 Backtrace: (eval):154:in `calc_min'' (eval):154:in `layout'' (eval):154:in `process_event'' (eval):154:in `on_run'' (eval):154:in
2010 Nov 08
0
Rails3: "rake test" task does not run tests.
...89 and > $ rake test:units --trace > (in /home/blt/Documents/projects/rails3apps/naughtyapp) > ** Invoke test:units (first_time) > ** Invoke test:prepare (first_time) > ** Execute test:prepare > ** Execute test:units Then only possible peculiarity of this app is that I am using DataMapper, rather than ActiveRecord. Here are the railties I am including in application.rb: > require ''action_controller/railtie'' > require ''dm-rails/railtie'' > require ''rails/test_unit/railtie'' I must be doing something wrong, but I'...
2007 Dec 12
3
merbful_authentication
...a copy of the repo at git clone http://snatcht.com/git/merbful_authentication.git at the moment the app is in a branch. Not in the master. get the branch by git checkout -b remote/initial origin/inital_repo At the moment I''m aiming for a straight port of restful_authentication with datamapper in the intial app. This will get it available to the community at least. Then it can be pulled out and gemified as a datamapper generator, and the activerecord stuff ported out and included as a generator there too. The ultimate aim is to extract as much of the functionality into mixins as pos...
2012 Oct 24
0
RoR Developer (Full Time, Salary)
...avaScript (CoffeeScript), MySQL, and Git (Github). Technical Requirements * Ruby on Rails: It''s a RoR job, so please be proficient in Ruby and Rails. * HTML/CSS: Your HTML and CSS skills should be good. * Javascript/jQuery: You should also be proficient in JavaScript & jQuery. * MySQL/DataMapper: We use DataMapper in favor of ActiveRecord. Knowledge of DataMapper will be required. * Github: We use Github, so you need to have a GitHub account and be comfortable with git. Extra Credit * Mobile: We have Android and iOS apps. Any knowledge of mobile app development is a plus * Node: Current...
2007 Oct 15
18
Merbivore.com - Mockups
There''s been some discussion on the IRC channel about getting a site for Merb going. Since the culture around the project is pretty casual, I figured I''d just throw a few ideas together, see what you guys think. So, firstly here are three example pages, just to show off the general look and feel. http://mr-eel.com/tmp/merb/01_frontpage.gif
2007 Nov 15
8
Ferret/AAF Stability?
Hello. I''m the author of DataMapper (http://datamapper.org), and am trying to choose what Full-Text-Indexing engine/plugin I want to include by default. I was hoping you guys could help. :-) Sphinx comes highly recommended, but without live index updates, it just doesn''t seem practical for most of my work. I''m m...
2012 Jul 24
4
Behavior of first_or_create
...ed to reflect this scenario - the last case in the examples *almost* describes this scenario, but the block form used there makes it unclear what: User.where(:first_name => ''Scarlett'').first_or_create(:last_name => "O''Hara") would do. I also found that DataMapper implements the behavior I was expecting in their first_or_create method: https://github.com/datamapper/dm-core/blob/master/lib/dm-core/model.rb#L448 Thoughts? --Matt Jones -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To...
2007 Nov 07
1
merb/sequel mutex on or off? proxy_balancer or no?
Just a quick question to those of you using merb and sequel or datamapper. How do you setup your merb app? For example: merb -X off -c 5, then run mod_proxy_balancer or nginx to load balance between the 5 (or whatever #) of merb nodes? merb -X off -d, then simply use something like proxypass merb -c 5, keep the mutex lock and cluster it haproxy, swiftiply, evente...
2007 Aug 30
1
active record alternatives
Just wanted to get the opinion from merb users on active record alternatives that you are either using or watching. I''ve been reading a bit about sequel and data mapper. Both look pretty nice. Anyone actively using those yet? Any others? If anyone cares to provide their thoughts, I''d love to hear them. BTW - is this too off-topic for this list? If so, just let me know and
2008 Jul 05
0
Undefined Method Angst After Rails / Ruby / Gem Updates
...ocal/lib/ruby/gems/1.8 [this is correct] - GEM CONFIGURATION: - :update_sources => true - :verbose => true - :benchmark => false - :backtrace => false - :bulk_threshold => 1000 - :sources => ["http://gems.rubyforge.org", "http:// gems.datamapper.org"] - REMOTE SOURCES: - http://gems.rubyforge.org - http://gems.datamapper.org --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send ema...
2008 Jul 18
2
ActiveRecord: SQL IN operator
I want to use an array in the :conditions of an ActiveRecord Find so that a SQL IN statement is created. However, I also want to specify a greater than condition on a timestamp column too. From the Docs: An array may be used in the hash to use the SQL IN operator: Student.find(:all, :conditions => { :grade => [9,11,12] }) How do I modify this so that it also contains the timestamp
2011 Feb 05
3
ActiveModel::AttributeMethods limiting
In my attempt to add AM:Dirty to my model I realized that AM#AttributeMethods is a bit imperfect. It''s impossible to generate attribute methods step-by-step in DataMapper-like manner. class Model include ActiveModel::Dirty def self.property(name, klass = String) define_property_accessors(name, klass) # This method will be called once, because of https://github.com/rails/rails/blob/master/activemodel/lib/active_model/attribute_methods.rb#...
2010 Aug 20
2
The M in ORM
Hi everyone, I am attempting to connect an already existing mysql database with Rails. For This I can''t use the traditional "generate scaffold" and "rake db:migrate" because (I think), I''ll loose the data already existing in that database table. So what I did was, I generated a scaffold for my table, and instead of running db:migrate, I added a
2011 Dec 06
3
Riak on Camping
Good day, does anyone here have a clue on how to make use of the NoSQL database "Riak" with Camping? I am building my website and Riak seems like pretty much the ultimate database! This would probably ruin every little feature in ActiveRecord, I don''t think I''d be able to do any has_many''s or belongs_to but I''d LOVE to be proven wrong. As far as
2008 Jan 11
13
Role of stories vs specs, revisited
A couple months ago I asked how stories and specs might impact each other. [1] If you look at Dan North''s example of what''s in a story [2], and you imagine using the spec framework to drive the design, you can probably imagine a significant bit of overlap in the two. Is that a bad thing? I''m not sure. It has made me a bit uncomfortable though, and I''ve
2011 Feb 14
4
Begining with RoR, litle questions
Hello, First, sorry about my english. I come from lamp+symfony world, i understand the MVC design and so on... my questions... 1. Should learn ruby 100% before entering the documentation for RoR? 2. Works with apache as module? 3. What about DB abstraction? something similar to PDO in php? Appreciate a few links in addition to the official. In short, a little guidance of where to start PD: