Bug #1221
Movable Type Import deprecated
| Status : | New | Start : | ||
| Priority : | Normal | Due date : | ||
| Assigned to : | scott - | % Done : | 0% |
|
| Category : | backend | |||
| Target version : | - | |||
| Resolution : |
Description
Hello,
Seems as if the db/converters/mt3.rb is using the deprecated method push_with_attributes>
$ ruby mt3.rb --blog-id 5 --db marc_mt
Converting 23 categories..
Converting 737 entries..
/Users/marc/typotest/vendor/rails/activerecord/lib/active_record/base.rb:1532:in @method_missing': undefined method @push_with_attributes' for #<Class:0x2849d04> (NoMethodError)
Does anybody happen to know a "simple" fix?
The line in question: a.categories.push_with_attributes(Category.find_by_name(c['category_label']), :is_primary => c['placement_is_primary'])
simply setting it to: a.categories.push(Category.find_by_name(c['category_label'])) will work, but the result lacks the "is primary" column :(
History
09/11/2008 06:18 PM - Joseph Chen
- File typepad.rb added
I'm not sure if this helps since I haven't used MovableType, but we've been using our own script for migration from Typepad (which is related to MovableType) to Typo. I've attached the typepad.rb script that we use.
