hen, email lo gw forward ke temen2 id-ruby aja ya, gw lagi belom sempat mainan sopwer rev control lagi nih semenjak yg di bandung dulu itu. kabar terakhir ya yang di bandung dulu itu, si niwatori sempet gw coba suruh register di http://repo.or.cz terus kata niwatori itu gak pake password password an kayak kita kalau mainan svn, jadi yang punya passwordnya ya yang pertama kali bikin software nya naroh di repositori disitu. Itu soal yang boxroom-stian nih http://repo.or.cz/w/boxroom-stian.git
lalu soal yang di gw dulu sih gw sempet bengong kalo kita push itu kemana / jadi kayak kalo kita svn commit di svn itu lho, soalnya kalau di git enaknya ya memang pas gw git clone itu, jadi kita bisa aja pasang git init . di mesin yang kita jadikan server repo nih, trus dari mesin lain kita tinggal checkout deh / ato git clone kalo perintah gitnya, cuman gw masih bengong soal analogi svn commit di git itu lho.. mungkin karena dikasih saking mudah/nyaman di git bisa git commit gitu melulu kali ya malah jadi bingung kalo belum liat demo tutorialnya (mungkin kelewat aja mungkin/belum sempat search2x lagi gw). -------- Original Message -------- Subject: bazaar Date: Thu, 12 Jul 2007 20:14:24 +0700 From: Hendy Irawan <[EMAIL PROTECTED]> To: Arie Kusuma Atmaja <[EMAIL PROTECTED]> btw q dah coba bazaar lhoh simple bgt dan juga cepet... kayanya lebih asyik drpd subversion+svk :) enaknya bisa bikin branch/working copy di mana2, sekaligus repository. hemat tempat (mungkin). ga kaya subversion yang spacenya selalu ndobel (repository, ama WC) [EMAIL PROTECTED]:~/project/hobo/manual/mine$ bzr --version Bazaar (bzr) 0.15.0 Using python interpreter: /usr/bin/python Using python standard library: /usr/lib/python2.5 Using bzrlib: /usr/lib/python2.5/site-packages/bzrlib Using bazaar configuration: /home/ceefour/.bazaar Copyright 2005, 2006, 2007 Canonical Ltd. http://bazaar-vcs.org/ bzr comes with ABSOLUTELY NO WARRANTY. bzr is free software, and you may use, modify and redistribute it under the terms of the GNU General Public License version 2 or later. [EMAIL PROTECTED]:~/project/hobo/manual/mine$ bzr log ------------------------------------------------------------ revno: 5 committer: Hendy Irawan <[EMAIL PROTECTED]> branch nick: mine timestamp: Thu 2007-07-12 13:33:05 +0700 message: Update. ------------------------------------------------------------ revno: 4 committer: Hendy Irawan <[EMAIL PROTECTED]> branch nick: mine timestamp: Thu 2007-07-12 13:24:18 +0700 message: Update. ------------------------------------------------------------ revno: 3 committer: Hendy Irawan <[EMAIL PROTECTED]> branch nick: mine timestamp: Thu 2007-07-12 12:54:30 +0700 message: Update. ------------------------------------------------------------ revno: 2 committer: Hendy Irawan <[EMAIL PROTECTED]> branch nick: mine timestamp: Thu 2007-07-12 12:48:46 +0700 message: Hobo model controller. ------------------------------------------------------------ revno: 1 committer: Hendy Irawan <[EMAIL PROTECTED]> branch nick: manual timestamp: Thu 2007-07-12 12:44:07 +0700 message: Added manual. [EMAIL PROTECTED]:~/project/hobo/manual/mine$ bzr diff ../orig . === modified file 'hobomanual.txt' --- hobomanual.txt 2007-07-12 05:43:57 +0000 +++ hobomanual.txt 2007-07-12 06:32:54 +0000 @@ -506,7 +506,17 @@ <li>Documentation</li> </ul> </div> - + +### Appending or prepending content + +You can use `.bottom_content` to append or `.top_content` to prepend the content. Example usage: + + <categories attr="categories"> + <:heading.bottom_content class="small">post<b>CATEGORIES</b></:heading> + </categories> + +So instead of replacing the tag or the contents of the tag, it will append the parameter tag's contents. + ### `replace_option` example With `replace_option` the entire inner tag is replaced: @@ -793,14 +803,20 @@ # 4. Hobo Model Controller -To enable +To enable: class MyController < ApplicationController hobo_model_controller end -(or use the `hobo_model_controller` generator) - +Or use the `hobo_model_controller` generator: + + $ script/generate hobo_model_controller Person + +Make sure you already have a corresponding Hobo model. For example, to use the hobo model controller generator for Person model (which will generate the People controller), generate the Hobo model Person first: + + $ script/generate hobo_model Person name:string age:integer created_at:datetime updated_at:datetime + ## CRUD Actions The controller automatically provides: @@ -815,6 +831,20 @@ `index` will automatically paginate and orders the records according to their `default_order` (see Model Extensions). +## Changing the model name + +The model controller defaults to the model that is inferred by singularizing the controller name. For example, if your controller's name is "Accounts", the model controller will use the "Account" model. + +You can specify the model name manually by adding inside your controller class: + + self.model = YourModelClass + +For example, add to `app/controllers/books_controller.rb`: + + self.model = CustomBook + +which will make Hobo model controller use the CustomBook model class instead of Book class. + ## Default page tags The viewable actions - `index`, `show`, `new`, and `edit` are rendered using corresponding view templates as with regular Rails. If the template is missing, Hobo will render a tag in order to create a default page. @@ -1379,6 +1409,12 @@ NOTE: `new_without_appending` is an awful name and will change at some point! +The element that will be updated by the AJAX call will need to be marked using the `part_id` attribute: + + <div part_id="comments"> + No comments yet. + </div> + ### `<remote_method_form>` POSTs to the URL of a remote method (declared via a `web_method` declaration in your controller). gimana kabar git-mu? Oyah, satu kelebihan bazaar dibanding git adalah dia pake python. Jadi harusnya jalan di windows juga (?) kalo git gmn? terakhir gw denger sih masih banyak pake shell script jadi belum bisa di windows -- r9 = { nama: Arie, nick: ariekeren, ym!: riyari3, blog: http://ariekusumaatmaja.wordpress.com, myst: http://groups.yahoo.com/groups/id-ruby, vilr: %Q~ function! WhitePearl() perl << EOF VIM::Msg("pearls are nice for necklaces"); VIM::Msg("rubys for rings"); VIM::Msg("pythons for bags"); VIM::Msg("tcls????"); EOF endfunction ~ }

