Displaying 20 results from an estimated 40000 matches similar to: "Magic Models 0.7.1"
2006 Aug 14
0
Composite Primary Keys - now works with Rails 1.1.6
Due to the foolish implied assumption that there''d never be a revision
to activerecord library, the Composite Primary Key code promptly broke
for anyone who updated their apps to Rails 1.1.6 (with its
activerecord-1.14.4)
Now the gem dependencies are fixed and your legacy databases are free to
wield composite primary keys without fear again.
Description:
Composite Primary Keys
2006 Aug 07
28
Dr Nic’s Magic Models
Welcome! Welcome! Welcome! Ladies and Gentlemen, today you shall be
thrilled and dazzled by wonders of magical mystery.
Dr Nic?s Magic Models will now be unveiled to all. Mystery and magic
that you will be able to perform at home.
Within your ActiveRecord models, never again will you need to write:
* validates_presence_of validations
* has_many and belongs_to statements
* has_many
2006 Aug 10
0
[BTS] Dr Nic''s Magic Models - Class creation
For anyone interesting in some meta-programming ideas, I''ve written up a
short explanation about the Class Creation feature of Dr Nic''s Magic
Models.
I know most forum posts start with "How do I..." but thought it might be
interesting reading for the ppl who answer the forum posts that start
with "How do I..." :)
2006 Aug 02
0
Composite Primary Keys support for Associations
Announcement:
Composite Primary Keys gem now includes support for ActiveRecord
Associations.
Summary:
Composite Primary Keys allows an ActiveRecord to support 2+ primary keys
using the set_primary_keys class method. Previous versions provided full
CRUD and find support. This latest release provides support for more
ActiveRecord magic: associations (has_many, belongs_to, etc)
Full report:
2006 Jul 28
7
[VAPOUR] Dr Nic''s Magic Models
Welcome! Welcome! Welcome! Ladies and Gentlemen, soon you shall be
thrilled and dazzled by wonders of magical mystery.
Soon, very soon, Dr Nic''s Magic Models will be unveiled to all. Children
will giggle; Rubists will nod acknowledgingly; Railers will applaud
loudly.
No entry fee. 2 drink minimum.
Watch out for the Invisible Model Classes. Got a legacy database of 50
tables? You
2006 Aug 08
4
Nic’s Magic Models, how about Magic Schema
I side with David when it comes to databases. They suck! Just my own
opinion.
So what about the people who don''t want to define validations and stuff
in the database, but still want to be DRY.
I really hate how the schema is separate from my models. I kind of like
how Django defines the table attributes in the model. I was think about
trying something like that in Rails.
You could
2007 Jan 10
3
ActiveRecord Error?
We spent a big chunk of yesterday hunting down a strange bug in one of
our rails apps and created a test project to try out different theories
on what was going on. The result so far is a very small test case app
that perfectly reproduces the problem. The question is, is there
anything *wrong* with what we''re doing here, or is it a problem with
ActiveRecord? We''re on rails
2006 Aug 09
0
Bug in ActiveRecord 1.14.4 and select_limited_ids_list method using mysql?!?!
All -
I just upgraded to rails 1.1.5 (per the announcement) which also updated
active record to 1.14.4 (was 1.14.2). I know have a problem...
Author has many Articles...
@authors = Author.find(:all, :limit => 10,
:offset => 0
:include => [:articles],
:conditions => ["hide =
2006 Aug 09
0
Bug in ActiveRecord 1.14.4 and select_limited_ids_list() ???
All -
I just upgraded to rails 1.1.5 (per the announcement) which also updated
active record to 1.14.4 (was 1.14.2). I know have a
problem...
Author has many Articles...
@authors = Author.find(:all, :limit => 10,
:offset => 0
:include => [:articles],
:conditions => ["hide = ?",
2006 Nov 16
4
rake db:migrate problem
I am just starting out learning RoR. I am trying to follow along with
the Depot project in "Agile Web Development With Rails ed2" and get the
error "You have a nil object when you didn''t expect it! You might have
expected an instance of Array. The error occured while evaluating
nil.[]" I ran --trace and get the following, but I am not sure what it
means. Can
2006 Aug 16
6
Newbie-Question
Hi.
I''ve just started using Ruby on Rails.
Now I''ve got my first problem.
I generated a new migration ''add_price'' and get the message:
2006 Aug 09
1
Migrating a Field to External Model
I have a model Product with an attribute ''brand''. Currently it is a
simple attribute, however, I am migrating it to a separate model
Brand so that I can have other attributes with each brand. I created
the the model and created and ran the migration to create the new
table. So far so good. Then I created a separate migration to
transfer the data. The up method
2006 Sep 05
0
rake craziness with Migrate as a dependency
Hi everyone,
For one of our projects we have a need to deploy and maintain a demo.
As a result I''ve attempted to setup a set of rake tasks for the job.
My goal is have one rake task called "deploy_demo" which purges the
database, migrates to the current schema, and loads the db from a set
of fixture files in a specified location.
I''ve written two new tasks the perform
2007 Feb 02
0
Problem with ActiveForm
Hi all,
i''m using ActiveForm for some validations without a database. the
problem is, when i start my application, I get this error:
undefined method `save!'' for class `ActiveForm''
but if i refresh my browser, the application starts normally. im
guessing it''s because the ActiveForm class uses some things from active
record that haven''t been
2006 Nov 20
0
End-of-File Error occured at <except.c>:79 in xraise
On an average I get this error twice or thrice a week. After I rebuild
the index Event.rebuild_index it works fine.
I''m a bit puzzled by this behavior. Why does this happen? I am using
AAF.
End-of-File Error occured at <except.c>:79 in xraise
Error occured in store.c:216 - is_refill
current pos = 301, file length = 301
/usr/local/lib/ruby/site_ruby/1.8/ferret/index.rb:517:in
2006 Sep 18
5
Undefined method "updated?"
I recently updated Rails to the latests version, and one of my existing
apps broke. More speficially, it can''t find the method "updated?" when
it is attempting to call it on one of my models.
The stack trace follows:
NoMethodError
undefined method `updated?'' for #<MyModel:0xc91d50>
2006 Aug 15
2
has_many + finder_sql & :include
Hello,
In a model I have:
has_many :things, :finder_sql => '' select * from other_things '' +
'' where id = #{id} ''
When I do MyClass.find(:all, :include => :things) I get a weird error:
from
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/connection_adapters/abstract_adapter.rb:120:in
2006 Nov 04
0
rake db:migrate is semi-broken
Whenever I run rake db:migrate I get the following "error":
antrover:~/Sway/Projects/mi7/branches/sway_dev_mi7 dhoefler$ rake db:migrate
(in /Users/dhoefler/Sway/Projects/mi7/branches/sway_dev_mi7)
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/validations.rb:334:
warning: `*'' interpreted as argument prefix
2006 Aug 25
6
End-of-File Error occured at <except.c>:103 in xpop_context
Hi, I get this when searching or adding a new record. I am using today''s
version of trunk and gem ferret 0.10.0
any ideas? thanks!
EOFError in DvbesController#new
End-of-File Error occured at <except.c>:103 in xpop_context
Error occured in store.c:197 - is_refill
current pos = 0, file length = 182
RAILS_ROOT: script/../config/..
Application Trace | Framework Trace | Full
2006 Apr 10
3
Problems with multiple ActiveRecords and Validations
Hi all,
I am a RoR newbie and have the following scenario set up:
There are 2 ActiveRecords involved, the first one being "User", the
second one being "Visibility".
The corresponding users table holds address informations regarding a
User. The visibilities table holds visibility settings for the
individual columns of the users table (i.e. firstname, lastname, country