« Back to channel list

#RubyOnRails - 14 July 2017

« Back 1 day Forward 1 day »
[00:01:42] rubycoder37: is there a way to dynamically add an extra attribute/field that is not in my database table, like when I do Store.all?
[00:03:18] jhfisc: has joined #RubyOnRails
[00:03:40] umaaji: has joined #RubyOnRails
[00:05:50] randomA: hey im trying to figure out how to route, i've edited routes.rb with root 'home#index'
[00:05:59] randomA: but i still have internal server error
[00:07:44] brent__: has joined #RubyOnRails
[00:08:03] jhfisc: has joined #RubyOnRails
[00:14:27] jhfisc: has joined #RubyOnRails
[00:23:46] apparition: has joined #RubyOnRails
[00:24:12] xploshioon: has joined #RubyOnRails
[00:27:01] jhfisc: has joined #RubyOnRails
[00:33:07] jhfisc: has joined #RubyOnRails
[00:33:40] jottr: has joined #RubyOnRails
[00:37:18] aperkins81: rubycoder37, hstore column?
[00:37:37] aperkins81: (is indexable)
[00:38:13] jhfisc: has joined #RubyOnRails
[00:39:58] SteenJobs_: has joined #RubyOnRails
[00:41:14] jhfisc: has joined #RubyOnRails
[00:47:16] jhfisc: has joined #RubyOnRails
[00:47:51] umaaji: has joined #RubyOnRails
[00:52:38] cagomez: has joined #RubyOnRails
[00:53:13] jhfisc: has joined #RubyOnRails
[00:53:56] sevenseacat: has joined #RubyOnRails
[01:08:18] xco: has joined #RubyOnRails
[01:14:13] rubycoder37: aperkins81: not sure what you mean, I already have the dates as an array, I'm simply trying to display them in my model, per store, and without repeating the dates all over again for each store: https://gist.github.com/anonymous/be2c4ea59ac24038422bc2d7c7f8ada1
[01:14:39] juggler: has joined #RubyOnRails
[01:15:44] bronson: has joined #RubyOnRails
[01:16:51] rubycoder37: e.g. if start_date and date_end results in a date of 30 days, and I have 3 stores, I give store 1 the first 10 days and so on
[01:17:03] rubycoder37: array of 30 elements
[01:20:09] hndk: has joined #RubyOnRails
[01:21:08] randomA: so im trying to make my front page
[01:21:12] randomA: what do i do?
[01:21:19] randomA: rails generate controller Home?
[01:23:15] jhfisc: has joined #RubyOnRails
[01:25:30] hahuang65: randomA: you can name it however you want, with any controller. Nothing wrong with Home. Some other people might call it PagesController as a generic controller to manage other static pages besides just home
[01:26:45] rubycoder37: I wonder if I could call the array via a range or something
[01:27:53] randomA: im trying to use materialize and create a front page
[01:28:10] randomA: i just dont get what the front page model would e
[01:28:46] cagomez: has joined #RubyOnRails
[01:31:01] randomA: im confused as to why rails runs on port 3000?
[01:31:04] randomA: shouldnt it run on 80?
[01:31:15] jhfisc: has joined #RubyOnRails
[01:38:10] sevenseacat: has joined #RubyOnRails
[01:39:38] hahuang65: randomA: it's fairly arbitrary, but I know it doesn't use 80 because it's far more likely to collide with another thing on your system taking port 80
[01:40:05] randomA: hahuang65: im just confused, when the user browses to the website, it goes to port 80, how would they start the rails application?
[01:41:44] hahuang65: randomA: i'm not sure i understand your question, can you try rephrasing it?
[01:42:03] randomA: so a user browsers to mypage.com
[01:42:06] randomA: they see port 80
[01:42:19] randomA: is the stuff being rendered right there different than what we render using rails?
[01:42:24] randomA: like basically what is the point of rails?
[01:42:32] randomA: i really dont get why its not running on port 80
[01:43:01] sevenseacat: if you were running in production, you would be running on port 80 yes
[01:43:05] sevenseacat: in development, you don't need to
[01:43:17] hahuang65: randomA: rails is the web framework. it handles routing and network layer things so you don't have to. the rails server is just a convenience for you in development
[01:43:46] hahuang65: randomA: in prod, you'd have something in front of whatever the rails server is. usually you're not recommended to use webrick (the default in development)
[01:43:49] jhfisc: has joined #RubyOnRails
[01:44:01] hahuang65: you'd use something like unicorn or puma, and have nginx or something in front of it
[01:44:01] hahuang65: which would be on port 80
[01:44:19] hahuang65: randomA: when you run `rails server`, it's running a webrick server on your local development machine so you can view the page at `localhost:3000`
[01:44:20] sevenseacat: puma is now the default as of rails 5, for action cable.
[01:44:33] hahuang65: sevenseacat: ah welp, shows you how dated I am.
[01:44:39] hahuang65: but good for rails :)
[01:44:42] randomA: so what does unicorn do?
[01:45:28] randomA: oh i get it, so there's a site, and there's a ruby application
[01:45:41] randomA: i still need to add like html
[01:46:17] hahuang65: randomA: unicorn is a HTTP server for rack. basically it serves your rails application
[01:46:27] randomA: i should get it right
[01:46:40] hahuang65: randomA: Rails is your bridge between the web and the ruby app. it provides routing, ways to do a template for your html etc
[01:46:56] hahuang65: randomA: should you get unicorn? it depends on what you're trying to do.
[01:47:10] randomA: im trying to make a website that offers a vpn service
[01:47:22] randomA: basically just needs users register, and then users can download certificates
[01:47:35] randomA: its pretty simple
[01:47:41] randomA: i was going to use materialize for it
[01:47:50] hahuang65: idk what materialize is
[01:48:04] randomA: its like googles bootstrap
[01:48:06] hahuang65: but you can make a simple rails app that handles some user management and associates some certificates to them
[01:48:09] randomA: so should i use unicorn
[01:48:16] randomA: yeah thats what i want to do
[01:48:22] randomA: do i need unicorn?
[01:48:27] hahuang65: i don't know. where do you want to host it, what does your userbase look like in terms of traffic
[01:48:42] hahuang65: I don't know if you NEED unicorn specifically, but every Rails app needs a server
[01:48:50] randomA: ill just get unicorn
[01:48:51] irishfromua: has joined #RubyOnRails
[01:48:58] helpa: http://i.imgur.com/SsZ8pbG.gif
[01:48:58] hahuang65: randomA: don't get unicorn until you need unicron
[01:49:15] randomA: but i need unicorn for my server
[01:49:20] randomA: because im using the default one
[01:49:25] hahuang65: randomA: what's wrong with the default one?
[01:49:33] randomA: idk someone said the default is not good
[01:49:46] randomA: you said webrick isnt good
[01:49:54] hahuang65: no one said it's not good
[01:50:12] randomA: you said i shouldnt use it
[01:50:36] hahuang65: randomA: I did not say that
[01:50:42] beingjohnm: has joined #RubyOnRails
[01:50:42] matthewd: Webrick isn't suitable for production, but as sevenseacat noted, that's not the default anymore
[01:50:47] hahuang65: I said that it is generally NOT recommended (for production)
[01:50:53] hahuang65: but you're not in production.
[01:50:58] randomA: usually you're not recommended to use webrick (the default in development)
[01:51:07] randomA: whats production
[01:51:35] hahuang65: randomA: I feel you are jumping a little too far ahead for where you are right now. You should understand how to get your rails app fully functional on your development machine first, before making any decisions or determinations on what your production app will be
[01:52:55] hahuang65: randomA: start implementing your site and when you have specific questions, feel free to ask us here
[01:53:06] cagomez: has joined #RubyOnRails
[01:53:23] hahuang65: randomA: I would recommend Michael Hartl's tutorial for a start. sevenseacat double check me here... is taht guide as dated as I am?
[01:53:34] sevenseacat: I think it;s been updated for rails 5
[01:53:43] hahuang65: great ^_^. randomA start there
[01:53:58] sevenseacat: railstutorial.org
[01:54:11] sevenseacat: can be read online for free
[01:54:25] hahuang65: yeah, it was fantastic back in the day. I'm sure it's even better now.
[01:55:45] randomA: so would unicorn be running on port 80 or 3000
[01:58:31] hahuang65: randomA: have you set up a production environment for any webapp before?
[01:58:40] randomA: not for ruby
[01:58:44] randomA: ive done web stuff with php
[01:59:03] hahuang65: randomA: but have you actually set up the servers for it
[01:59:47] hahuang65: randomA: what did you use for the webserver?
[02:01:16] randomA: apache2 httpd
[02:01:42] hahuang65: randomA: awesome. so think of unicorn and puma as apache. you can configure it to listen on any port.
[02:01:52] randomA: so i dont need apache2?
[02:01:56] hahuang65: randomA: no
[02:02:10] randomA: oh so i could run it on apache2 but i dont need to
[02:02:10] matthewd: That seems a questionable equivalence
[02:02:30] hahuang65: matthewd: i think for the purposes of this conversation, it suffices.
[02:02:37] randomA: I create a Procfile: web: bundle exec unicorn -p $PORT -c ./config/unicorn.rb
[02:02:42] randomA: but like what do i do now?
[02:02:50] hahuang65: he doens't need to run another app server in front of his rails app server.
[02:03:11] matthewd: hahuang65: But it just takes us back to the "port 80 or 3000" question
[02:03:18] matthewd: In development, sure
[02:03:32] hahuang65: I'm trying to steer him away from thinking about web servers before he needs to.
[02:03:36] randomA: oh it works
[02:03:42] matthewd: Exposing unicorn to public traffic is a Very Bad Idea though
[02:04:00] hahuang65: matthewd: yea, that's true. maybe i done fucked up
[02:04:21] randomA: and then i just start by doing bin/rails -b 0.0.0.0 -p 80?
[02:04:50] randomA: oh ok yep it works
[02:04:59] hahuang65: randomA: I'm sorry. You do want a web server in front of your app server.
[02:05:12] randomA: so i need apache2?
[02:05:14] matthewd: I think we should wander over to something more fundamental: randomA, are you doing this on a real server, or on your local machine?
[02:05:22] randomA: real server
[02:05:34] hahuang65: randomA: you want something like apache in front of your rails app server.
[02:05:37] hahuang65: for a real server.
[02:05:43] randomA: what do you mean?
[02:05:47] randomA: so i start apache on 80
[02:05:50] randomA: what do i start rails on?
[02:06:01] matthewd: randomA: Are you trying to deploy an application you've created, or are you just starting to create an application?
[02:06:10] randomA: im just starting to create an application
[02:06:12] hahuang65: matthewd: he's just startign to create an applciation
[02:06:15] hahuang65: which is why im trying to tell him
[02:06:18] hahuang65: stop with the webservers
[02:06:20] randomA: im just selling vpn services
[02:06:34] hahuang65: make the app first, understand the development process, along with the development server
[02:06:56] randomA: the app is still in rails?
[02:06:59] hahuang65: has joined #RubyOnRails
[02:07:11] matthewd: randomA: You develop on your local machine, then deploy it
[02:07:13] hahuang65: sorry, had connection issue.
[02:07:23] jhfisc: has joined #RubyOnRails
[02:07:40] randomA: rails is too hard. maybe ill just use laravel
[02:07:47] matthewd: randomA: A tutorial should help you deal with things in the right order
[02:07:54] matthewd: Alternatively, yeah, go with what you know
[02:08:02] randomA: will it be easy for me to generate ovpn certificates with rails?
[02:08:23] stormbytes: what do you call a join table (migration) when both records are coming from the same table? (eg. table= child, jointable= siblings)
[02:08:25] hahuang65: randomA: I feel like you've not spent any real time with Rails to make that judgment
[02:08:31] randomA: yes i havent
[02:09:05] hahuang65: randomA: You should invest some time into learning Rails before making your site if you intend to learn Rails. Or, go with what you know
[02:09:11] matthewd: stormbytes: Focus on the relationship, not the nouns it's connecting
[02:09:18] randomA: i mean, i know ruby
[02:09:18] hahuang65: you cannot expect to jump directly into making a production app with a new language
[02:09:31] randomA: thats what i usually do bc i already know how to program
[02:09:38] stormbytes: randomA what makes you think Laravel will be simpler? Its pretty much the same idea
[02:09:47] randomA: because i already know php
[02:10:02] stormbytes: matthewd and practically, that would translate to..
[02:10:04] matthewd: Well you can, but you need to be willing to learn how to do it along the way
[02:10:16] randomA: https://updatey.com/media/uploads/projects/posts/files/jmif3s8lar4uaf67j2ni.pdf
[02:10:20] randomA: is this book good?
[02:10:28] hahuang65: Knowing a language is different than understanding a web framework for that language
[02:10:30] matthewd: You don't need to literally follow the tutorial to make the app they're talking about, but use that to guide the steps involved
[02:10:31] Jameser: has joined #RubyOnRails
[02:10:55] stormbytes: RandomA I used Kevin Skoglund tutorial on Lynda.com for Rails 5. Its outstanding.. but assumes you some basic understanding of web technologies
[02:10:56] matthewd: (hopefully, e.g., how to use a local development environment to write the app before you deploy it somewhere)
[02:11:08] hahuang65: randomA: I've already suggested http://railstutorial.org
[02:11:21] randomA: you need to buy it
[02:11:31] hahuang65: randomA: https://www.railstutorial.org/book
[02:11:32] randomA: oh lol read online free
[02:11:32] stormbytes: the rails tutorial is pretty good too
[02:11:36] hahuang65: randomA: you can read it online for free
[02:11:46] stormbytes: meaning.. the one on the RoR site
[02:12:18] matthewd: Yeah, particularly if you're comfortable doing more exploratory learning, the getting started guide might work as a place to start
[02:12:27] hahuang65: randomA: you only need to buy it if you want a pdf.
[02:12:34] matthewd: stormbytes: child/siblings is tricky, because both sides of the relationship are equal. Is that really what your relationship is?
[02:13:11] matthewd: stormbytes: i.e., given a join (a, b), does it follow that there must exist an equivalent join (b, a) ?
[02:13:17] stormbytes: matthewd I'm just practicing.. following a tut on ActiveRecord relationships and came across this conundrum.
[02:14:00] jhfisc: has joined #RubyOnRails
[02:14:03] stormbytes: ab, ba, i'm not following you sorry
[02:14:30] matthewd: stormbytes: What is the actual relationship you're thinking of?
[02:15:42] hahuang65: randomA: I hope you enjoy railstutorial and that it helps you solve your problem. Good luck
[02:16:32] matthewd: stormbytes: That is a more difficult relationship to model (quite aside from the matter of naming), because if Alice is Bob's sibling, then Bob is also Alice's sibling, by definition
[02:16:49] stormbytes: ok, nevermind then. thanks
[02:17:28] cagomez: has joined #RubyOnRails
[02:17:28] matthewd: stormbytes: I probably wouldn't model it with such a table, but if I did, I guess I'd name the table siblings
[02:17:45] stormbytes: I was really just wanting to know if there's some out of the box convention fo rit
[02:17:56] stormbytes: not ready to go on an expedition just yet
[02:20:16] jhfisc: has joined #RubyOnRails
[02:25:28] aperkins81: stormbytes, https://www.youtube.com/watch?v=vM_KqW6ICVo
[02:36:02] wethu: has joined #RubyOnRails
[02:37:00] jottr: has joined #RubyOnRails
[02:38:15] choke: has joined #RubyOnRails
[02:41:15] sevenseacat: has joined #RubyOnRails
[02:42:23] planigan: has joined #RubyOnRails
[02:44:47] umaaji: has joined #RubyOnRails
[02:47:30] cam27: has joined #RubyOnRails
[02:51:46] mtkd: has joined #RubyOnRails
[02:53:55] cagomez: has joined #RubyOnRails
[03:00:37] timdotrb_: Evening, all
[03:01:33] timdotrb_: Is anyone aware of a configuration for sunspot_rails that allows you to search an integer field? I’ve come across this post: https://stackoverflow.com/questions/11057100/solr-does-not-search-into-integers but I would prefer a more “rails” like solution
[03:15:16] jhfisc: has joined #RubyOnRails
[03:16:19] bronson: has joined #RubyOnRails
[03:22:46] ascarter: has joined #RubyOnRails
[03:26:00] wethu: has joined #RubyOnRails
[03:33:28] lessless: has joined #RubyOnRails
[03:33:51] larissa: has joined #RubyOnRails
[03:47:14] jhfisc: has joined #RubyOnRails
[03:48:37] Saukk: has joined #RubyOnRails
[03:53:14] jhfisc: has joined #RubyOnRails
[03:56:11] Jameser: has joined #RubyOnRails
[03:59:14] jhfisc: has joined #RubyOnRails
[04:02:24] umaaji: has joined #RubyOnRails
[04:06:25] jhfisc: has joined #RubyOnRails
[04:11:58] mvensky: has joined #RubyOnRails
[04:17:29] jeromelanteri: has joined #RubyOnRails
[04:19:42] jhfisc: has joined #RubyOnRails
[04:23:04] Jameser: has joined #RubyOnRails
[04:24:53] jhfisc: has joined #RubyOnRails
[04:26:34] conta: has joined #RubyOnRails
[04:33:03] jhfisc: has joined #RubyOnRails
[04:37:49] jottr: has joined #RubyOnRails
[04:43:16] jhfisc: has joined #RubyOnRails
[04:52:57] gambl0re: has joined #RubyOnRails
[04:55:01] gambl0re: has joined #RubyOnRails
[04:58:44] Derperperd: has joined #RubyOnRails
[05:02:30] bronson: has joined #RubyOnRails
[05:15:14] jhfisc: has joined #RubyOnRails
[05:17:45] kies: has joined #RubyOnRails
[05:18:37] nickjj_: has joined #RubyOnRails
[05:20:54] weaksauce: has joined #RubyOnRails
[05:25:32] jhfisc: has joined #RubyOnRails
[05:29:13] jhfisc: has joined #RubyOnRails
[05:43:17] jhfisc: has joined #RubyOnRails
[05:44:53] krmela: has joined #RubyOnRails
[05:49:55] Defenestrate: has joined #RubyOnRails
[05:53:02] jhfisc: has joined #RubyOnRails
[05:54:25] krmela: Good morning there is there any expert on ransack search form ?
[05:55:43] [SpLaT]: dumb question - building an ultra-light-weight app and I need to capture just the user agent and client ip for the majority of the pages a user will hit. Am I better off just setting variables with requests for each page or is there a good reason to go down the session/cookie route? Is there another way that does not require a db or local storage?
[05:58:59] cjohnson: capture and then do what with?
[05:59:05] cjohnson: you will have to store them somewhere at some point
[06:00:40] cjohnson: If you need to store it longer than one request then generally yes a session is the way to go. You can store the session in memory though, doesn't have to be a database
[06:05:04] roshanavand: has joined #RubyOnRails
[06:05:26] jhfisc: has joined #RubyOnRails
[06:08:54] netzfisch: has joined #RubyOnRails
[06:11:14] jhfisc: has joined #RubyOnRails
[06:16:13] krmela: hello there i have simple ransack date range all works now i am trying to enable remote true and edit code to make it works but i am failed any ideas ? source is on https://gist.github.com/netmoleCBA/b4e6eb71425b39877cf39ce51a18dea5
[06:21:05] jhfisc: has joined #RubyOnRails
[06:24:56] mvensky: has joined #RubyOnRails
[06:25:59] ascarter: has joined #RubyOnRails
[06:27:15] jhfisc: has joined #RubyOnRails
[06:30:58] jhfisc: has joined #RubyOnRails
[06:38:46] cheeti: has joined #RubyOnRails
[06:38:53] jottr: has joined #RubyOnRails
[06:40:05] cheeti: Hi i am storing html code as it is database but when i want to display in view it's executing. how to display with out executing html code
[06:43:28] jhfisc: has joined #RubyOnRails
[06:47:02] cjohnson: cheeti: https://stackoverflow.com/a/692926/532566
[06:47:39] cjohnson: Or .html_safe if you are escaping in the controller
[06:52:35] ahrs: has joined #RubyOnRails
[07:00:21] sevenseacat: has joined #RubyOnRails
[07:02:14] workmad3: has joined #RubyOnRails
[07:03:23] bronson: has joined #RubyOnRails
[07:04:39] nickjj__: has joined #RubyOnRails
[07:09:44] cheeti: cjohnson it's not working in controller working in view only
[07:16:40] patarr: has joined #RubyOnRails
[07:27:10] Defenestrate: has joined #RubyOnRails
[07:29:46] jottr: has joined #RubyOnRails
[07:31:19] AzaToth: has joined #RubyOnRails
[07:44:45] krmela: hello there i have ransack form with date range search criteria all worked now i am like to enable on it remote true can anyone give me suggestion which ways is best to do
[07:51:37] dionysus69: has joined #RubyOnRails
[07:59:18] mikecmpbll: has joined #RubyOnRails
[08:06:33] Ergo: has joined #RubyOnRails
[08:25:00] hahuang65: has joined #RubyOnRails
[08:25:27] acosonic: has joined #RubyOnRails
[08:26:23] marr: has joined #RubyOnRails
[08:31:21] jottr: has joined #RubyOnRails
[08:31:23] krmela: hello there
[08:36:18] krmela: i have question can anyone suggest me good example for ransack with remote true as i am digging and my code not find nothing if form is used
[08:48:59] lxsameer: has joined #RubyOnRails
[09:04:40] bronson: has joined #RubyOnRails
[09:05:30] roshanavand: has joined #RubyOnRails
[09:05:54] lexileo: has joined #RubyOnRails
[09:08:31] srinidhi: has joined #RubyOnRails
[09:09:38] srinidhi: has joined #RubyOnRails
[09:16:40] jottr: has joined #RubyOnRails
[09:17:32] patarr: has joined #RubyOnRails
[09:20:34] ferr: has joined #RubyOnRails
[09:27:22] high_fiver: has joined #RubyOnRails
[09:31:59] krmela: good evening there , i have question i have ransack form with remote but ajax returns just same page and not ransacker record any idea ?
[09:43:12] jottr: has joined #RubyOnRails
[09:44:40] acosonic: has joined #RubyOnRails
[09:46:30] arBmind: has joined #RubyOnRails
[09:48:46] arup_r: has joined #RubyOnRails
[10:03:55] chouhoulis: has joined #RubyOnRails
[10:15:58] patarr: has joined #RubyOnRails
[10:46:32] Defenestrate: has joined #RubyOnRails
[10:49:13] jhfisc: has joined #RubyOnRails
[10:57:07] gregf_: has joined #RubyOnRails
[10:58:37] jhfisc: has joined #RubyOnRails
[11:02:40] high_fiver: has joined #RubyOnRails
[11:05:41] bronson: has joined #RubyOnRails
[11:11:27] jhfisc: has joined #RubyOnRails
[11:14:14] Defenestrate: has joined #RubyOnRails
[11:22:49] jhfisc: has joined #RubyOnRails
[11:29:14] jhfisc: has joined #RubyOnRails
[11:31:12] brahman: has joined #RubyOnRails
[11:33:33] jottr: has joined #RubyOnRails
[11:37:14] jhfisc: has joined #RubyOnRails
[11:41:38] workmad3: has joined #RubyOnRails
[11:41:42] ldnunes: has joined #RubyOnRails
[11:43:14] jhfisc: has joined #RubyOnRails
[11:46:41] xco: has joined #RubyOnRails
[11:49:05] jhfisc: has joined #RubyOnRails
[11:55:04] diegorv: has joined #RubyOnRails
[12:01:37] diegorv: has joined #RubyOnRails
[12:03:44] jhfisc: has joined #RubyOnRails
[12:08:11] jhfisc: has joined #RubyOnRails
[12:18:57] dblessing: has joined #RubyOnRails
[12:19:09] jhfisc: has joined #RubyOnRails
[12:26:56] Bacta: has joined #RubyOnRails
[12:28:25] Bacta: Hi - how feasible would it be to upgrade from 2.3.18.18 to 3.2.22.8 instead of going first to 3.0? The reason I'm asking is we're using the Rails LTS support gems and only those two versions are supported.
[12:31:49] srinidhi: has joined #RubyOnRails
[12:33:18] workmad3: has joined #RubyOnRails
[12:33:36] jhfisc: has joined #RubyOnRails
[12:39:56] jhfisc: has joined #RubyOnRails
[12:46:10] jhfisc: has joined #RubyOnRails
[12:49:11] cherrysunburst: has joined #RubyOnRails
[12:55:14] jhfisc: has joined #RubyOnRails
[13:00:12] jhfisc: has joined #RubyOnRails
[13:06:22] workmad3: has joined #RubyOnRails
[13:06:30] jhfisc: has joined #RubyOnRails
[13:06:43] bronson: has joined #RubyOnRails
[13:10:04] jhfisc: has joined #RubyOnRails
[13:18:26] jhfisc: has joined #RubyOnRails
[13:26:18] aclark: has joined #RubyOnRails
[13:28:14] rkellermeyer: has joined #RubyOnRails
[13:29:10] jhfisc: has joined #RubyOnRails
[13:31:55] ascarter: has joined #RubyOnRails
[13:36:26] sekmo: has joined #RubyOnRails
[13:40:12] jottr: has joined #RubyOnRails
[13:41:06] cam27: has joined #RubyOnRails
[13:48:44] quirkycoders: has joined #RubyOnRails
[13:55:18] cpruitt: has joined #RubyOnRails
[14:01:01] trinaldi: has joined #RubyOnRails
[14:02:54] quirkycoders: has joined #RubyOnRails
[14:11:03] choke: has joined #RubyOnRails
[14:14:40] p8m: has joined #RubyOnRails
[14:15:16] xco: has joined #RubyOnRails
[14:19:53] dionysus69: has joined #RubyOnRails
[14:23:26] xco_: has joined #RubyOnRails
[14:37:55] SteenJobs_: has joined #RubyOnRails
[14:38:44] nopolitica: has joined #RubyOnRails
[14:44:06] workmad3_: has joined #RubyOnRails
[14:44:44] broman: has joined #RubyOnRails
[14:45:12] broman: can someone please help me with ruby regex? I want to do something like @a.split("<img src='.*'>")
[14:45:28] broman: I want to make an array with all <img> tags
[14:46:48] briian: has joined #RubyOnRails
[14:46:55] briian: has left #RubyOnRails: ()
[14:48:10] mtkd: has joined #RubyOnRails
[14:53:51] soahccc: has joined #RubyOnRails
[14:56:26] dminuoso: broman: nokogiri
[14:56:29] helpa: Next question, please!
[14:57:07] broman: dminuoso, thank you for your help, but I want to do it with simple regex
[14:57:20] broman: not with high level regex.. just pure and simple regex
[15:00:56] soahccc: has joined #RubyOnRails
[15:05:33] irishfromua: has joined #RubyOnRails
[15:07:31] bronson: has joined #RubyOnRails
[15:08:11] chouhoulis: has joined #RubyOnRails
[15:17:35] patarr: has joined #RubyOnRails
[15:21:45] cagomez: has joined #RubyOnRails
[15:29:29] soahccc: has joined #RubyOnRails
[15:30:48] choke: has joined #RubyOnRails
[15:31:26] soahccc: has joined #RubyOnRails
[15:34:03] soahccc: Hey guys, is there a maximum version of mysql2 for activerecord? It throws me the "add mysql2 to your gemfile" but it is there... I dont get it
[15:34:52] apparition: has joined #RubyOnRails
[15:35:43] dminuoso: soahccc: did you a) run `bundle` and b) `spring restart` ?
[15:36:49] soahccc: dminuoso: well I guess it's a 4.1 project without spring but yeah I bundled. The thing is that I updated my server and I suddenly got "uninitialized constant Mysql2::Client::SECURE_CONNECTION" so I updated the mysql2 gem and now it tells me to add it to the gemfile
[15:37:26] dminuoso: soahccc: Not entirely surprising, you are using a no-longer maintained version of Rails.
[15:38:42] soahccc: Okay 0.4 was to recent I guess. It breaks with 0.3.16 and works with 0.3.18 so I guess that works for me :)
[15:38:52] brent__: has joined #RubyOnRails
[15:40:58] dminuoso: soahccc: Most likely. It's a bit surprising that Rails would not have a pessimistic version constraint there though.
[15:41:01] jottr: has joined #RubyOnRails
[15:42:14] soahccc: dminuoso: I think they improved the errors with rails 5, no? I think they now tell you what the version should be
[15:43:13] dminuoso: soahccc: I wouldn't know, I don't use MySQL.
[15:54:38] quirkycoders: has joined #RubyOnRails
[16:00:51] SteenJobs_: has joined #RubyOnRails
[16:06:31] srinidhi: has joined #RubyOnRails
[16:08:47] francuz: has joined #RubyOnRails
[16:11:01] francuz: has left #RubyOnRails: ()
[16:20:19] rakm: has joined #RubyOnRails
[16:26:42] rakm_: has joined #RubyOnRails
[16:32:59] jhfisc: has joined #RubyOnRails
[16:33:54] ascarter: has joined #RubyOnRails
[16:41:43] srinidhi: has joined #RubyOnRails
[16:42:48] mikecmpbll: has joined #RubyOnRails
[16:44:28] Aherin: has joined #RubyOnRails
[16:49:51] jhfisc: has joined #RubyOnRails
[16:54:05] srinidhi: has joined #RubyOnRails
[16:56:30] chouhoulis: has joined #RubyOnRails
[16:57:25] chouhoulis: has joined #RubyOnRails
[16:57:50] dionysus69: has joined #RubyOnRails
[16:57:56] cagomez: has joined #RubyOnRails
[17:05:21] jhfisc: has joined #RubyOnRails
[17:05:23] roshanavand: has joined #RubyOnRails
[17:07:39] knight33: has joined #RubyOnRails
[17:08:48] bronson: has joined #RubyOnRails
[17:10:22] cagomez: has joined #RubyOnRails
[17:16:09] tanuki: has joined #RubyOnRails
[17:16:22] jhfisc: has joined #RubyOnRails
[17:25:08] jottr: has joined #RubyOnRails
[17:25:31] lessless: has joined #RubyOnRails
[17:30:26] SilentNinja1: has joined #RubyOnRails
[17:31:08] SilentNinja1: Hello, I'm not seeing any log data for the RoR production.log, but my App is still working. Anything I can do to check what's going on?
[17:31:41] SilentNinja1: Maybe from Rails Console and call Rails.logger.info()?
[17:33:59] cjohnson: broman: https://stackoverflow.com/a/1732454/532566
[17:34:02] jhfisc: has joined #RubyOnRails
[17:34:48] SteenJobs_: has joined #RubyOnRails
[17:37:44] Chernobuk: has joined #RubyOnRails
[17:39:04] jhfisc: has joined #RubyOnRails
[17:42:23] kies: has joined #RubyOnRails
[17:43:28] cagomez: has joined #RubyOnRails
[17:45:16] jhfisc: has joined #RubyOnRails
[17:48:09] jhfisc: has joined #RubyOnRails
[17:52:19] Bacta: Why do Rails upgrades have to be so painful?
[17:57:18] uks: has joined #RubyOnRails
[18:01:17] duderonomy: has joined #RubyOnRails
[18:04:54] hndk: has joined #RubyOnRails
[18:09:52] cjohnson: because Rails is software
[18:09:58] cjohnson: and software upgrades are inherently painful
[18:10:10] cjohnson: If the difference were so minimal, you wouldn't really have to upgrade
[18:13:19] baweaver: Typically it can be mitigated by making sure to finish out the minor versions between the majors
[18:13:29] baweaver: and paying _very_ close attention to those deprecation warnings
[18:13:38] baweaver: because Rails is very good about carrying through with them
[18:14:17] jhfisc: has joined #RubyOnRails
[18:17:12] cagomez: has joined #RubyOnRails
[18:17:52] defsdoor: has joined #RubyOnRails
[18:18:04] jhfisc: has joined #RubyOnRails
[18:20:53] theunraveler: has joined #RubyOnRails
[18:22:19] centrx: has joined #RubyOnRails
[18:29:54] jhfisc: has joined #RubyOnRails
[18:31:50] noizex: has joined #RubyOnRails
[18:41:14] jhfisc: has joined #RubyOnRails
[18:46:50] guacamole: has joined #RubyOnRails
[18:49:15] mostlybadfly: has joined #RubyOnRails
[18:51:12] jhfisc: has joined #RubyOnRails
[18:57:14] jhfisc: has joined #RubyOnRails
[19:02:16] jhfisc: has joined #RubyOnRails
[19:05:02] patarr1: has joined #RubyOnRails
[19:09:34] VeryBewitching: has joined #RubyOnRails
[19:09:42] bronson: has joined #RubyOnRails
[19:12:05] ResidentBiscuit: has joined #RubyOnRails
[19:13:14] jhfisc: has joined #RubyOnRails
[19:19:08] hahuang65: has joined #RubyOnRails
[19:19:14] jhfisc: has joined #RubyOnRails
[19:23:40] SteenJobs_: has joined #RubyOnRails
[19:25:10] cagomez: has joined #RubyOnRails
[19:25:38] jhfisc: has joined #RubyOnRails
[19:31:33] jhfisc: has joined #RubyOnRails
[19:32:29] jottr: has joined #RubyOnRails
[19:36:59] ascarter: has joined #RubyOnRails
[19:38:30] srinidhi: has joined #RubyOnRails
[19:43:22] patarr: has joined #RubyOnRails
[19:43:31] jhfisc: has joined #RubyOnRails
[19:51:07] dionysus69: has joined #RubyOnRails
[19:51:14] jhfisc: has joined #RubyOnRails
[19:51:38] kies: has joined #RubyOnRails
[19:56:41] gambl0re: has joined #RubyOnRails
[19:57:18] jhfisc: has joined #RubyOnRails
[19:58:00] patarr: has joined #RubyOnRails
[20:03:13] jhfisc: has joined #RubyOnRails
[20:08:19] jhfisc: has joined #RubyOnRails
[20:08:24] DrYockel: has joined #RubyOnRails
[20:09:51] lxsameer: has joined #RubyOnRails
[20:10:50] lxsameer: has joined #RubyOnRails
[20:13:17] jhfisc: has joined #RubyOnRails
[20:16:24] dviola: has joined #RubyOnRails
[20:19:15] jhfisc: has joined #RubyOnRails
[20:24:20] quirkycoders: has joined #RubyOnRails
[20:25:27] cagomez: has joined #RubyOnRails
[20:28:53] SteenJobs_: has joined #RubyOnRails
[20:35:00] theunraveler: has joined #RubyOnRails
[20:37:52] ascarter: has joined #RubyOnRails
[20:43:33] SteenJobs__: has joined #RubyOnRails
[20:43:37] workmad3: has joined #RubyOnRails
[20:44:29] mtkd: has joined #RubyOnRails
[20:44:50] quirkycoders: has joined #RubyOnRails
[20:52:01] one_zero: has joined #RubyOnRails
[20:53:23] one_zero: has joined #RubyOnRails
[20:54:03] rakm: has joined #RubyOnRails
[20:55:11] br0d1n: has joined #RubyOnRails
[20:56:50] one_zero: has joined #RubyOnRails
[20:59:40] one_zero: has joined #RubyOnRails
[21:02:41] gusrub: has joined #RubyOnRails
[21:08:31] cagomez: has joined #RubyOnRails
[21:09:13] cagomez: has joined #RubyOnRails
[21:10:37] bronson: has joined #RubyOnRails
[21:18:18] SteenJobs_: has joined #RubyOnRails
[21:21:07] quirkycoders: has joined #RubyOnRails
[22:02:05] cagomez: has joined #RubyOnRails
[22:02:34] cagomez: has joined #RubyOnRails
[22:09:56] quirkycoders: has joined #RubyOnRails
[22:23:45] brent__: has joined #RubyOnRails
[22:29:17] Maletor: has joined #RubyOnRails
[22:30:07] Maletor: why am i getting this error when setting DATABASE_URL env var? /usr/local/lib/ruby/2.4.0/uri/rfc2396_parser.rb:177:in `split': bad URI(is not URI?): "mysql2://db" (URI::InvalidURIError)
[22:32:59] quirkycoders: has joined #RubyOnRails
[22:36:47] helpa-bot: has joined #RubyOnRails
[22:38:46] helpa: has joined #RubyOnRails
[22:51:10] eggie5: has joined #RubyOnRails
[22:56:45] SteenJobs_: has joined #RubyOnRails
[23:01:34] juddey: has joined #RubyOnRails
[23:08:08] rkellermeyer: has joined #RubyOnRails
[23:11:04] wethu: has joined #RubyOnRails
[23:11:54] bronson: has joined #RubyOnRails
[23:20:45] jhfisc: has joined #RubyOnRails
[23:31:04] jhfisc: has joined #RubyOnRails
[23:34:02] DLSteve: has joined #RubyOnRails
[23:34:50] lacuna: has joined #RubyOnRails
[23:37:31] jhfisc: has joined #RubyOnRails
[23:38:02] cagomez: has joined #RubyOnRails
[23:39:58] ascarter: has joined #RubyOnRails
[23:40:35] jhfisc: has joined #RubyOnRails
[23:46:34] wethu: has joined #RubyOnRails
[23:47:14] jhfisc: has joined #RubyOnRails
[23:53:52] SteenJobs_: has joined #RubyOnRails
[23:57:23] SteenJobs_: has joined #RubyOnRails
[23:57:42] jhfisc: has joined #RubyOnRails