Displaying 1 result from an estimated 1 matches for "field_primary".
2009 Mar 05
0
Insert using Rake Task
...espace from the edge of
content
end
namespace :mysqldata_select do
LOCATIONS = {1 => 6, 2 => 5, 3 => 5}
task :sqldata_update => :environment do
include ActionView::Helpers::SanitizeHelper
MysqlData::TableName.all(:conditions => {:field_id => [1,2,3]},
:order => :field_primary).each{ |j|
r = TableName.new
# place
r.field = j.field_primary
r.location_id = LOCATIONS[j.field_id]
# save the item to get an ID
r.save
# find any translations
attributes = {}
%w{tc sc jp kr pt}.each{ |language|
attributes[language] = {...