Francesco Lunelli wrote:
> In the old version of Radiant I created sites with all controllers,
> models etc in the site so I modified them to avoid that the default
> values was inserted in the db.
> But now I migrated to the new version of Radiant 0.6.1 and all the code
> of Radiant is in the gem. How can I ovewrite the default functionality
> and insert my values in published_at column?
Can you use the console?
$ script/console productionLoading production environment.
>> page = Page.find_by_url('/')
=> #<Page:0x365b8fc @parent=, @attributes={"virtual"=>"0", ...
>> page.published_at = Date.parse('1/1/2000')
=> #<Date: 4903089/2,0,2299161>
>> page.save!
=> true
>>
--
John Long
http://wiseheartdesign.com
_______________________________________________
Radiant mailing list
Post: [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site: http://lists.radiantcms.org/mailman/listinfo/radiant