factorize the column class definition in the top of the file to avoid repetition: css_col_label = ....
fix: use update_attributes instead of update in controllers
replace occurrences of link_to <url> by link_to(<url>)
factorize code to handle errors in controllers (create an on_save_error function)
verify Json serializers
upgrade from FactoryGirl (deprecated) to FactoryBot
fixing factories (record, statement, etc). user_id needs to be consistent
add an helper in spec/helpers to help generate attributes based on FactoryGirl.build(:model) but without relationships (e.g attributes ending with _id)
<span />
from forms?css_col_label = ...
.update_attributes
instead ofupdate
in controllerslink_to <url>
bylink_to(<url>)
record
,statement
, etc).user_id
needs to be consistentspec/helpers
to help generate attributes based onFactoryGirl.build(:model)
but without relationships (e.g attributes ending with_id
)