<< 20160802-migrate-davaz-com | Index | 20160727-migrate-davaz-com-dojo-widgets >>
update action does not work. Before continue migrating dojo widgets, I have to fix this.
[1] 2.3.1-p112(#<DAVAZ::Util::DbManager>)> conn.insert_id NoMethodError: undefined method `insert_id' for #<Mysql2::Client:0x00559674d39f90> from (pry):4:in `block (2 levels) in update_artobject'
This error caused by change of new mysql library.
Commit: Fix artobject update (use prepare statement)
DbManager's query method kills exception. It seems that this is not good :{
And DbManager does not use transaction.
Add transaction
(begin, commit, rollback) and then remove unnecessary connection pool class.
Updated DbManager.
Commit: Add transaction
After updated, artobject is does not rendered, correctly. Tags are saved, but its are not displayed (in Form)
[2] 2.3.1-p112(#<DAVAZ::View::Works::WorksTitle>)> @session.app.load_artobject("1306") => #<DAVAZ::Model::ArtObject:0x007f2d48a966c8 @artgroup="Sculptures", @artgroup_id="SCU", @artobject_id=1306, ... @serie="black and white", @serie_id="AAG", @serie_position="1", @size="", @tags= [#<DAVAZ::Model::Tag:0x007f2d48a957a0 @name=" Georgien", @tag_id=70>, #<DAVAZ::Model::Tag:0x007f2d48a956b0 @name="Dong", @tag_id=99>], @text="", ...
In States, admin
and ajax
prefixes are scuffled each other and, pretty duty.
And many unused states class are still there.
Then I've decide to refactor these at now.
z.B.
Mostly, multiple another classes are also defined in a single ruby file.
This makes more harder to debug, improve application.
So, I would like to clean a little more...
DAVAZ
(and Davaz) modules to DaVaz
Commit: [WIP] Refactor ruby files :( (huge!)
Continue tomorrow.