[00:47:05]  Erop (~chatzilla@S0106001d098e7fbc.vc.shawcable.net) joined #markus.
 [00:51:19]  Erop (~chatzilla@S0106001d098e7fbc.vc.shawcable.net) left irc: Client Quit
 [05:04:44]  sky__ (~sky@d207-6-160-84.bchsia.telus.net) left #markus.
 [08:58:04]  dadacha (ddadacha@nat/redhat/x-uwrxcjwfzzmnhxjs) joined #markus.
 [09:01:23]  xddadacha (ddadacha@nat/redhat/x-fiwxflcxvjxoyiro) left irc: Ping timeout: 244 seconds
 [11:17:20]  karenreid (~karenreid@bas1-toronto05-1088884743.dsl.bell.ca) joined #markus.
 [11:38:21]  karenreid (~karenreid@bas1-toronto05-1088884743.dsl.bell.ca) left irc: Remote host closed the connection
 [11:38:31]  karenreid (~karenreid@vpn-shaper02.cs.toronto.edu) joined #markus.
 [11:38:51]  #markus: mode change '+o karenreid' by MarkUsBot!~MarkUsBot@li136-145.members.linode.com
 [12:27:14]  aimenk (~aimenk@CPE00226b45e6b2-CM001ac318b812.cpe.net.cable.rogers.com) joined #markus.
 [12:28:38] <aimenk>  hey dadacha u there?
 [12:39:17]  Nick change: aimenk -> aimen_afk
 [12:39:38]  aimen_afk (~aimenk@CPE00226b45e6b2-CM001ac318b812.cpe.net.cable.rogers.com) left irc: Remote host closed the connection
 [12:39:54]  aimenk (~aimenk@CPE00226b45e6b2-CM001ac318b812.cpe.net.cable.rogers.com) joined #markus.
 [12:40:14]  Nick change: aimenk -> aimen_afk
 [12:53:32]  Nick change: aimen_afk -> aimenk
 [13:55:11]  baadshah (~jay@CPE001346fab9ed-CM602ad086fb19.cpe.net.cable.rogers.com) joined #markus.
 [13:55:32]  karenreid (~karenreid@vpn-shaper02.cs.toronto.edu) left irc: Quit: karenreid
 [14:02:34]  dddadacha (ddadacha@nat/redhat/x-rjcsmrtrojifvmkx) joined #markus.
 [14:06:58]  dadacha (ddadacha@nat/redhat/x-uwrxcjwfzzmnhxjs) left irc: Ping timeout: 260 seconds
 [14:17:32] <aimenk>  dddadacha: hi
 [16:08:17]  baadshah (~jay@CPE001346fab9ed-CM602ad086fb19.cpe.net.cable.rogers.com) left irc: Ping timeout: 260 seconds
 [16:13:35]  baadshah (~jay@CPE001346fab9ed-CM602ad086fb19.cpe.net.cable.rogers.com) joined #markus.
 [16:19:18]  baadshah (~jay@CPE001346fab9ed-CM602ad086fb19.cpe.net.cable.rogers.com) left irc: Quit: leaving
 [16:33:26]  baadshah (~jay@CPE001346fab9ed-CM602ad086fb19.cpe.net.cable.rogers.com) joined #markus.
 [17:58:19] <aimenk>  heyy
 [18:16:44]  baadshah (~jay@CPE001346fab9ed-CM602ad086fb19.cpe.net.cable.rogers.com) left irc: Quit: leaving
 [18:34:52]  ddadacha (~ddadacha@173-230-167-62.cable.teksavvy.com) joined #markus.
 [18:49:40] <ddadacha>  aimenk: so can you paste the view
 [18:49:46] <aimenk>  yea
 [18:49:48] <aimenk>  let me do that
 [18:49:50] <aimenk>  give me a sec
 [18:49:53] <ddadacha>  and the def
 [18:49:54] <ddadacha>  sure tyt
 [18:50:54] <aimenk>  http://pastie.org/3573902
 [18:51:33] <aimenk>  variable is @column_group_name
 [18:52:13] <aimenk>  http://pastie.org/3573906 this is in submissions_table_sorting_link.html.erb
 [18:52:32] <ddadacha>  ty
 [18:55:13] <aimenk>  np
 [18:55:17] <aimenk>  so yeaaa
 [18:55:23] <aimenk>  do i have to render anything?
 [18:56:22] <ddadacha>  aimenk: yeah how are you getting from from the func to submissions_table_sorting_link
 [18:56:56] <aimenk>  i m not sure how to render it
 [18:56:59] <aimenk>  :s
 [18:57:05] <aimenk>  i looked it up and was figuring it out
 [18:57:33] <aimenk>  but couldn't figure out anything
 [18:57:45] <aimenk>  rendering things is a bit complicated :S
 [18:57:50] <ddadacha>  aimenk: where are the view and controller with the func located
 [18:57:52] <ddadacha>  ?
 [18:58:24] <aimenk>  the view is under in submissions folder
 [18:59:06] <aimenk>  and i put the def column_filter_headers in submissions_controller
 [18:59:26] <ddadacha>  okay sweet
 [18:59:37] <ddadacha>  so all you should need is 'render :name-of-view'
 [19:00:06] <ddadacha>  aimenk: if you don't give a path to render, it will look in the current controller's view folder by default
 [19:00:54] <aimenk>  so i do render :template => 'submissions_table_sorting_link'
 [19:00:57] <aimenk>  ?
 [19:01:17] <ddadacha>  nope
 [19:01:22] <ddadacha>  render :submissions_table_sorting_link
 [19:02:11] <aimenk>  in the def
 [19:02:15] <aimenk>  before end?
 [19:02:21] <ddadacha>  aimenk: beacuse submissions_table_sorting_link is in the current controller's view folder, it associates all the views in that folder (in your case submissions views folder) as :name-of-file
 [19:02:25] <ddadacha>  yeah
 [19:02:37] <ddadacha>  anything after render won't be reached
 [19:02:52] <ddadacha>  it's basically saying now load this page and let the user tell you what to do from there
 [19:03:06] <ddadacha>  aimenk: I'm going afk for 10-15, be back then
 [19:03:14] <aimenk>  okk
 [19:03:19] <aimenk>  render didnt work thu :(
 [19:19:34] <ddadacha>  aimenk: can you repaste the def
 [19:19:41] <aimenk>  yess
 [19:19:43] <aimenk>  give me a sec
 [19:19:59] <aimenk>  http://pastie.org/3574048
 [19:20:02] <aimenk>  in the before_filter
 [19:20:08] <aimenk>  i also wrote it
 [19:20:14] <aimenk>  i m not sure if i m suppose to do that
 [19:20:20] <ddadacha>  no you aren't
 [19:20:21] <ddadacha>  remove that
 [19:20:24] <aimenk>  okk
 [19:20:46] <aimenk>  still didnt work thu
 [19:21:57] <aimenk>  so there r two places in view where i type the if statment
 [19:22:07] <ddadacha>  aimenk: is that the entire view you posted earlier?
 [19:22:27] <aimenk>  the other one is app/views/submissions/submissions_table_row/_table_row.html.erb
 [19:22:57] <aimenk>  sorry which view ddadacha
 [19:23:06] <ddadacha>  aimenk: what's the entire path of submissions_table_sorting_link
 [19:23:14] <aimenk>  oh
 [19:23:35] <aimenk>  app/views/submissions/_submissions_table_sorting_links.html.erb
 [19:23:48] <ddadacha>  ah
 [19:23:49] <ddadacha>  that's why
 [19:23:53] <ddadacha>  it's a partial
 [19:23:57] <ddadacha>  not a view
 [19:23:59] <ddadacha>  because it has _
 [19:24:01] <aimenk>  oh
 [19:24:04] <ddadacha>  err starts with _
 [19:24:07] <aimenk>  so confusing
 [19:24:09] <aimenk>  lol
 [19:24:13] <ddadacha>  so instead what you need to do is this
 [19:24:29] <ddadacha>  render :partial => 'submissions_table_sorting_links'
 [19:24:39] <aimenk>  k i'll try
 [19:24:54] <ddadacha>  aimenk: was what you pasted earlier the entire file?
 [19:25:26] <ddadacha>  ah I see now
 [19:25:27] <ddadacha>  not
 [19:25:28] <aimenk>  stil didn;t work
 [19:25:36] <ddadacha>  thought you were making this entire file
 [19:25:42] <aimenk>  like the group name column doesnt show
 [19:26:12] <aimenk>  cos i set the column_group_name = true
 [19:26:24] <aimenk>  but the group name column is not showing :s
 [19:26:27] <aimenk>  even after the partial
 [19:29:51] <ddadacha>  aimenk: you're using @ still right?
 [19:29:57] <aimenk>  yeaa
 [19:30:08] <ddadacha>  aimenk: so from what I understand, if that var is ture then the column should show?
 [19:30:14] <aimenk>  yess
 [19:30:20] <aimenk>  if its false it won't
 [19:31:21] <ddadacha>  aimenk: k so what's happening
 [19:31:31] <ddadacha>  when you go to the page
 [19:31:42] <aimenk>  so currently its not showing the column
 [19:31:45] <aimenk>  group name
 [19:31:52] <aimenk>  as i have set up the if statement
 [19:33:15] <aimenk>  this is my if statement
 [19:33:15] <aimenk>  http://pastie.org/3574104
 [19:33:16] <ddadacha>  aimenk: I suggest debugging it then because it should be
 [19:33:51] <ddadacha>  aimenk: put a debugger in the controller func and then one more in the partial
 [19:33:56] <ddadacha>  see if it's reaching the partial before the if
 [19:34:02] <ddadacha>  then p @column_group_name
 [19:34:09] <ddadacha>  it'd be nil if something is not right
 [19:34:36] <ddadacha>  could you paste the render line?
 [19:34:42] <ddadacha>  the one line in here's fine
 [19:34:49] <aimenk>  yess
 [19:35:14] <aimenk>  http://pastie.org/3574111
 [19:37:32] <ddadacha>  aimenk: now that it's a partial btw you should be using the locals variable..makes it slightly more complicated but it's more appropriate here I think
 [19:38:15] <aimenk>  where do i use the locals variable?
 [19:38:37] <ddadacha>  render :partial => "submissions_table_sorting_links", :locals => {:column_group_name => ture}
 [19:38:51] <ddadacha>  and then in the view you access it by doing if params[:column_group_name]
 [19:39:01] <aimenk>  ohhh
 [19:39:03] <aimenk>  let me try
 [19:39:07] <ddadacha>  you'd have to be passing this in whenever you render each partial
 [19:39:20] <ddadacha>  it should have worked the way it is now though so debug it after that
 [19:39:54] <aimenk>  so no need for @column_group_name = true?
 [19:40:01] <aimenk>  i still need to put this in a def right?
 [19:41:56] <aimenk>  tried this
 [19:41:56] <aimenk>  http://pastie.org/3574144
 [19:42:25] <aimenk>  do i have to say render :partial => "submissions_table_row/table_row", :locals => {:column_group_name => ture}
 [19:42:37] <aimenk>  since its in the submissions_table_row folder
 [19:42:52] <ddadacha>  why do you have 2 renders? The second one is never reached
 [19:43:16] <aimenk>  the information for the table is in 2 files
 [19:43:22] <aimenk>  one file has the header name "group name"
 [19:43:38] <ddadacha>  yeah you do _not_ need @column_group_name anymore, you're passing it into the view via locals
 [19:43:42] <aimenk>  the other file has the information of the table e.g the name of the group
 [19:46:46] <ddadacha>  aimenk: okay I think you're heading in the wrong direction
 [19:46:53] <aimenk>  hmm
 [19:46:56] <ddadacha>  aimenk: just tell me again, what exactly do you want to do?
 [19:47:05] <aimenk>  okk well for now
 [19:47:26] <aimenk>  i just want to have a global variable like column_group_name
 [19:47:36] <aimenk>  if its true it'll show the table column else not
 [19:48:23] <ddadacha>  and the big picture?
 [19:48:36] <aimenk>  i have a modal box that has list of column name (group name, repository, commit date etc. )
 [19:49:00] <aimenk>  so basically when i click the check box of group name, the @column_group_name is true
 [19:49:03] <aimenk>  and it shows the table
 [19:49:24] <aimenk>  if its not check the @column_group_name variable is false and the column is not displayed
 [19:49:51] <aimenk>  i havent implemented the part where the checkbox changes the @column_group_name to true or false yet
 [19:49:56] <aimenk>  but that would have been the next step
 [19:50:35] <ddadacha>  right
 [19:50:46] <ddadacha>  okay so what did you try to do?
 [19:51:04] <aimenk>  sooo
 [19:51:10] <ddadacha>  just trying to get at your train of thought on this =)
 [19:51:15] <aimenk>  i just want to have @column_goup_name work
 [19:51:26] <aimenk>  like whether its true column shows, if not true column doesnt show
 [19:51:31] <ddadacha>  right I got that
 [19:51:37] <ddadacha>  so you made a new function
 [19:51:43] <ddadacha>  and want it to render the views accordingly
 [19:51:45] <ddadacha>  right?
 [19:51:47] <aimenk>  yesss
 [19:52:20] <ddadacha>  aimenk: so why did you want to make a new function?
 [19:52:28] <aimenk>  well i was trying everything
 [19:52:33] <aimenk>  i don't really need a new function
 [19:52:40] <aimenk>  i just need the variable @column_group_name
 [19:52:55] <aimenk>  but i couldn't really figure out how to go about it without creating a function
 [19:53:01] <aimenk>  so that's why i m stuck lol
 [19:53:09] <ddadacha>  aimenk: so the current function that renders those tables is browse
 [19:53:13] <ddadacha>  (in submissions_controller
 [19:53:31] <ddadacha>  it does some crazy stuff..
 [19:53:47] <ddadacha>  but it _eventually_ reaches the 2 partials you're trying to modify
 [19:53:59] <aimenk>  does it?
 [19:54:04] <ddadacha>  yes
 [19:54:10] <aimenk>  so i could put @column_group_name = true there
 [19:54:10] <aimenk>  hmm
 [19:54:32] <ddadacha>  func browse will render the browse view eventually (by default, if no view is explicitly been told to render)
 [19:54:46] <ddadacha>  and that view eventually renders your stuff I believe
 [19:55:23] <ddadacha>  aimenk: you can figure it out by trying to search for the names of partials you're modifying in views/submissions
 [19:55:26] <aimenk>  aaahhhh
 [19:55:29] <aimenk>  finally its working
 [19:55:36] <ddadacha>  aimenk: nice.
 [19:55:49] <aimenk>  how do u know what is rendering what in controllers
 [19:55:55] <aimenk>  like which functions r rendering which page
 [19:56:07] <ddadacha>  aimenk: so from here what you probably want to do is create some dict or some such that defines all these vars as true by default
 [19:56:14] <aimenk>  cos that's what i was trying to figure out before what was rendering the page
 [19:56:20] <aimenk>  yesss
 [19:56:24] <ddadacha>  then when you call your modal, set whichever ones and then redirect to browse again
 [19:56:43] <aimenk>  like refresh the page?
 [19:56:45] <ddadacha>  eventually you'll want to tweak it to replace the html so that the idea of a refresh doesn't happen
 [19:57:05] <ddadacha>  yeah but that's not exactly the most stylish thing to do
 [19:57:12] <ddadacha>  TBH I don't know much about that stuff