Page 1 of 1
[02:28:47] Martyn: https://github.com/walkeriniraq/twitarr/blob/master/app/controllers/forums_controller.rb
[02:29:37] Martyn: BUT .. when the code is actually executed, I get a server 500 error, and the following error in the debugger log
[02:30:59] Martyn: And it's true ... if I print the parameters, there is no evidence that forum_id was passed in
[02:33:57] Martyn: Let me imgur you a screenshot of the interface --- there -should- be an ID, I think
[02:34:34] Martyn: <-- learning Ruby/Rails .. the developer of this app is taking a year off ... but I'm in over my head debugging this issue
[02:41:21] Martyn: Okay, so what I'm looking at is an incomplete implementation by the original developer ...
[02:42:13] Martyn: Radar : In the code https://github.com/walkeriniraq/twitarr/blob/master/app/controllers/forums_controller.rb ... it breaks because params(:forum_id) is not set
[02:46:13] Martyn: Radar : I tried modifying the forums_controller.rb to use "id" insted of "forum_id" .. but the problem is that I don't understand what I'm trying to fix
[02:47:25] Martyn: Okay .. so I'm not ruby/rails conversant yet on the difference .. what is a member block, what is a collection block?
[02:49:53] Martyn: brycesenz : Makes complete sense ... so I need to keep it inside that resources block?
[02:56:58] Martyn: layouts has three .erb files ( application.html.erb login.html.erb static.html.erb )
[02:57:17] Martyn: user has four .erb files ( create_user.html.erb forgot_password.html.erb login_page.html.erb security_question.html.erb )
[03:06:45] Martyn: I am already on a new branch and tag .. but I don't have commit access to the github yet
[03:11:48] Martyn: But it goes back to the page, no update takes place ... if I go back a level and re-enter the forum, there is no new post under the original one
[03:21:12] Martyn: The intent, I think, is to be able to add a new forum post after the initial forum is created
[03:21:31] Martyn: so it needs forum_id of the original post .. so that it can add another post in that forum
[03:39:55] Martyn: I had a debug line in app/controllers/forums_controller.rb b/app/controllers/forums_controller.rb
[04:01:18] Martyn: i.e. Twitarr.Forum.new_post(@get('forum.id'), @get('new_post'), @get('photo_ids')).then (response) => ??
[04:03:06] Martyn: bsamson : Okay -- did you see the pastebin I put in with all the changes I've made so far?
[04:06:16] Martyn: - Twitarr.Forum.new_post(@get('id'), @get('new_post'), @get('photo_ids')).then (response) =>
[04:06:17] Martyn: + Twitarr.Forum.new_post(@get('forum.id'), @get('new_post'), @get('photo_ids')).then (response) =>
[04:31:00] Martyn: I can see the how .. that makes sense ... but the change from id -> forum.id seems like a small, but significant slip-up
[04:31:17] Martyn: I also had to roll-back the whole "location" thing int he codebase ... I'm surprised it ran at ALL for you
[04:32:09] Martyn: I'm surprised you were able to get it to work from the HEAD position ... did you have to do anything vis-a-vie location?
[04:33:23] Martyn: then rolled back the entire location commit in my repo -- it's unfinished code, and it does't belong there