notes/ara.txt in ro-1.1.1 vs notes/ara.txt in ro-1.2.0

- old
+ new

@@ -1,5 +1,124 @@ + + +- nodes have fields + - fields know from whence them came + +- how to paginate collections + + Source.all.page(2).per(10) + +- find by name/slug + + Source.find(name) + + source.save(message) + + editing... + + + todo: + + - nodes can be edited + - assume git + - know from whence all data came + - @loaded[path] => key + - + maybe just node.save!(message) + + loop do + + # commit + git add --all . + git commit -m message -- . + + git reset --hard OR git checkout -f + retry + + end + + + + loop + + git push + + git pull + + # publish + git checkout --ours -- . + git add --all . + git commit -F .git/MERGE_MSG + git push + + end + + + - ./assets + + - @attributes, @sources, @urls + + + - ro::model + + class Post < Ro::Model + root 'ro' + + directory 'posts' + + attributes( + ) + + files( + 'bio.md.erb' + ) + + assets( + 'logo.jpg' + ) + + sources( + 'a.rb' + ) + + schema { + + attribute :first_name + attribute :last_name + + template 'bio.html.erb' + + } + + :attributes => { + :first_name => nil, + }, + + 'templates' => { + 'bio.html.erb' + }, + + assets + ) + + def Post.find(*args) + end + + def Post.where(*args) + end + + def save + saved = ( + save_attributes && + save_files && + save_assets && + save_sources + commit + ) + end + end + - helper/model extension ? Ro.helper(:posts) do end