« Back to channel list

#ruby - 13 January 2019

« Back 1 day Forward 1 day »
[00:00:09] al2o3-cr: sometimes eval.in works others not.
[00:01:15] al2o3-cr: i was going to try something then, now i've forgot :/
[00:05:09] al2o3-cr: >> [1,2,3].map { |n, @a = 5| }
[00:05:10] ruby[bot]: al2o3-cr: # => /tmp/execpad-9563ef90973b/source-9563ef90973b:2: formal argument cannot be an instance variable ...check link for more (https://eval.in/1077093)
[00:05:15] al2o3-cr: 18>> [1,2,3].map { |n, @a = 5| }
[00:05:16] ruby[bot]: al2o3-cr: # => /tmp/execpad-f2cea7d2c675/source-f2cea7d2c675:2: syntax error, unexpected '=', expecting '|' ...check link for more (https://eval.in/1077094)
[00:06:27] al2o3-cr: i'm sure you could pass instance variables to blocks but i could be wrong.
[00:22:17] Dreamer3_: has joined #ruby
[00:27:00] ericboehs: has joined #ruby
[00:31:11] al2o3-cr: baweaver: check this out
[00:31:18] al2o3-cr: &>> def add(x,y) x + y end; TracePoint.trace(:call) { |tp| tp.self.method(tp.method_id).parameters.each { |_, p| tp.binding.local_variable_set(p, rand(100)) if tp.method_id == :add } }; add 10, 20
[00:31:20] rubydoc: # => 45 (https://carc.in/#/r/5zjo)
[00:31:34] al2o3-cr: &>> def add(x,y) x + y end; TracePoint.trace(:call) { |tp| tp.self.method(tp.method_id).parameters.each { |_, p| tp.binding.local_variable_set(p, rand(100)) if tp.method_id == :add } }; add 10, 20
[00:31:35] rubydoc: # => 50 (https://carc.in/#/r/5zjp)
[00:35:45] al2o3-cr: put that in some rails app lol ;)
[00:36:08] idiocrash: has joined #ruby
[00:46:13] al2o3-cr: which reads better out of these two:
[00:46:21] al2o3-cr: "foo\v\tbar\n baz".chars.any? &/\p{Space}/.method(:match?)
[00:46:31] al2o3-cr: !"foo\v\tbar\n baz".scan(/\p{Space}/).empty?
[00:52:31] havenwood: al2o3-cr: In 2. 7!: chars.any? &/\s/.:match?
[00:52:57] havenwood: al2o3-cr: I guess you can already: any? /\s/
[00:53:17] havenwood: so not the best example for .: shining
[00:53:37] havenwood: &>> "foo\v\tbar\n baz".chars.any?(/\s/)
[00:53:38] rubydoc: # => true (https://carc.in/#/r/5zjs)
[00:53:47] al2o3-cr: havenwood: nice!
[00:54:18] al2o3-cr: ah, jeez yeah.
[00:55:14] al2o3-cr: i forgot it takes an object
[00:56:12] al2o3-cr: &>> [1,2.1,4.5,"d",:i].grep Float
[00:56:13] rubydoc: # => [2.1, 4.5] (https://carc.in/#/r/5zjt)
[00:56:57] phaul: &>> [Float].grep Float
[00:56:58] rubydoc: # => [] (https://carc.in/#/r/5zju)
[00:57:10] al2o3-cr: phaul: that is Class
[00:57:54] al2o3-cr: &>> [Float].grep Class
[00:57:56] rubydoc: # => [Float] (https://carc.in/#/r/5zjv)
[00:58:37] AJA4350: has joined #ruby
[01:03:21] phaul: we all know === is bit ad hoc, but once you know it, it's fine
[01:04:12] phaul: &>> [1].grep 1
[01:04:18] rubydoc: # => [1] (https://carc.in/#/r/5zjw)
[01:09:11] _whitelogger: has joined #ruby
[01:09:12] hutch: has joined #ruby
[01:09:52] al2o3-cr: phaul: true for totally immutable objects.
[01:11:59] phaul: 'a' === 'a'
[01:13:05] phaul: &>> ['a'] === ['a']
[01:13:06] rubydoc: # => true (https://carc.in/#/r/5zjx)
[01:13:55] phaul: &>> (1..2) === (1..2)
[01:13:56] rubydoc: # => false (https://carc.in/#/r/5zjy)
[01:16:21] al2o3-cr: arrays hold reference ranges don't
[01:16:56] hutch: has joined #ruby
[01:17:24] al2o3-cr: it's MRI internal strings and arrays are funcky.
[01:17:31] phaul: I think it's chosen as such that if it makes sense to do a == b for a type in a program, like you would actually do it, then a === a in that type. but can be wrong
[01:20:15] al2o3-cr: yeah it works on eql?
[01:22:13] al2o3-cr: equal? sorry.
[01:24:56] baweaver: al2o3-cr, phaul, havenwood: https://github.com/baweaver/globs/pull/1 - thoughts?
[01:25:02] baweaver: Maybe a bit constant happy
[01:27:46] al2o3-cr: baweaver: nothing wrong with constants (if thats what they are constants)
[01:28:23] baweaver: Anyways, playing with StringScanner. Kind of curious to see if that's actually a speed boost or not later.
[01:28:45] baweaver: Probably not because of all the string construction still going on in there
[01:29:12] al2o3-cr: i'd say it slower at an educated guess.
[01:29:59] baweaver: Eh, more accurate parsing at least.
[01:31:09] al2o3-cr: oh yeah, not saying that.
[01:35:05] houhoulis: has joined #ruby
[01:35:50] al2o3-cr: baweaver: you've got more gems than the queen ;)
[01:36:29] baweaver: I typically just make something whenever I see that it was slightly annoying to write or find a solution for
[01:37:34] al2o3-cr: i need to write a gem.
[01:40:07] al2o3-cr: i was half way into a gem "around argon2 key div"
[01:40:57] al2o3-cr: then guess what someone beat me to it :)
[01:43:03] al2o3-cr: just a simple one for db no secret key (otherwise i'd have to wrap it) and though nah.
[01:44:13] al2o3-cr: anyways a poll, what is everyones favourite gem?
[01:44:32] al2o3-cr: mine is packetfu.
[01:46:32] al2o3-cr: oh, i forgot, nokogiri.
[01:49:05] al2o3-cr: top five in order: packetfu, nokogiri, pry, spaghetti, bolognese.
[01:52:06] TheBrayn: https://rubygems.org/gems/spaghetti/versions/0.3.4 <- this one?
[01:53:21] Swyper: has joined #ruby
[01:53:53] al2o3-cr: TheBrayn: no, i'm being daft. pasta was on my mind ;)
[01:54:52] al2o3-cr: should be a gem namely pecorino though.
[02:03:32] al2o3-cr: phaul: are you using parslet for rubydoc?
[02:11:27] Rich_Morin_: has joined #ruby
[02:18:14] Rich_Morin_: has joined #ruby
[02:19:01] Rich_Morin_: has joined #ruby
[02:19:47] Rich_Morin_: has joined #ruby
[02:37:07] tdy: has joined #ruby
[02:45:02] cthulchu_: has joined #ruby
[03:01:57] cthulchu: has joined #ruby
[03:33:50] Xiti: has joined #ruby
[03:38:02] sarink: has joined #ruby
[04:09:43] braincrash: has joined #ruby
[04:16:49] davidw: has joined #ruby
[04:17:27] jcarl43: has joined #ruby
[04:20:23] tdy: has joined #ruby
[04:24:37] jcarl43: has joined #ruby
[04:30:14] NightMonkey: has joined #ruby
[04:35:45] Rich_Morin_: has joined #ruby
[04:36:26] Rich_Morin_: has joined #ruby
[04:37:11] Rich_Morin_: has joined #ruby
[04:38:01] Rich_Morin_: has joined #ruby
[04:38:46] Rich_Morin_: has joined #ruby
[04:39:36] Rich_Morin_: has joined #ruby
[05:04:03] elcontrastador: has joined #ruby
[05:04:55] Swyper: has joined #ruby
[05:05:16] sarink: has joined #ruby
[05:07:36] _whitelogger: has joined #ruby
[05:14:23] elcontrastador: the URI module is part of stdlib for <=2.5.3 right? I have a system that when i require 'uri' from within irb gives me false
[05:21:40] mostlybadfly: has joined #ruby
[05:22:24] woodruffw: elcontrastador: `require` returns false when the library is already loaded
[05:22:38] woodruffw: so it's possible you've already loaded it; see if the `URI` constant is available
[05:22:45] elcontrastador: i see that...must be loading aleady
[05:23:40] elcontrastador: i dont have an .irbrc file on this system...weird that it's loading on from somewhere
[05:24:01] elcontrastador: thx for help...
[05:24:10] woodruffw: yeah, that's strange, maybe it's become part of the corelib (i.e., the default requires)?
[05:24:39] woodruffw: or something in the corelib is requiring it transitively
[05:28:50] havenwood: It's required by RubyGems, so although it's stdlib, it'll be available unless you disable gems.
[05:28:51] havenwood: ruby --disable-gems -e "p require 'uri'" #=> true
[05:28:58] havenwood: ruby -e "p require 'uri'" #=> false
[05:32:20] sputnik13: has joined #ruby
[05:33:16] cschneid: has joined #ruby
[05:38:17] hutch: has joined #ruby
[05:56:59] Rich_Morin_: has joined #ruby
[05:58:20] rippa: has joined #ruby
[06:05:55] cschneid: has joined #ruby
[06:09:30] tdy: has joined #ruby
[06:12:36] Rich_Morin_: has joined #ruby
[06:13:14] Rich_Morin_: has joined #ruby
[06:14:00] Rich_Morin_: has joined #ruby
[06:14:44] Rich_Morin_: has joined #ruby
[06:15:08] uplime: has joined #ruby
[06:15:35] Rich_Morin_: has joined #ruby
[06:16:23] Rich_Morin_: has joined #ruby
[06:17:11] Rich_Morin_: has joined #ruby
[06:29:21] brandonkal: has joined #ruby
[06:30:43] tag: has joined #ruby
[06:32:47] sarink: has joined #ruby
[06:34:53] orbyt_: has joined #ruby
[06:46:14] fatlotus: has joined #ruby
[06:55:57] hutch: has joined #ruby
[07:05:46] Rich_Morin_: has joined #ruby
[07:11:24] cschneid: has joined #ruby
[07:11:53] Rich_Morin_: has joined #ruby
[07:12:36] Rich_Morin_: has joined #ruby
[07:13:25] Rich_Morin_: has joined #ruby
[07:14:08] Rich_Morin_: has joined #ruby
[07:14:56] Rich_Morin_: has joined #ruby
[07:15:44] Rich_Morin_: has joined #ruby
[07:16:32] Rich_Morin_: has joined #ruby
[07:17:19] Rich_Morin_: has joined #ruby
[07:17:44] Xiti: has joined #ruby
[07:18:05] Rich_Morin_: has joined #ruby
[07:34:10] am0123: has joined #ruby
[07:45:07] sputnik13: has joined #ruby
[07:57:10] _whitelogger: has joined #ruby
[08:13:05] cschneid: has joined #ruby
[08:15:33] rindolf: has joined #ruby
[08:16:42] tiff: has joined #ruby
[08:49:41] Dbugger: has joined #ruby
[08:59:55] gix: has joined #ruby
[09:04:11] sarink: has joined #ruby
[09:14:34] cschneid: has joined #ruby
[09:26:51] mikecmpbll: has joined #ruby
[09:45:47] Nicmavr: has joined #ruby
[10:16:01] mat_bug: has joined #ruby
[10:16:53] cschneid: has joined #ruby
[10:26:13] clemens3: has joined #ruby
[10:31:11] dinfuehr: has joined #ruby
[10:38:26] Dbugger: has joined #ruby
[11:04:00] dellavg_: has joined #ruby
[11:21:07] reber: has joined #ruby
[11:21:27] Fernando-Basso: has joined #ruby
[11:25:05] cschneid: has joined #ruby
[11:33:59] kapil____: has joined #ruby
[11:37:31] Emmanuel_Chanel: has joined #ruby
[11:44:13] sarink: has joined #ruby
[11:45:09] themsay: has joined #ruby
[11:46:53] dinfuehr: has joined #ruby
[11:52:50] mat_bug: has joined #ruby
[11:53:20] AJA4350: has joined #ruby
[11:54:16] dinfuehr: has joined #ruby
[11:57:50] uplime: has joined #ruby
[12:24:25] yokel: has joined #ruby
[12:27:14] cschneid: has joined #ruby
[12:42:17] mostlybadfly: has joined #ruby
[12:52:44] lucasb: has joined #ruby
[13:00:00] sagax: has joined #ruby
[13:11:47] TheBloke: has joined #ruby
[13:23:48] uanl: has joined #ruby
[13:27:45] cschneid: has joined #ruby
[13:29:39] TheBloke: has joined #ruby
[13:46:46] apparition: has joined #ruby
[14:11:43] tlaxkit: has joined #ruby
[14:28:01] uplime: has joined #ruby
[14:33:49] Rich_Morin_: has joined #ruby
[14:39:17] conta: has joined #ruby
[14:57:58] conta1: has joined #ruby
[15:14:18] mostlybadfly: has joined #ruby
[15:21:15] cschneid: has joined #ruby
[15:23:36] uplime: has joined #ruby
[15:25:28] drale2k_: has joined #ruby
[15:26:42] sarink: has joined #ruby
[15:27:21] sarink: has joined #ruby
[15:34:13] LightStalker: has joined #ruby
[15:35:20] klaas: has joined #ruby
[15:42:36] davidw: has joined #ruby
[15:59:47] Rich_Morin_: has joined #ruby
[16:00:34] Rich_Morin_: has joined #ruby
[16:01:21] roelof: has joined #ruby
[16:01:26] Rich_Morin_: has joined #ruby
[16:02:05] roelof: is VSCode a good ide on Windows. Im thinking of starting with the Odin project to learn ruby and ruby on rails ?
[16:02:12] Rich_Morin_: has joined #ruby
[16:03:01] Rich_Morin_: has joined #ruby
[16:03:47] Rich_Morin_: has joined #ruby
[16:05:25] Hanmac: has joined #ruby
[16:06:39] cschneid: has joined #ruby
[16:08:56] up|ime: it's not an ide, it's a text editor
[16:09:00] up|ime: but sure, it'll work
[16:09:06] havenwood: roelof: Yes, VSCode should be a good text editor. Or take a look at Atom.
[16:09:22] up|ime: Last time I tried RubyMine (the Jetbrains IDE) it sucked badly, 2 or so years ago
[16:09:39] roelof: oke, I used it for learning haskell I use vscode also
[16:10:10] roelof: is there some sort of tutorial what I need to make my first steps with ruby
[16:10:50] havenwood: roelof: https://ruby.github.io/TryRuby/
[16:11:20] roelof: I can do that one also
[16:11:49] roelof: earlier I used rubyMonk but that one does not work properly anymore :(
[16:16:51] PCiobanita: has joined #ruby
[16:16:58] PCiobanita: hi there. I am new here but I need some help with ruby sinatra. Been stuck here for the past few days. I need to solve this in the next few hours. It shoulnt take to long if somone can and is willing to help let me know. also new to the platform.
[16:17:25] havenwood: PCiobanita: What issue are you running into?
[16:17:56] ruby[bot]: Don't ask to ask. Just ask your question, and if anybody can help, they will likely try to do so.
[16:19:03] roelof: tryRuby is easy. I think I will start wit the Odin project
[16:19:57] roelof: is Atom much better then the VSCode ?
[16:21:24] PCiobanita: the issue I have is passing params from textarea into sql query. If i hardcode the messege it works. but when i try to use params form from it says undifined method for asnwer class. although it chould work. becuase if I manually post it into PG it actually prints. If i could share mys creen woulve been easier to explain. What i would like is somoen that can help me over discord for like 10 min. if is not to much of an ask. I am q
[16:22:29] Rich_Morin_: has joined #ruby
[16:23:35] PCiobanita: I am quite new so i dont know how to be specific with my issues
[16:25:41] phaul: no chance to discord with me, but I would take a look at the code if you shared your code one way or an other. github, gists, bitbucket or whatever you like.
[16:26:40] segy: has joined #ruby
[16:28:55] Rich_Morin_: has joined #ruby
[16:29:32] Rich_Morin_: has joined #ruby
[16:30:20] Rich_Morin_: has joined #ruby
[16:31:12] Rich_Morin_: has joined #ruby
[16:31:57] Rich_Morin_: has joined #ruby
[16:34:34] hutch: has joined #ruby
[16:35:13] phaul: usually it's a good idea to come with links to the code to IRC
[16:38:52] kapil____: has joined #ruby
[16:39:02] PCiobanita: https://github.com/ianhawe/Automated-SQL-Checker this is the github I am working on dev_02_post branch. That is where the controller and models for what i am doing are
[16:39:31] PCiobanita: the code is not dry at all so might be a bit hard to undertsnd
[16:40:16] phaul: cool, np, Im sure a few of us will take a look
[16:43:33] phaul: which view file contains the form? which handler in sinatra is triggered by the post?
[16:44:23] PCiobanita: question_one_page.erb
[16:44:41] PCiobanita: answer.rb post
[16:45:28] PCiobanita: question.rb is also used on form but that is to show questions from database
[16:52:14] phaul: have you verified that params contain the expected param hash in the handler? what happens if you put a 'p params' at https://github.com/ianhawe/Automated-SQL-Checker/blob/90a637ee22296b10b79899635586fe3d82559a7e/controller/sql_controller.rb#L53
[16:56:04] AJA4350: has joined #ruby
[17:02:51] PCiobanita: i know the params are empty they are nil
[17:02:58] drale2k_: has joined #ruby
[17:03:14] PCiobanita: i think I am not sure.... I dont rly know how to check tbh
[17:06:01] PCiobanita: i think i should say that i started with ruby 2 weeks ago
[17:06:18] PCiobanita: a lot of debugging and stuff is new to me
[17:06:36] phaul: no problem. I try to run it over here, and try to rerpoduce it myself
[17:07:00] phaul: btw, you came a long way in just 2 weeks!
[17:07:25] Cthulu201: has joined #ruby
[17:07:27] PCiobanita: thank you but I feel like tomorrow I wont have much to show for it
[17:14:48] phaul: first thing I hit is that your sql file creates SpartaSQLApp but your app connects to spartaappsql
[17:16:08] PCiobanita: yes i am connected trhough postgress
[17:16:35] PCiobanita: and in postgress i made the app with spartaappsql. it works and is connected, I just made the db manually in postgress
[17:16:58] PCiobanita: db name is correct for testing purposes
[17:17:04] phaul: nvm, it's just that the database name mismatches at those two places
[17:17:26] PCiobanita: I am not actually using the seed file atm
[17:22:11] phaul: ok I see one issue
[17:22:38] phaul: https://github.com/ianhawe/Automated-SQL-Checker/blob/dev_02_post/views/pages/question_one_page.erb#L40
[17:23:17] PCiobanita: yeah I shoulve removed that. I know the issue with that. is outside the loop
[17:24:00] uplime: has joined #ruby
[17:27:53] phaul: second issue: the server is getting GET requests on submit not POST.
[17:28:08] phaul: therefore the post handler in sinatra doesn't run
[17:29:17] phaul: you should see this on your side if you look at the server log. When you submit your form the server outputs "GET .. " on the console
[17:31:00] PCiobanita: yeah but the post stil runs
[17:31:45] PCiobanita: it does run get but also post. if i were to change the sql with hardcoded number and string it would post it in the database
[17:32:26] phaul: it runs post if you see POST in your server logs. You don't - correct?
[17:34:28] phaul: the main issue is that the way forms work is that you need a form per question. you have a single form and many submit buttons in it, one per question. The way to do this is to have a separate form per question, and the submit button in the form would send up the data from the form that it is in
[17:35:28] PCiobanita: but is a loop it creates a seperate from for each question
[17:35:52] phaul: no, the loop is inside the single form tag
[17:36:00] PCiobanita: if injects array with question and for each it ptints the question the adds a textarea and then add a submit button
[17:36:26] PCiobanita: not the answer loop but the other one
[17:36:40] phaul: Im talking about the literal <form> tag. that is outside
[17:36:44] PCiobanita: a bit above is the @poosts loop
[17:37:27] PCiobanita: the one inside just loops the answers to match it with question id
[17:40:05] tdy: has joined #ruby
[17:40:13] phaul: ah Im blind. I take that back.
[17:40:49] PCiobanita: no worries I am horible in making my coide dr
[17:41:05] PCiobanita: code dry* is supper messy
[17:42:16] orbyt_: has joined #ruby
[17:42:44] phaul: ok you have a form outside of everything. that causes issues. Please remove that
[17:44:13] PCiobanita: removed it... i didnt make the erb's to be fair
[17:44:33] phaul: i removed that form tag from outside and I can confirm the params are correctly sent up to the post handler
[17:44:59] phaul: the outside post tag screwed up firefox and made the submit a GET request.
[17:45:24] phaul: you might not be on firefox, so you might see slightly different behaviour
[17:45:37] phaul: but it was wrong anyway
[17:46:09] PCiobanita: what would I have to type in the sql inside the answer post. in the save function
[17:47:15] PCiobanita: answer model sorry
[17:53:27] phaul: what is the error that you are now getting/
[17:53:47] PCiobanita: undifined method for student answer
[17:54:13] phaul: read carefully the error report. the word student
[17:54:56] PCiobanita: NoMethodError at /question/1 undefined method `sudentanswer' for #<Answer:0x00007fbb4e31f158> Did you mean? studentanswer studentanswer=
[17:55:13] phaul: sudent vs student
[17:56:46] phaul: our brains are programmed to fix spelling errors for us, it's really hard to spot especially if you wrote it
[17:57:04] PCiobanita: i feel like an idiot
[17:57:27] phaul: dont. its very typical in programming,
[17:57:35] phaul: happens to everybody
[17:58:12] PCiobanita: it works now the next issue is how to take the id.. from the first loop
[17:58:35] PCiobanita: so i can match in the database the answer to the question id
[18:01:19] PCiobanita: thank you btw
[18:03:39] phaul: np. I dont know your background, but what you are working with after 2 weeks is pretty impressive. I would argue that you are maybe progressing too fast. Is this some course exercise? Did you have a programmer background ?
[18:05:53] PCiobanita: no i just enroled into a bootcamp.. so i can learn programing
[18:07:31] PCiobanita: and it has 2 courses sql and ruby so I am trying to develop a app that checks querys automatically. I think it has evreything login, a bit of front end backend.. so i thought is good to practice all these diff parts
[18:13:56] sagax: has joined #ruby
[18:15:10] PCiobanita: <phaul> if u are still here can u tell me how should i go to take the post.id from the first loop on each submit
[18:15:46] phaul: let me think
[18:15:47] PCiobanita: i wanna match the answer with the questionid
[18:15:49] orbyt_: has joined #ruby
[18:20:29] phaul: I think this bit is conceptually broken: <% if(post.id == answer.id) %>
[18:20:32] phaul: <%= answer.studentanswer%>
[18:20:34] phaul: <% end %>
[18:22:02] phaul: the post is the question. the answer might be filled in might not, but shouldn't it be something like post.id == answer.post_id ? what is the id column of the answer table?
[18:22:10] PCiobanita: the reason is like this is beacuse i would like a student to be able to go back to the test and have the answers saved. so if the questionid from question table matches with questionif from answers place the answer there
[18:23:17] phaul: yeah, I get that part Im confused by the ids being equal? Is the answer.id a reference into post ? ( if so it's better to call it post_id )
[18:23:42] PCiobanita: answer.id is question id.. which is foreign key of question.id from questiontable
[18:24:03] PCiobanita: answer and question have id primary and foreign key
[18:24:34] phaul: right. usually ppl call foregin keys, like <other_table>_id, it just confused me that's all. but now I get it
[18:26:20] am0123: has joined #ruby
[18:27:25] phaul: you could have a hidden form input with the id encoded in its value.
[18:27:41] am0123: has joined #ruby
[18:28:04] PCiobanita: how would i make it hidden?
[18:28:25] phaul: <input type="hidden" name="post_id" value="<%=post.id%>" />
[18:28:59] phaul: then read post_id out of params in the sinatra handler
[18:29:07] cthulchu: has joined #ruby
[18:34:45] conta: has joined #ruby
[18:39:04] Puffball: has joined #ruby
[18:39:09] PCiobanita: no matter what i try it gives 0 in post.id
[18:39:52] phaul: do you mean in the controller side?
[18:40:12] phaul: we send up params[post_id]
[18:40:20] PCiobanita: it says it breaks the fkey cuz no questionid 0 in questiuon table
[18:40:26] PCiobanita: tehrefore it carries 0 as value
[18:41:29] phaul: push you code up to github, I take a look
[18:42:23] dellavg_: has joined #ruby
[18:42:50] PCiobanita: it doesnt work with <%=%>
[18:45:24] PCiobanita: sry it works
[18:45:33] tdy: has joined #ruby
[18:45:42] PCiobanita: i need the = my abd
[18:45:56] phaul: ah, ok. no problem
[18:46:03] PCiobanita: it doesnt wok
[18:46:23] PCiobanita: i made the think unhidden it has the right number but stilll get same error
[18:48:35] houhoulis: has joined #ruby
[18:49:36] PCiobanita: so if i have the input type not hidden it does print the correct number but when i take the params it doesnt work
[18:51:04] phaul: you have to have =
[18:51:12] phaul: <%= post.id %>
[18:51:22] phaul: and you have to move it inside the form tag
[18:51:47] PCiobanita: ill try that
[18:51:55] phaul: the way form submitting works is that it gathers all input from the same form tag as the submit button was pressed in
[18:54:23] PCiobanita: it works thx a lot
[19:00:34] duderonomy: has joined #ruby
[19:02:09] pskosinski: has joined #ruby
[19:02:16] orbyt_: has joined #ruby
[19:05:30] ua: has joined #ruby
[19:10:11] PCiobanita: so i managed to make something for tomorrow to show dude you took so much time to help me thx a lot
[19:11:05] phaul: you are welcome, if you feel stuck in the future #ruby is the place :)
[19:11:51] dinfuehr: has joined #ruby
[19:16:11] dviola: has joined #ruby
[19:30:18] ellcs: has joined #ruby
[19:31:57] hutch: has joined #ruby
[19:40:27] Hanmac: has joined #ruby
[19:51:28] tdy1: has joined #ruby
[19:52:35] rubydoc: has joined #ruby
[19:52:50] phaul: &>> RUBY_VERSION
[19:52:51] rubydoc: # => "2.6.0" (https://carc.in/#/r/5zo5)
[19:53:02] phaul: &>> (1..)
[19:53:02] rubydoc: # => 1.. (https://carc.in/#/r/5zo6)
[19:53:27] phaul: thanks jhass
[19:54:34] tiff: has joined #ruby
[19:57:34] sagax: has joined #ruby
[20:10:42] reber: has joined #ruby
[20:25:32] Nicmavr: has joined #ruby
[20:38:26] mostlybadfly: has joined #ruby
[20:44:45] tdy2: has joined #ruby
[20:47:58] xlued: has joined #ruby
[20:49:42] hutch: has joined #ruby
[21:07:02] nowhere_man: has joined #ruby
[21:19:00] noboruma: has joined #ruby
[21:20:35] davidw: has joined #ruby
[21:21:45] am0123: has joined #ruby
[21:24:55] xlued: has joined #ruby
[21:35:14] sarink: has joined #ruby
[21:43:16] xrexeon: has joined #ruby
[21:43:36] xrexeon: has joined #ruby
[21:47:57] xlued: has joined #ruby
[21:50:52] bmurt: has joined #ruby
[21:54:29] al2o3-cr: has joined #ruby
[21:55:57] sarink: has joined #ruby
[21:59:52] cthulchu: has joined #ruby
[22:22:22] DTZUZO: has joined #ruby
[22:27:57] orbyt_: has joined #ruby
[22:42:19] s3nd1v0g1us: has joined #ruby
[22:43:57] uplime: has joined #ruby
[23:09:17] gigetoo: has joined #ruby
[23:36:17] xlued: has joined #ruby
[23:38:16] bmurt: has joined #ruby
[23:43:21] bmurt: has joined #ruby
[23:46:54] r3m: has joined #ruby