[00:25:11]  Nick change: m_conley -> m_conley_away
 [00:37:04]  Ayaya-Aaron-MBP (~Ayaya-Aar@host193-234.wifi.ubc.ca) left irc: Quit: Ayaya-Aaron-MBP
 [00:40:43]  Ayaya-Aaron-MBP (~Ayaya-Aar@host193-234.wifi.ubc.ca) joined #markus.
 [00:46:54]  Ayaya-Aaron-MBP (~Ayaya-Aar@host193-234.wifi.ubc.ca) left irc: Quit: Ayaya-Aaron-MBP
 [01:47:17]  Ayaya-Aaron-MBP (~Ayaya-Aar@S010600059a3c7a00.vf.shawcable.net) joined #markus.
 [01:55:17]  lissyx (~alex@2a01:240:fe3c:3:221:6bff:fe12:74cc) left irc: Ping timeout: 240 seconds
 [01:55:30]  ayrus (~ayrus@user6-20.wdw-res.utoronto.ca) joined #markus.
 [01:55:35]  Nick change: ayrus -> Guest52941
 [01:56:15]  Guest52941 (~ayrus@user6-20.wdw-res.utoronto.ca) left #markus.
 [02:01:35]  Ayaya-Aaron-MBP (~Ayaya-Aar@S010600059a3c7a00.vf.shawcable.net) left irc: Quit: Ayaya-Aaron-MBP
 [02:40:39]  lissyx (~alex@ joined #markus.
 [02:47:57]  lissyx (~alex@ left irc: Ping timeout: 240 seconds
 [03:21:38]  lissyx (~alex@ joined #markus.
 [04:08:39]  Ayaya-Aaron-MBP (~Ayaya-Aar@S010600059a3c7a00.vf.shawcable.net) joined #markus.
 [04:12:17]  jay (~jay@CPE001346fab9ed-CM602ad086fb19.cpe.net.cable.rogers.com) joined #markus.
 [04:12:23]  Nick change: jay -> baadshah
 [04:12:30]  baadshah (~jay@CPE001346fab9ed-CM602ad086fb19.cpe.net.cable.rogers.com) left irc: Client Quit
 [05:49:20]  Ayaya-Aaron-MBP (~Ayaya-Aar@S010600059a3c7a00.vf.shawcable.net) left irc: Quit: Ayaya-Aaron-MBP
 [10:03:13]  Nick change: xddadacha -> ddadacha
 [10:38:59]  tobioboye_ (2663a5a6@gateway/web/freenode/ip. joined #markus.
 [11:24:29]  MarkUsGithubCIA (~MarkUsGit@sh1-ext.rs.github.com) joined #markus.
 [11:24:29] <MarkUsGithubCIA>  [Markus] jerboaa pushed 1 new commit to master: http://git.io/4IYcVQ
 [11:24:29] <MarkUsGithubCIA>  [Markus/master] Show section due date on student view. - Aimen Khan
 [11:24:29]  MarkUsGithubCIA (~MarkUsGit@sh1-ext.rs.github.com) left #markus.
 [12:00:54]  Nick change: Benjamin_V -> Benjamin_V`afk
 [12:30:38]  lissyx (~alex@ left irc: Read error: Operation timed out
 [13:07:47]  lissyx (~alex@ joined #markus.
 [15:36:36]  Ayaya-Aaron-MBP (~Ayaya-Aar@S010600059a3c7a00.vf.shawcable.net) joined #markus.
 [15:37:00] <Ayaya-Aaron-MBP>  hey anyone here??
 [15:41:17] <ddadacha>  Ayaya-Aaron-MBP: hey
 [15:41:36] <Ayaya-Aaron-MBP>  ddadacha: hey!
 [15:41:44] <Ayaya-Aaron-MBP>  Got a quick question about modal dialogs
 [15:42:28] <ddadacha>  Ayaya-Aaron-MBP: same one as last night?
 [15:42:32] <Ayaya-Aaron-MBP>  yeah!
 [15:42:35]  *** ddadacha has it in scrollback
 [15:42:36] <ddadacha>  let me reread
 [15:42:48] <Ayaya-Aaron-MBP>  I still can't figure out how to do the redirection correctly :(
 [15:43:04] <ddadacha>  oh btw, got dota2!!! :D Thanks for the tip on playdota, they handed me one not even a week after!
 [15:43:38] <Ayaya-Aaron-MBP>  niceeeee!
 [15:43:42] <Ayaya-Aaron-MBP>  :D
 [15:43:55] <ddadacha>  Ayaya-Aaron-MBP: I don't quite understnad what you want
 [15:45:07] <Ayaya-Aaron-MBP>  ok well I have link_to_function button which opens a modal dialog
 [15:45:13] <Ayaya-Aaron-MBP>  which is a form for section
 [15:45:24] <ddadacha>  so from the modal, once the user confirms/okays, you want them to redirect to somewhere else?
 [15:45:32] <Ayaya-Aaron-MBP>  yes!
 [15:45:37] <ddadacha>  hmm
 [15:45:41] <Ayaya-Aaron-MBP>  right now, when I submit the form
 [15:45:50] <Ayaya-Aaron-MBP>  it redirects back to the section index page
 [15:46:03] <Ayaya-Aaron-MBP>  because the create() action in section redirects them back there
 [15:46:37] <ddadacha>  create being a function in..?
 [15:46:43] <Ayaya-Aaron-MBP>  section controller
 [15:47:13] <Ayaya-Aaron-MBP>  it checks for if @section.save
 [15:47:26] <ddadacha>  is this create called from anywhere else?
 [15:47:35] <Ayaya-Aaron-MBP>  its called from
 [15:47:39] <Ayaya-Aaron-MBP>  if you go into the section tab
 [15:47:43] <Ayaya-Aaron-MBP>  and click "add section"
 [15:47:44] <ddadacha>  because if it isn't then you can just render some-other-controller-which-renders-your-view
 [15:47:51] <ddadacha>  I can't, at work
 [15:48:06] <Ayaya-Aaron-MBP>  the create is called when you create a new section
 [15:48:14] <ddadacha>  do you know if when calling the create func, you are calling it from the modal?
 [15:48:28] <ddadacha>  perhaps tobioboye_ can help, he's done the role switching modal
 [15:48:29] <ddadacha>  tobioboye_: -^
 [15:48:52] <Ayaya-Aaron-MBP>  alright I'll see what he thinks thanks :)
 [15:49:09] <ddadacha>  well we're both at work :P
 [15:49:19] <Ayaya-Aaron-MBP>  I tried saving the fullpath uri
 [15:49:21] <Ayaya-Aaron-MBP>  into session data
 [15:49:56] <ddadacha>  what I'd try to do is see if you can tell from create whether or not you reached create through the modal dialog, then from there just do a normal RoR redirect (i.e. render a route of the page you want to be at)
 [15:50:14] <tobioboye_>  hey Ayaya-Aaron-MBP are you trying to create a new lecture section from a modal?
 [15:50:24] <Ayaya-Aaron-MBP>  yes!
 [15:50:24] <ddadacha>  that is if you do not want create to always do this...if you don't care that whenever create is called, it'd do this, then no need for hte check
 [15:50:31] <tobioboye_>  ok
 [15:50:48] <tobioboye_>  so you have a link_to_function that opens up the modal?
 [15:50:53] <Ayaya-Aaron-MBP>  yup
 [15:51:57] <Ayaya-Aaron-MBP>  ddadacha: I believe what you said above is where I am stuck, I can't figure out when to redirect to section controller index and when to redirect to the students controller
 [15:52:10] <ddadacha>  Ayaya-Aaron-MBP: ah okay
 [15:52:33] <Ayaya-Aaron-MBP>  i don't know what variable to check in a conditional to figure out which redirection to take!
 [15:52:42] <ddadacha>  tobioboye_: so the problem is, once you confirm the dialog, markus should redirect to a different controller than what it does now. Do you know of some way?
 [15:53:56] <Ayaya-Aaron-MBP>  http://pastie.org/3440494
 [15:54:15] <Ayaya-Aaron-MBP>  this is what I tried to do
 [15:55:35] <Ayaya-Aaron-MBP>  in order for that to work, I need to make a call at some point during the modal dialog which is request.fullpath and assign it to session[:original_uri]
 [15:55:59] <Ayaya-Aaron-MBP>  thats what I am doing to figure out which redirect to branch to
 [16:00:36] <Ayaya-Aaron-MBP>  I tried attaching the :onclick => session[:original_uri] = request.fullpath to the f.submit button
 [16:01:44] <Ayaya-Aaron-MBP>  but for some reason, this on click behaviour ends up on the other form as well (the non-modal dialog form which is used in creating a section in the section tab)
 [16:07:23] <ddadacha>  Ayaya-Aaron-MBP: don't know enough about this stuff to help you right now
 [16:07:25] <ddadacha>  sorry
 [16:07:37] <ddadacha>  I'd have to look into it more and I can't atm, at work :(
 [16:07:39] <Ayaya-Aaron-MBP>  all good, maybe when tobioboye_ is free =)
 [16:07:52] <Ayaya-Aaron-MBP>  Thanks though! :)
 [16:08:00] <ddadacha>  np =)
 [16:08:27] <Ayaya-Aaron-MBP>  ddadacha whats your steam handle let me add you!
 [16:11:13] <ddadacha>  Ayaya-Aaron-MBP: in a pm
 [16:21:25]  lissyx (~alex@ left irc: Ping timeout: 240 seconds
 [16:27:00] <Ayaya-Aaron-MBP>  gonna find a starbucks to work at :) be back on in a few
 [16:27:02]  Ayaya-Aaron-MBP (~Ayaya-Aar@S010600059a3c7a00.vf.shawcable.net) left irc: Quit: Ayaya-Aaron-MBP
 [17:47:09]  Nick change: ddadacha -> xddadacha
 [18:20:44]  Ayaya-Aaron-MBP (~Ayaya-Aar@ joined #markus.
 [18:20:48] <Ayaya-Aaron-MBP>  hello!
 [18:21:40] <Ayaya-Aaron-MBP>  anyone here?
 [18:37:37] <Ayaya-Aaron-MBP>  NelleV: I was wondering if you would be able to help me with these modal dialogs, please let me know when you are free!
 [18:45:54] <NelleV>  Ayaya-Aaron-MBP: Hi !
 [18:46:07] <Ayaya-Aaron-MBP>  Hello!
 [18:46:27] <Ayaya-Aaron-MBP>  Severin said that you might be able to help me with modal dialogs =)
 [18:46:35] <NelleV>  he said that ? :p
 [18:46:45] <NelleV>  last time I did some of those was about three years ago
 [18:46:54] <NelleV>  I can try to help, but javascript isn't my strong point
 [18:47:15] <NelleV>  what's the issue ?
 [18:47:21] <Ayaya-Aaron-MBP>  Well he said it indirectly when he suggested that I implement a modal dialog :)
 [18:47:37] <Ayaya-Aaron-MBP>  the problem is right now, I have a link_to_function which opens a modal dialog
 [18:48:02] <Ayaya-Aaron-MBP>  which opens a form for creating a new section
 [18:48:23] <NelleV>  mmh... I didn't remmeber there was a modal window there
 [18:48:42] <Ayaya-Aaron-MBP>  there isn't if you go from the Section tab -> new section
 [18:49:04] <NelleV>  ah
 [18:49:08] <Ayaya-Aaron-MBP>  but what I am doing is adding a "Add new section" button where you are creating a new student
 [18:49:09] <NelleV>  it's a new form ?
 [18:49:12] <NelleV>  oh, nice !
 [18:49:14] <Ayaya-Aaron-MBP>  yes
 [18:49:32] <Ayaya-Aaron-MBP>  I've used the original new section form as sort of a reference for my new form
 [18:49:46] <Ayaya-Aaron-MBP>  but I'm having issues redirecting it back to the correct page
 [18:49:48] <NelleV>  that sounds good. You'll have redirect issued
 [18:49:51] <NelleV>  issues*
 [18:50:08] <Ayaya-Aaron-MBP>  I'm not sure what I can do to redirect it back
 [18:50:24] <NelleV>  mmh, I've never done that, but maybe we can add a "url_from" somewhere
 [18:51:01] <Ayaya-Aaron-MBP>  I've tried attaching a :onclick => session[:original_uri] = request.fullpath on the submit button
 [18:51:04] <NelleV>  this way the action can redirect where the user came from
 [18:51:22] <NelleV>  and it didn't work ?
 [18:51:23] <Ayaya-Aaron-MBP>  and then doing a check in the section controller create action
 [18:51:34] <Ayaya-Aaron-MBP>  for some reason when I do that
 [18:51:42] <Ayaya-Aaron-MBP>  the original add section form
 [18:51:49] <Ayaya-Aaron-MBP>  gets they :on click behaviour as well!
 [18:52:08] <Ayaya-Aaron-MBP>  http://pastie.org/3440494
 [18:52:21] <NelleV>  I would add that information in both cases
 [18:52:27] <Ayaya-Aaron-MBP>  this is the logic that I added to the section controller, create action
 [18:52:38] <NelleV>  so not using the onclick javascript thingy
 [18:53:03] <NelleV>  this way it can be integrated directly in the form
 [18:53:03] <Ayaya-Aaron-MBP>  where can I find information on how to use the url_from
 [18:53:25] <NelleV>  that's just a name I gave it. I don't know how it is called, but such a method should exist
 [18:54:13] <NelleV>  it is probably in the request
 [18:56:19] <Ayaya-Aaron-MBP>  hmm
 [18:56:32] <Ayaya-Aaron-MBP>  I think I would need to parse the url then
 [18:56:48] <Ayaya-Aaron-MBP>  is that what you were implying?
 [18:57:01] <Ayaya-Aaron-MBP>  save the url in session, then I can parse it within the create action in section controller
 [18:58:01] <NelleV>  I don't know exactly, but there must be a easy way to see where the request came from
 [18:58:38] <NelleV>  I've never done that, so I don't know exactly
 [18:58:46] <NelleV>  and maybe it is not the correct way to do that
 [19:01:36] <Ayaya-Aaron-MBP>  http://pastie.org/3440494 is the form I created for the modal dialog
 [19:01:58] <Ayaya-Aaron-MBP>  you can see that in the submit tag, I attached an on click event
 [19:02:07] <Ayaya-Aaron-MBP>  the one thing I don't understand is
 [19:02:39] <Ayaya-Aaron-MBP>  this behaviour is somehow duplicated in the views/sections/_form.html.erb form as well
 [19:04:47]  aimenk (~aimenk@CPE00226b45e6b2-CM001ac318b812.cpe.net.cable.rogers.com) joined #markus.
 [19:09:48] <NelleV>  I'm nto sure
 [19:12:44] <Ayaya-Aaron-MBP>  no worries, thanks! :)
 [19:43:30] <Ayaya-Aaron-MBP>  crap, I think I know what I did wrong
 [19:44:06] <Ayaya-Aaron-MBP>  I forgot to set the variable back to nil when I returned from the statement =_=
 [19:47:07] <Ayaya-Aaron-MBP>  arch, never mind still not working
 [19:47:13] <Ayaya-Aaron-MBP>  be on a bit later, thanks for your help NellV
 [19:47:17] <Ayaya-Aaron-MBP>  NelleV* :)
 [19:47:20]  Ayaya-Aaron-MBP (~Ayaya-Aar@ left irc: Quit: Ayaya-Aaron-MBP
 [22:59:44]  aimenk (~aimenk@CPE00226b45e6b2-CM001ac318b812.cpe.net.cable.rogers.com) left #markus.