wrote:
> etc.. And I think I should re-"svn co" today's update.
yeah, once you get used to svn, you'll do often svn up when toombila
developers grow / you know, like everyday or perhaps every 2 or 3
hours commit to trunk.
Actually there is "udang dibalik batu" err... "my wish" when every
toombila developers get used to svn, I want advanced svn usage being
practiced. so there would be branch, bug, known bug, leaving history,
oh well... of course Niwatori-kun must not develop it lonely. Others
must do things too.
>
> > Many Unit Testing.
> > Actually want to do Functional Testing and even Integration Testing,
> > but Toombila complains more and more about MVC, controller's logic
> > first, so I don't touch it.
>
> Sorry to hear that, what kind of MVC complains?
like :
sayang:~/toombila arie$ svn di app/views/content/index.rhtml -rPREV
ariekusuma at rubyforge.org's password:
ariekusuma at rubyforge.org's password:
Index: app/views/content/index.rhtml
===================================================================
--- app/views/content/index.rhtml (revision 13)
+++ app/views/content/index.rhtml (working copy)
@@ -1,34 +1,7 @@
-
-
- <% show_front(1,5,'',0,1) %>
- <%= @content %>
+ <%= content(@category1, @pages1) %>
- <% show_front(2,5,'',0,1) %>
- <%= @content %>
-
+ <%= content(@category2, @pages2) %>
+
\ No newline at end of file
sayang:~/toombila arie$
that content usage complains when I do functional test here :
sayang:~/toombila arie$ svn di test/functional/content_controller_test.rb -rPREV
ariekusuma at rubyforge.org's password:
subversion/libsvn_client/ra.c:815: (apr_err=195012)
svn: Unable to find repository location for
'test/functional/content_controller_test.rb' in revision 13
sayang:~/toombila arie$ svn cat
test/functional/content_controller_test.rb
require File.dirname(__FILE__) + '/../test_helper'
require 'content_controller'
# Re-raise errors caught by the controller.
class ContentController; def rescue_action(e) raise e end; end
class ContentControllerTest < Test::Unit::TestCase
def setup
@controller = ContentController.new
@request = ActionController::TestRequest.new
@response = ActionController::TestResponse.new
end
just take a look at only one method test_index below, we know it
should assign category and pages, but.. oh well, MVC complains ..
trace the log for that.
# still errors
# def test_index
# get :index
# assert_response :success
#
# assert assigns(:category1)
# assert assigns(:category2)
# assert assigns(:pages1)
# assert assigns(:pages2)
# end
# def test_show
# get :show, :id => 2
# assert_response :success
#
# assert assigns(:page)
# assert assigns(:pages_part)
# end
end
sayang:~/toombila arie$
>
> > Fix AR Association
> > use form_tag do and end, instead of the deprecated start_form_tag, but
> > better use form_for
> > use 1 action method instead of bloated 4 action methods (new, create,
> > edit, update) into (edit).
> > If you didn't do TDD (Testing Driven Development) at least do not
> > remove them so I don't have to regenerate and skip (although it's just
> > fast on my laptop, but it's annoying, but to tell you the truth it
> > didn't make me angry, so you're lucky).
>
> Now I'm starting to understand what you've called with "it's fun
> reading somebody else codes/svn". I've opposing my previous code with
> some latest code and I'm learning so much. Yappari omoshiroi yo!
yeah, as it's coming more and more interesting perhaps you should make
a special topic to blog about this reading source code is fun. ;)
again "udang dibalik batu" or "my wish" would Indonesian people ...
errrr... Toombila developers .. errr ... .there would be many many
more rubyists in Indonesia.
> > added TODO
> > added MAINTAINER
> > added lang-fr.rb but has not finished, shame on you, ArieKeren!
>
> Ah now I remembered, I'd like to ask something about this constant
> method I used for language files handling (eg,: NAME="Nama"). Is it
> reserving memory resources? If it did, is it will be okay when the
> vocabularies getting bigger?
Analogy: of course using tbl_name for MySql table would be exaggeration.
Using xml_files for table name would be good, but using xml_files as a
field for it will be degrading it, so you'll have to do useless
exageration @xml_file.xml_files in your view with your poor fingers.
That's from poor fingers perspective. Now, from you name it :
reserving memory resources, or I'd say it benchmarking, good question,
you should do it from benchmare, check your pickaxe2 to do benchmark
for that, and for many other related ruby/rails issues, like " (double
quote) VS ' (single quote) usage. Array.uniq ... could be from
profiler and benchmark from rails, but i'd rather choose different
ruby codes for that.
>
> > Beautify Indentation
>
> Thx for this neato efforts :D Now I'm using radrails so my codes will
> be more neat than before when I'm still using gedit (now I can do a
> whole blocks/lines indentation, yay! no more lazy tabbing ^_^)
yeah, we shouldn't always press tab, even when dealing with YAML who
hates tabs, we shouldn't press space 2 times for always, ViM do the
great job for it, but I used TextMate mostly though
> > change public field, do not confuse yourself with Ruby public,
> > protected, private
>
> still don't get it, sorry. will catch up later (again :P)
ArieKeren's rule: you musn't name a field with Ruby's encapsulation. ex.
script/generate scaffold_resource Bookmark name:string url:string shared:boolean
yes I admit I do hate when someone used scaffold that one line above I
used would only for a simple explanation purpose, you know, I change
public to shared and set boolean as its type.
>
> > use select helper, not doing looping from view like PHP. Whilst it's
> > up to developers to set array values for options in View, like what
> > agile said or in Controller, like what ArieKeren's style
>
> can't run from "it" :P , I think it happens when I can't find sample
> for my select case, the RoR's API info is too short.. googling result
> not very helpful that time.. bad keyword maybe, is it okay to buzz you
> for asking some cheesy "how to use" things like this? I know more
> googling effort must be resulting the answer for this.. but sometimes
> it just lost somewhere how.. :(
Yes you can buzz me via this maillist :p (not YM). Perhaps Indonesian
should force ArieKeren to make ArieKeren's book?
You know what, I still remember Hal (Hal Fulton) kind of roaring at
ruby-talk maillist a loong time ago when Perl guys shouted that they
need a sort of CPAN then there was RubyGems as an answer for that. I,
myself, think rdoc is a paradise for Rubyist, but I see many newbies
out there kind of roaring about how poor rails API, sigh.. once I told
my friend to ask 'em to make Video for my application guide they
(yeah, hackers) laugh and said my dream was too much. So, ArieKeren's
Book with Video sounds cool? Hope ArieKeren's got body and soul more
than 9.
>
> > destroy should be :method => :delete
> > place all css in css file
> > many many code refactor, documentations added in source code.
>
> arigatou gozaimasu! thank you very much!
>
> too many things to do and too many things to learn.. somehow starting
> feeling tired and hopeless *__* argh..
>
> Regards,
> Niwatori
> www.diki.or.id
> _______________________________________________
> Toombila-mailinglist mailing list
> Toombila-mailinglist at rubyforge.org
> http://rubyforge.org/mailman/listinfo/toombila-mailinglist
>
--
Arie Kusuma Atmaja A.K.A Arie A.K.A ariekeren | YM! = riyari3
http://ariekusumaatmaja.wordpress.com
http://groups.yahoo.com/groups/id-ruby
http://groups-beta.google.com/group/id-jp # ayo praktek bahasa jepang!
http://groups-beta.google.com/group/id-fr # ayo praktek bahasa prancis!
From ariekusumaatmaja at gmail.com Wed Mar 7 01:56:26 2007
From: ariekusumaatmaja at gmail.com (Arie Kusuma Atmaja)
Date: Wed, 7 Mar 2007 13:56:26 +0700
Subject: [toombila] Tut Wuri Handayani Toombila svn commit
In-Reply-To: <8c1bd61c0703062234ib33353fv68201998a3650149@mail.gmail.com>
References: <8c1bd61c0703061856l24c1b9bcj7392865d856f923b@mail.gmail.com>
<7e97dfb80703062114g765d6519y35fed0293685625e@mail.gmail.com>
<8c1bd61c0703062234ib33353fv68201998a3650149@mail.gmail.com>
Message-ID: <8c1bd61c0703062256r239da38ci97a3385ccfd80d00@mail.gmail.com>
On 3/7/07, Arie Kusuma Atmaja wrote:
> On 3/7/07, diki at diki.or.id wrote:
> > etc.. And I think I should re-"svn co" today's update.
>
> yeah, once you get used to svn, you'll do often svn up when toombila
> developers grow / you know, like everyday or perhaps every 2 or 3
> hours commit to trunk.
>
> Actually there is "udang dibalik batu" err... "my wish" when every
> toombila developers get used to svn, I want advanced svn usage being
> practiced. so there would be branch, bug, known bug, leaving history,
> oh well... of course Niwatori-kun must not develop it lonely. Others
> must do things too.
this is a great place to see svn used :
http://dev.rubyonrails.org/timeline
--
Arie Kusuma Atmaja A.K.A Arie A.K.A ariekeren | YM! = riyari3
http://ariekusumaatmaja.wordpress.com
http://groups.yahoo.com/groups/id-ruby
http://groups-beta.google.com/group/id-jp # ayo praktek bahasa jepang!
http://groups-beta.google.com/group/id-fr # ayo praktek bahasa prancis!
there are lurkers who suck blood like dracula, beware of their fanks
From diki at diki.or.id Thu Mar 8 12:35:28 2007
From: diki at diki.or.id (diki at diki.or.id)
Date: Fri, 9 Mar 2007 00:35:28 +0700
Subject: [toombila] add mac
In-Reply-To: <8c1bd61c0703060223ub7eb161kc4923dbd3ff4e907@mail.gmail.com>
References: <8c1bd61c0703060223ub7eb161kc4923dbd3ff4e907@mail.gmail.com>
Message-ID: <7e97dfb80703080935r2db16783o8013ef6c59d366ca@mail.gmail.com>
On 3/6/07, Arie Kusuma Atmaja wrote:
> http://rubyforge.org/projects/toombila
> how to add mac also besides windows and linux at the page? I feel like
> an idiot not that familiar with this rubyforge navigation hehe, sorry.
Same as sourceforge, it was called trove classification. Just use
(project's) Admin link to edit trove's dropdown options.
Now Mac has been added ;)
Sorry I'm forgot to include it. My iBook's electric adaptor blew up,
didn't use mac for three weeks :((
Regards,
Niwatori
From diki at diki.or.id Thu Mar 8 13:06:08 2007
From: diki at diki.or.id (diki at diki.or.id)
Date: Fri, 9 Mar 2007 01:06:08 +0700
Subject: [toombila] ArieKeren's suspicious note
Message-ID: <7e97dfb80703081006n2e309623n255ff631e30054ab@mail.gmail.com>
# ArieKeren's suspicious note: What's this one line below for?
@addressgroup = Addressgroup.find( :all, :conditions =>
["addressbook_id = ?", params[:id] ] )
In our addressbook we can create some group (addressgroup) to
categorize our contacts (like in the mobile phone, u know the
"friends, officemate, love etc." stuff :P). That line function is to
check is there any addressgroup are made by us, if there is existing
addressgroups then we'll have @addressgroup filled with our
addressgroup names and will be listed on new contact form.
And yes as your note said, I'll create method for this code.
Regards,
Niwatori
www.diki.or.id
From ariekusumaatmaja at gmail.com Thu Mar 8 22:15:39 2007
From: ariekusumaatmaja at gmail.com (Arie Kusuma Atmaja)
Date: Fri, 09 Mar 2007 10:15:39 +0700
Subject: [toombila] browsable svn source code & Revision History
Message-ID: <45F0D15B.8000407@gmail.com>
check this out
http://rubyforge.org/scm/?group_id=1850
I prefer people can browse toombila source code in svn and also know
revision history.
Could Niwatori-kun set that? tq
--
Arie Kusuma Atmaja A.K.A Arie A.K.A ariekeren / YM! = riyari3
http://ariekusumaatmaja.wordpress.com http://groups.yahoo.com/groups/id-ruby
http://groups-beta.google.com/group/id-jp # mari praktik bercakap jepang!
http://groups-beta.google.com/group/id-fr # mari praktik bercakap prancis!