datamapper
Immutable resource cannot be modified (DataMapper::ImmutableError)
I have a list of comments stored in a database. I can pull the comment from the database and manipulate it, however, I get the error when I try to update my database again via datamapper.[详细]
2023-04-13 04:51 分类:问答How to load child objects lazily with the Data Mapper pattern?
If I have a fairly complex User model that I would like to use the Data Mapping pattern to load, how would I lazily load some of the more intensive bits of user info without allowing the User to be aw[详细]
2023-04-08 16:15 分类:问答DataMapper model in a rails mountable engine?
I\'m building a mountable engine. From a basic install, I\'开发者_如何学运维ve moved my existing application into the engine namespace.[详细]
2023-04-06 13:11 分类:问答One-To-Many-Through adding join model instances
My models: class Test include DataMapper::Resource property :id, Serial property :name, String, :default => \'\'[详细]
2023-04-04 04:06 分类:问答Datamapper validations, empty errors
I have a simple model with the following properties: property :title, String, :required => true, :length => 1..200[详细]
2023-04-03 05:03 分类:问答DataMapper No Memory Error - Sinatra
Any ideas as to where I am going wrong here? Error: C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/dm-do-adapter-1.1.0/lib/dm-do-adapter/adapter.rb:291:in `next!\': failed to allocate memory (No[详细]
2023-04-02 08:51 分类:问答Foreign keys and associations using DataMapper
I have read this page quite thoroughly: http://datamapper.org/docs/associations If the answer is on there, it\'s simply not expressed in a way I can understand.[详细]
2023-04-01 12:16 分类:问答Displaying Error Message with Sinatra
I\'m writing a simple app that takes standard input from the user.As for the email entry, I have it verify if it is in a standard email format and then have it list the problems like this when a new i[详细]
2023-03-29 19:52 分类:问答What is the equivalent of DataMapper's child_key in ActiveRecord?
What is the closest thing to child_key from DataMapper in ActiveRecord? How would one write this using ActiveRecord?[详细]
2023-03-29 07:27 分类:问答How to stub DataMapper association with RSpec2?
I\'m trying to write some specs and want to stub out the calls to the database so I don\'t rely on an开发者_StackOverflow actual filled database to get the tests running.[详细]
2023-03-29 04:23 分类:问答