#rubyonrails - Tue 1 May 2007 between 05:39 and 05:46

NY Lost Funds



yafho3872lonny: same, its painful, but in the end its all worth it
nakawireI'm onboard with both of you
yafho3872dang...looks like i'll have to figure this one out...
usually at this point, a guru jumps in and helps
but not today i guess
nakawirehaha
lonnyyafho3872: What the heck are you trying to do again?
yafho3872lonny: im trying to show infinite # of subcategories
by using acts_as_Tree
im having trouble with showing it, not creating it
lonnyyafho3872: Not something I have used before.
yafho3872lonny: same i recently discovered it....yesterday lol
lonny: and i just converted into act_as_tree, and its much convenient
ben_hhi folks
nakawirehey baggend
oops
yafho3872ben_h: u think u could take a look at this
nakawirei hit tab too soon
lonnyyafho3872: Why in the world would you want "infinite" subcategories? And how do you plan to "show" them?
yafho3872ben_h: http://pastie.caboo.se/57900
lonny: by creating a helper_method
lonny: i know its not dificult, im just limited by my ruby skills
lonny: so for instance, if u look at that pastie
lonny: u can see, theres a link to creating new subtasks in each tasks
ben_hi've got a page with a <% form_tag({ <url params> }, { :multipart => true, :onsubmit => "alert('onsubmit called');" }) do %>, but the alert doesn't show when I submit the form. anyone got any ideas I could try to get it to fire?
yafho3872so what acts_As_tree basically does it, it will record the previous id, into the same table field parent_id
hhaamuI know I'm in the wrong channel, but I'm hacking a python app without knowing python and would like to know how to cast a None to an empty string (nil.to_s)
lonnyyafho3872: What is "admin"?
yafho3872thus allowing, infinite tree like associations
lonny: i thought u were doing rails for long time....
nakawireben_h: don't use :onsubmit
aroonisay foo has_one bar.... if i do... @foo.bar = bar ... then i call @foo.save........ will the bar get saved/validated along with my foo.save command?
nakawirecheck out ujs4rails
ben_hnakawire: is there a good alternative?
yafho3872lonny: admin? checks whether the current_user.usertype == admin
nakawirehttp://www.ujs4rails.com/
ben_hnakawire: i need to make a JS method call on submit to start my upload progress bar.
lonnyyafho3872: No, I mean in this particular context (your pastie), what is "admin" supposed to represent? The default controller?
ben_hnakawire: wow, that looks nice
yafho3872admin is just a method

Page: 2 9 16 23 30 37 44 51 58 65 72 79 86 93 100 107 

IrcArchive

NY Lost Funds