« Back to channel list

#RubyOnRails - 16 April 2017

« Back 1 day Forward 1 day »
[00:03:21] armyriad: has joined #RubyOnRails
[00:04:36] spicerack: has joined #RubyOnRails
[00:07:28] fryguy: wkoszek: bundler configuration tends to vary by environment, especially when using --deployment
[00:17:43] jaequery: has joined #RubyOnRails
[00:19:13] jaequery_: has joined #RubyOnRails
[00:30:25] cerulean: has joined #RubyOnRails
[00:30:33] cerulean: has anyone done stuff with the yt gem and youtube data api v3?
[00:30:45] cerulean: insufficientPermissions for EVER even though i requested the correct scopes
[00:30:53] cerulean: i'm trying to create a subscription to a video
[00:33:12] gambl0re: has joined #RubyOnRails
[00:34:29] ResidentBiscuit: has joined #RubyOnRails
[01:04:54] Trynemjoel: has joined #RubyOnRails
[01:07:23] Rodya_: has joined #RubyOnRails
[01:08:35] drale2k_: has joined #RubyOnRails
[01:15:16] Jameser: has joined #RubyOnRails
[01:17:27] wkoszek: ACTION reading about --deployment
[01:17:54] planigan: has joined #RubyOnRails
[01:33:51] irishfromua: has joined #RubyOnRails
[01:49:33] akshat: has joined #RubyOnRails
[01:54:17] willyham: has joined #RubyOnRails
[01:54:23] willyham: hey guys/girls
[01:54:37] willyham: I need to answer honestly to this :)
[01:55:10] willyham: is ruby on rails good enough performance wise to support a mobile api on top of the normal web server
[01:58:04] grymok: has joined #RubyOnRails
[02:04:58] libastral: has joined #RubyOnRails
[02:10:25] willyham: any case studies?
[02:12:40] wkoszek: I think you just need to lookup the bigest consumers of Rails and see what their workload is and compare it t yours.
[02:13:22] wkoszek: Quite likely your workload is smaller, so Rails should be just fine for you.
[02:25:13] jaequery: has joined #RubyOnRails
[02:30:19] wkoszek: Bad performance of your code is a good problem to have. Typically it's less of an issue for all of your 5 users :)
[03:01:01] sevenseacat: has joined #RubyOnRails
[03:18:07] harfangk: has joined #RubyOnRails
[03:30:35] Rodya_: has joined #RubyOnRails
[03:34:14] ResidentBiscuit: has joined #RubyOnRails
[03:49:15] jdm: has joined #RubyOnRails
[03:50:57] LastWhisper____: has joined #RubyOnRails
[04:08:13] patarr: has joined #RubyOnRails
[04:15:28] irishfromua: has joined #RubyOnRails
[04:21:42] w0rd-driven: has joined #RubyOnRails
[04:43:26] Jameser: has joined #RubyOnRails
[04:49:55] wkoszek: Any pkgr users here?
[05:08:14] Rodya_: has joined #RubyOnRails
[05:15:12] s2013: has joined #RubyOnRails
[05:17:36] Jameser: has joined #RubyOnRails
[05:38:12] Jameser: has joined #RubyOnRails
[06:00:56] Jameser: has joined #RubyOnRails
[06:07:32] oddalot: has joined #RubyOnRails
[06:08:09] Jameser: has joined #RubyOnRails
[06:09:05] patarr: has joined #RubyOnRails
[06:14:10] kristofferR: has joined #RubyOnRails
[06:14:20] Technodrome: has joined #RubyOnRails
[06:59:34] arBmind: has joined #RubyOnRails
[07:04:39] Jameser: has joined #RubyOnRails
[07:08:03] scrooloose: has joined #RubyOnRails
[07:10:40] Rodya_: has joined #RubyOnRails
[07:13:48] andrew91841_: has joined #RubyOnRails
[07:25:08] djbkd: has joined #RubyOnRails
[07:30:39] uks: has joined #RubyOnRails
[07:31:34] Qchmqs: has joined #RubyOnRails
[07:36:52] pavelz: has joined #RubyOnRails
[07:38:22] Pumukel: has joined #RubyOnRails
[07:41:38] dionysus69: has joined #RubyOnRails
[08:00:43] creaked: has joined #RubyOnRails
[08:09:38] patarr: has joined #RubyOnRails
[08:15:25] pankaj: has joined #RubyOnRails
[08:29:29] Jameser: has joined #RubyOnRails
[08:34:46] pankaj: has joined #RubyOnRails
[08:39:32] Jameser: has joined #RubyOnRails
[08:51:37] AzaToth: has joined #RubyOnRails
[08:53:33] lxsameer: has joined #RubyOnRails
[09:00:25] Technodrome: has joined #RubyOnRails
[09:00:56] dionysus69: has joined #RubyOnRails
[09:12:11] Rodya_: has joined #RubyOnRails
[09:22:52] srinidhi: has joined #RubyOnRails
[09:27:22] kies: has joined #RubyOnRails
[09:34:52] DrYockel: has joined #RubyOnRails
[09:42:25] wethu: has joined #RubyOnRails
[09:53:15] Fernando-Basso: has joined #RubyOnRails
[10:10:34] patarr: has joined #RubyOnRails
[10:12:54] Rodya_: has joined #RubyOnRails
[10:39:47] s2013: has joined #RubyOnRails
[10:52:04] willyham: has joined #RubyOnRails
[10:52:08] willyham: Hey all. We are proposing ruby to our client but he is telling us that “mainly lack of good devs out there using it”
[10:52:23] willyham: how do I respond to this?
[10:52:49] sevenseacat: dont they consider you to be good devs?
[10:56:42] willyham: We are a development company that is going to be creating the project and passing it on to a team they build
[10:57:20] sevenseacat: so thats a no, obviously
[10:57:40] willyham: what do you mean?
[10:58:46] dminuoso: willyham: Ask them whether they consider PHP to be popular. Or Perl.
[10:58:55] dminuoso: If they do, point out that Ruby is more popular than both.
[10:59:10] dminuoso: Though on second thought, that may not work out so well.
[10:59:29] willyham: PHP is what I think they are pushing for because they have done projects in that language before
[10:59:33] willyham: buttttttttt
[10:59:35] willyham: I love rails
[10:59:46] dminuoso: willyham: Not much you can do if they don't do rails.
[11:00:04] willyham: I have the chance to pursuade them
[11:00:16] sevenseacat: good luck then
[11:00:25] willyham: They haven’t even built there team yet
[11:01:38] sevenseacat: what technical reasons do you have for wanting to do the project in rails? (and 'i love rails' is not a valid answer)
[11:02:24] DrYockel1: has joined #RubyOnRails
[11:02:26] dminuoso: My reason was "I have a really cool Rails icon. If we use rails we can re-use that and save ourselves some time"
[11:03:06] willyham: Well the speed of development mostly
[11:03:18] willyham: and that it has tons of gems and support
[11:03:23] sevenseacat: how does that help them?
[11:03:43] willyham: that doesn’t help them offer then us delivering on time
[11:03:54] sevenseacat: not a really great argument then
[11:04:02] dminuoso: Delivering on time they expect anyway.
[11:06:54] willyham: So is the job pool for ruby much smaller than PHP?
[11:07:02] dminuoso: 12:58:46 dminuoso | willyham: Ask them whether they consider PHP to be popular. Or Perl. ??? arielserafini
[11:07:04] dminuoso: 12:58:54 dminuoso | If they do, point out that Ruby is more popular than both. ??? arBmind
[11:07:18] sevenseacat: depends where you are in the world.
[11:07:33] willyham: He is looking at south africa
[11:07:38] sevenseacat: if you're in my city, we have about a dozen Ruby devs, total.
[11:07:54] dminuoso: sevenseacat: Without knowing the size of your city that's not saying much.
[11:08:00] tbuehlmann: dminuoso: what's your source for that? also, how do you define popular?
[11:08:03] sevenseacat: dminuoso: 2.5 million.
[11:08:32] dminuoso: tbuehlmann: A very respectable and trusthworthy source. [/trump]
[11:08:47] patarr: has joined #RubyOnRails
[11:09:07] tbuehlmann: because I don't see how ruby is more popular than php, but also, I don't have any sources for that, it's just a feeling
[11:09:41] tbuehlmann: but I do see a point when willyham says the development using ruby (or are we talking rails?) would be faster. how is that not an argument?
[11:09:58] tbuehlmann: isn't it really the only argument important for the client here?
[11:10:01] sevenseacat: depends how the project is being quoted.
[11:10:27] sevenseacat: and really, you should know what language you're using before you go quoting anything.
[11:11:13] willyham: Why sevenseacat? Whatever language fits the boot
[11:11:23] sevenseacat: and its not the only argument important here - given the client is building a team to maintain the app afterwards
[11:11:46] sevenseacat: willyham: so why does Ruby fit more than PHP, again?
[11:11:48] dminuoso: So with that in mind, they care about reasons that have an impact on maintainability.
[11:12:52] willyham: Well that is the thing. Ruby and PHP are very similar in advantages and disadvantages.
[11:13:00] willyham: But there is a benefit on our side
[11:13:48] Rodya_: has joined #RubyOnRails
[11:13:50] pankaj: has joined #RubyOnRails
[11:14:21] willyham: The hard part is proving that ruby is a language is easier to recruit for
[11:14:38] pankaj: Hello can somebody help me out ?
[11:15:01] sevenseacat: are you offering to help them recruit?
[11:16:14] willyham: No we are not sevenseacat
[11:18:34] pankaj: I am using paperclip gem to upload images to my rails application. Everything is fine but problem is that it always points to the default image which is Missing.png and cannot find my submitted image. What is the problem?
[11:20:45] sevenseacat: pankaj: without seeing your code, we have absolutely no way of knowing.
[11:22:06] pankaj: So I am just going to paste it. Wait
[11:25:13] pankaj: sevenseacat: Is their any site so that I can liste pics of my application there?
[11:26:48] loveablelobster: has joined #RubyOnRails
[11:27:39] sevenseacat: pankaj: if you can gist some code relating to your problem at http://gist.github.com/ that would be helpful. not pics.
[11:36:38] pankaj: https://gist.github.com/anonymous/56bf52254d68e0875e713ba09f3e20fb
[11:38:24] sevenseacat: pankaj: I suspect params[:post] is nil when you submit your form - can you paste the logs of what happens?
[11:41:51] pankaj: https://gist.github.com/anonymous/5b8359e6d63d904da53e01d66398efec
[11:42:35] pankaj: I first went to index Page. I pressed 'Create new Post'. I created the post and then returned to index page.
[11:43:52] sevenseacat: right, look at the params being submitted to the create action
[11:44:16] sevenseacat: params[:post] is not set, because you're using form_tag as opposed to the typical form_for
[11:45:32] pankaj: ok. How will I get the value of :avatar then. (I know that I have not taken the values of name and email in this case so to be submitted).
[11:47:53] pankaj: sevenseacat: Does rails provide any method so that I can handle to submit the image manually as I did with form tag?
[11:48:34] sevenseacat: you need to pass the right parameters to your Post.create method, in your controller.
[11:48:39] sevenseacat: at the moment, you're not passing any.
[11:54:14] pankaj: sevenseacat: So how to pass the correct parameters. I know about the four parameters that are created when I create an attachment. So how can I pass correctly?
[11:54:14] pankaj: sevenseacat: Can you send me an example listing the create action only so to handle the image upload process
[11:55:30] sevenseacat: pankaj: you need to look at the params you're submitting https://gist.github.com/anonymous/5b8359e6d63d904da53e01d66398efec#file-pankaj1-L94 and compare them to what you're doing in your controller. I'm not going to write the code for you.
[11:55:42] sevenseacat: https://gist.github.com/anonymous/56bf52254d68e0875e713ba09f3e20fb#file-gistfile5-txt-L8 and https://gist.github.com/anonymous/56bf52254d68e0875e713ba09f3e20fb#file-gistfile5-txt-L27
[11:57:16] pankaj: seavenseacat: OK I am checking now
[12:00:26] dminuoso: sevenseacat: Im willing to bet that there's more than 12 Ruby devs in your city though. :-)
[12:00:39] dminuoso: sevenseacat: But I do understand what you were saying.
[12:00:55] dminuoso: How did you arrive at that number?
[12:01:42] pankaj: sevenseacat: https://gist.github.com/anonymous/574ac37a5c81921c4eae4696023cc148
[12:01:47] sevenseacat: we no longer have any companies doing Ruby dev (or if we do, I haven't seen them), and our meetups get about 6 people, not all of whom actually write Ruby
[12:02:41] dminuoso: sevenseacat: I think it's more likely that you haven't seen them. Or perhaps the majority of them is involved with inhouse projects.
[12:02:47] pankaj: sevenseacat: I usually used to write create action manually like this. I am just asking that why I am not able to submit the image via :avatar. What is the different in this case of image?
[12:02:54] sevenseacat: dminuoso: if you say so.
[12:02:56] dminuoso: sevenseacat: But perhaps I'm wrong. I don't have your picture.
[12:03:02] sevenseacat: indeed, you are.
[12:03:34] pankaj: sevenseacat: Error 'No handler found for "button4"' is being reported to me. How can I handle the image so to submit.
[12:03:45] sevenseacat: pankaj: what?
[12:04:15] sevenseacat: and where is that coming from?
[12:04:22] sevenseacat: you're not exactly being forthcoming with info, here
[12:04:45] pankaj: sevenseacat: Just want to ask that how can I submit the image via :avatar tag.
[12:04:59] sevenseacat: your code is one way of doing it.
[12:05:35] pankaj: sevenseacat: Had you seen the create action I just sent above?
[12:05:54] sevenseacat: if that doesnt work, you need to show some more info as to why.
[12:07:52] pankaj: sevenseacat: I am asking that: 'Like many parameters that I can reference via params['parameter name']' why I am unable to reference the image also. You said that I was submitting nil image so how to reference the image from the form if my way was wrong. What is the right way of referencing the image if params['image name'] does not work.
[12:08:03] sevenseacat: it does work.
[12:08:11] sevenseacat: if that doesnt work, you need to show some more info as to why.
[12:14:36] Rodya_: has joined #RubyOnRails
[12:15:03] pankaj: has joined #RubyOnRails
[12:16:59] pankaj: sevenseacat: As I can get the value of parameters from the form to create action via params['parameter name']. So similarly how to access image that I submitted?
[12:20:23] pankaj: has joined #RubyOnRails
[12:21:22] pankaj: hello. is anybody listening?
[12:22:35] pankaj: hello. is anybody listening?
[12:25:02] akshat: has joined #RubyOnRails
[12:30:03] pankaj: hello. is anybody listening?
[12:37:18] wethu: has joined #RubyOnRails
[12:54:55] mikecmpbll: has joined #RubyOnRails
[13:04:10] Rodya_: has joined #RubyOnRails
[13:12:06] wethu: has joined #RubyOnRails
[13:13:44] Pumukel: has joined #RubyOnRails
[13:42:06] srinidhi: has joined #RubyOnRails
[13:56:10] jdm: has joined #RubyOnRails
[14:11:03] dionysus69: has joined #RubyOnRails
[14:27:05] DLSteve: has joined #RubyOnRails
[14:34:35] arBmind: has left #RubyOnRails: ()
[14:50:37] xibalba: has joined #RubyOnRails
[15:16:12] Saukk: has joined #RubyOnRails
[15:23:56] willyham: has joined #RubyOnRails
[15:24:06] uks: has joined #RubyOnRails
[15:30:57] akshat: has joined #RubyOnRails
[15:33:19] r3vDev: has joined #RubyOnRails
[15:43:52] RubyRonin: has joined #RubyOnRails
[15:44:10] RubyRonin: greetings all, I'm having the darnest time install bootstrap 4 in my rails 5 app
[15:44:19] RubyRonin: I'm following the instructions in the github but no dice
[15:44:24] RubyRonin: can someoen please assist
[15:44:46] drale2k_: has joined #RubyOnRails
[15:53:35] dminuoso: RubyRonin: !rule3
[15:53:35] helpa: RubyRonin: Clearly explain what is happening and create a Gist (http://gist.github.com), (formatted neatly please: http://bit.ly/1q75oia) of the code that is causing the problem you are encountering, as well as any useful output like stacktraces.
[15:54:31] Rodya_: has joined #RubyOnRails
[16:00:44] bronson: has joined #RubyOnRails
[16:05:19] RubyRonin: dminuoso: https://gist.github.com/RubyRonin/3f3146099e4fed4b8fe1519f8f2db2eb
[16:05:37] RubyRonin: using this gem https://github.com/twbs/bootstrap-rubygem
[16:06:08] dminuoso: RubyRonin: You skipped the first and the last.
[16:06:28] dminuoso: "Clearly explain what is happening" and "as well as any useful output like stacktraces."
[16:06:37] dminuoso: I just see a couple of random files.
[16:07:00] RubyRonin: bootstrap components are not loading, the bootstrap css is not being applied to my html
[16:07:09] RubyRonin: how do I stacktrace?
[16:08:20] grymok: has joined #RubyOnRails
[16:09:02] cagmz: has joined #RubyOnRails
[16:10:18] RubyRonin: my console does show any errors, just my files being loading when I navigate through the pages
[16:11:12] dminuoso: RubyRonin: start looking at your devtools in the network tab
[16:11:59] dminuoso: RubyRonin: Also, what makes you say "they are not loading" ?
[16:12:05] dminuoso: I dont see any HTML that uses bootstrap classes.
[16:12:47] sevenseacat: did you write any?
[16:14:17] RubyRonin: I've just udpdated the gist
[16:14:37] RubyRonin: I have a index.html.erb file in my charges folder, wired up to my charges controller, none of the bootstrap styles are being shown
[16:14:41] cerulean: i did bootstrap in rails 5
[16:14:48] dminuoso: +1 for updating the gist.
[16:14:49] sevenseacat: err, what is charges.html.erb
[16:15:27] cerulean: yo RubyRonin
[16:15:32] cerulean: does you application.scss contain @import "bootstrap";
[16:15:36] RubyRonin: the charges.html.erb file is in the layout folder
[16:15:43] RubyRonin: cerulean: yes
[16:16:04] sevenseacat: RubyRonin: if you're using that file as your layout, it does not include bootstrap, or any CSS.
[16:16:10] sevenseacat: use the application layout.
[16:16:15] RubyRonin: it also contains @import 'bootstrap-sprockets'
[16:16:23] cerulean: RubyRonin: have you rebooted the server, have you tried rake assets:precompile to see if it gets compiled?
[16:16:32] cerulean: bam sevenseacat
[16:16:35] dminuoso: RubyRonin: except your layout has no tags for the css or javascript.
[16:16:40] cerulean: bam dminuoso
[16:16:46] RubyRonin: I've rebooted the server, i have not tried rake assets:precompile, didn't know it was needed
[16:16:47] cerulean: ACTION exits stage left
[16:16:55] dminuoso: No RubyRonin.
[16:16:57] cerulean: it's not needed
[16:17:03] cerulean: but you can use it to test if sprockets is making the css
[16:17:15] sevenseacat: if it wasn't, you'd get a big fat error when loading the page.
[16:17:16] cerulean: < sevenseacat> RubyRonin: if you're using that file as your layout, it does not include bootstrap, or any CSS.
[16:17:23] cerulean: < dminuoso> RubyRonin: except your layout has no tags for the css or javascript.
[16:18:13] RubyRonin: so I removed that file, refreshed the charges page, it is now loading the application.html.erb layout file
[16:18:15] RubyRonin: thanks fo rth eupdate
[16:18:19] RubyRonin: now I'm getting a real error
[16:18:28] RubyRonin: File to import not found or unreadable: bootstrap-sprockets.
[16:18:33] cerulean: add to your layout
[16:18:33] cerulean: <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
[16:18:36] cerulean: <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %>
[16:18:38] dminuoso: ACTION punches cerulean
[16:18:45] cerulean: dont bulldog me its 2 lines of code
[16:19:03] dminuoso: cerulean: So now you end up with 2 identical layouts for no good reason.
[16:19:06] RubyRonin: removed that file
[16:19:09] sevenseacat: cerulean: did you check the gists at all?
[16:19:09] RubyRonin: now it works
[16:19:15] sevenseacat: or are you just saying random things
[16:19:15] cerulean: no i didnt check the gists
[16:19:39] sevenseacat: there's a reason we ask for them
[16:20:08] dminuoso: sevenseacat: Apparently not only do some people not provide them when they have a problem, others also don't read them when they are provided.
[16:20:10] dminuoso: What a bizarre world we live in.
[16:20:26] RubyRonin: much appreciated
[16:20:32] cerulean: http://stackoverflow.com/questions/35880086/bootstrap-sprockets-error-file-to-import-not-found-or-unreadable-bootstrap-spr
[16:20:41] sevenseacat: cerulean: please stop.
[16:20:54] cerulean: that's the eror he got
[16:38:55] bronson: has joined #RubyOnRails
[16:51:25] claudevandort: has joined #RubyOnRails
[17:04:40] netzfisch: has joined #RubyOnRails
[17:14:44] Fridtjof: has joined #RubyOnRails
[17:18:09] ResidentBiscuit: has joined #RubyOnRails
[17:18:25] cagmz_: has joined #RubyOnRails
[17:21:27] yaw: has joined #RubyOnRails
[17:35:22] sevenseacat: has joined #RubyOnRails
[17:40:41] Rodya_: has joined #RubyOnRails
[17:41:39] lxsameer: has joined #RubyOnRails
[17:48:43] netzfisch: has joined #RubyOnRails
[18:10:02] FastJack: has joined #RubyOnRails
[18:15:35] doctrr: has joined #RubyOnRails
[18:18:18] Fernando-Basso: has joined #RubyOnRails
[18:27:18] willyham: has joined #RubyOnRails
[18:39:21] Aherin: has joined #RubyOnRails
[18:39:45] bronson: has joined #RubyOnRails
[18:40:44] creaked: has joined #RubyOnRails
[18:41:53] User458764: Hi, how do I do make difference between POST, GET in a controller?
[18:50:18] xco: has joined #RubyOnRails
[18:50:43] dminuoso: User458764: You don't.
[18:50:48] xco: hi. where can i look first if i’m getting such an error “XMLHttpRequest cannot load http://localhost:3000/api/v1/firms/1. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:4200' is therefore not allowed access.” from my api only rails app?
[18:51:02] dminuoso: User458764: Use your config/routes.rb to differentiate
[18:51:04] havenwood: User458764: You'd distinguish in the routes.
[18:51:28] dminuoso: xco: You need to add CORS middleware.
[18:51:48] xco: dminuoso: how do i do that?
[18:51:57] dminuoso: xco: https://github.com/cyu/rack-cors
[18:52:06] dminuoso: xco: Add appropriate headers for localhost:4200
[18:52:10] creaked: has joined #RubyOnRails
[18:53:09] User458764: Thanks, I will specify a specific action for each case
[18:53:26] dminuoso: xco: To explain: When a browser detects that your app from "hostA" makes a request to "hostB", it asks "hostB" whether "hostA" is allowed for that access. This is called CORS preflight requests.
[18:54:12] dminuoso: xco: You need to somehow give Rails the capability of giving that permission. That rack-cors middleware does that.
[18:56:16] xco: dminuoso: wow, thank you. lots of new insights and new terms! thanks a lot!
[18:57:21] cerulean: User458764: request.method maybe?
[18:57:30] cerulean: User458764: use rails routing instead please
[18:57:57] dminuoso: cerulean: Again. No.
[18:58:00] dminuoso: cerulean: Please stop trying.
[18:58:07] cerulean: /ignore dminuoso
[18:58:39] cerulean: "you don't" is a pretty shitty answer to a legitimate question, don't you think?
[18:58:48] User458764: cerulean thanks lol, sure rails route works well
[18:58:59] cerulean: User458764: http://api.rubyonrails.org/classes/ActionDispatch/Request.html#method-i-method if you REALLY need it
[18:59:20] cerulean: User458764: i think you probably want this tho: http://guides.rubyonrails.org/routing.html
[18:59:53] Rodya_: has joined #RubyOnRails
[19:00:26] Technodrome: has joined #RubyOnRails
[19:00:30] dminuoso: User458764: Just for completions sake, if you actually should, you would generally use #request_method rather than #method
[19:01:03] User458764: I created these new actions get 'user/sign_in', to: 'user#get_sign_in'
[19:01:03] User458764: post 'user/sign_in', to: 'user#post_sign_in'
[19:01:23] dminuoso: User458764: Looks good.
[19:09:23] willyham: has joined #RubyOnRails
[19:17:28] pLaTo0n: has joined #RubyOnRails
[19:31:03] xco: someone here uses docker env variables? do i save my values as ENV PASSWORD password in the Dockerfile? or there’s a different way of doing this?
[19:45:42] gambl0re: has joined #RubyOnRails
[19:47:06] beingjohnm: I have created an active job in app/jobs. Is there a way to load it and run it from the console? Or using rake or something?
[19:52:01] s2013: has joined #RubyOnRails
[19:53:18] dminuoso: beingjohnm: What you created is just a plain Ruby class.
[19:53:33] dminuoso: beingjohnm: There is nothing magical about it. Look at it and tell me how to run it.
[19:57:43] beingjohnm: dminuoso: I thought I would run it as MassUpdateJob.perform_now but I get a name error: unitialized constant
[19:58:04] dminuoso: beingjohnm: You probably mistyped it.
[19:58:26] beingjohnm: I copied and pasted just to double check that :)
[19:58:48] dminuoso: beingjohnm: perform_now is fine too, it just uses AJs dispatch mechanism. But you can just call .perform() directly
[19:58:56] dminuoso: Because it's just Ruby.
[19:59:01] beingjohnm: I read something that suggests that app/jobs isn't loaded when you use the console
[19:59:52] dminuoso: beingjohnm: All directories under /app should be autoloaded
[19:59:59] dminuoso: beingjohnm: What rails version are you running?
[20:01:58] Rodya_: has joined #RubyOnRails
[20:01:59] dminuoso: beingjohnm: Did you create the app/jobs directory new?
[20:02:42] dminuoso: beingjohnm: I'm fairly certain that you have to restart spring in order for it to pick up the new autoloading dir.
[20:03:30] beingjohnm: dminuoso: I ran "rails g job" and it puts the job there
[20:04:18] dminuoso: beingjohnm: Was it the first job you created?
[20:09:50] beingjohnm: dminuoso: restarting spring did the trick. Thanks!
[20:11:51] dminuoso: beingjohnm: yeah. The reason is that app/jobs was newly created, so the pre-loaded rails was not aware of that autoloading directory.
[20:12:12] dminuoso: You don't have to do this again for newly created jobs.
[20:24:18] beingjohnm: That totally makes sense. Learning new things every day.
[20:57:11] RubyRonin: has joined #RubyOnRails
[21:05:23] akshat: has joined #RubyOnRails
[21:08:07] Rodya_: has joined #RubyOnRails
[21:18:00] swgillespie: has joined #RubyOnRails
[21:45:06] netzfisch: has joined #RubyOnRails
[22:08:20] cerulean: guys remember
[22:08:23] cerulean: nobody cool uses Monokai
[22:08:32] cerulean: remember this
[22:08:44] ericmathison: has joined #RubyOnRails
[22:15:10] DLSteve: The halloween theme?
[22:16:56] cerulean: ... no i dont think so
[22:21:58] webdestroya: has joined #RubyOnRails
[22:23:41] djbkd: has joined #RubyOnRails
[22:25:22] grymok: has joined #RubyOnRails
[22:25:22] hotpancakes: has joined #RubyOnRails
[22:31:18] KnownSyntax: has joined #RubyOnRails
[22:45:24] spicerack: has joined #RubyOnRails
[22:59:55] Wizek: has joined #RubyOnRails
[23:09:09] Wizek: has joined #RubyOnRails
[23:44:34] willyham_: has joined #RubyOnRails
[23:52:05] jaequery: has joined #RubyOnRails
[23:52:23] webdestroya: has joined #RubyOnRails
[23:52:30] willyham: has left #RubyOnRails: ()
[23:53:56] jaequery_: has joined #RubyOnRails
[23:57:15] uksio: has joined #RubyOnRails