« Back to channel list

#RubyOnRails - 12 March 2016

« Back 1 day Forward 1 day »
[00:00:54] DonOtreply: has joined #RubyOnRails
[00:01:08] hahuang61: has joined #RubyOnRails
[00:01:39] havenwood: m15k: i think db:migrate cares about the current working directory
[00:01:50] havenwood: m15k: mind cding and running the task in a subshell?
[00:02:34] havenwood: m15k: (cd /var/lib/posty/ && rake db:migrate)
[00:03:02] jenrzzz: has joined #RubyOnRails
[00:03:43] m15k: havenwood, then the rack_env variable is not considered, but it works. Better ugly than not working. Thanks
[00:03:54] havenwood: m15k: ecport RACK_ENV
[00:04:35] m15k: It's set as environment variable but not respected this way.
[00:04:44] m15k: But this is okay.
[00:08:38] neanderslob: has joined #RubyOnRails
[00:13:08] rrrepsaj: has joined #RubyOnRails
[00:13:15] hahuang65: has joined #RubyOnRails
[00:17:32] tomatoes: has joined #RubyOnRails
[00:18:31] disgrntld: has left #RubyOnRails: ()
[00:18:54] kies: has joined #RubyOnRails
[00:20:30] pawnbox: has joined #RubyOnRails
[00:22:16] ebbflowgo: has joined #RubyOnRails
[00:25:26] dopamean_: has joined #RubyOnRails
[00:26:51] jjturner: has joined #RubyOnRails
[00:29:28] phredus: has joined #RubyOnRails
[00:32:53] Devalo: has joined #RubyOnRails
[00:33:08] uglybandersnatch: has joined #RubyOnRails
[00:33:18] Devalo: has joined #RubyOnRails
[00:34:52] SteenJobs: has joined #RubyOnRails
[00:37:06] pzula: has joined #RubyOnRails
[00:39:57] Spami: has joined #RubyOnRails
[00:40:09] delgiudices: has joined #RubyOnRails
[00:40:16] yatish27: has joined #RubyOnRails
[00:40:23] dalbusch1t: has joined #RubyOnRails
[00:40:58] Guest34101: has joined #RubyOnRails
[00:43:09] jjturner: has joined #RubyOnRails
[00:43:59] bronson: has joined #RubyOnRails
[00:47:42] B1n4r10: has joined #RubyOnRails
[00:48:12] oweff: has joined #RubyOnRails
[00:51:49] flashpoint9: has joined #RubyOnRails
[00:55:39] flashpoint9: has joined #RubyOnRails
[00:59:57] baweaver: has joined #RubyOnRails
[01:03:23] kirillzh: has joined #RubyOnRails
[01:04:14] srruby: has joined #RubyOnRails
[01:06:47] gr1m_: has joined #RubyOnRails
[01:06:53] manfrin: has joined #RubyOnRails
[01:09:53] tomatoes: has joined #RubyOnRails
[01:16:16] SeanLazer: has joined #RubyOnRails
[01:16:44] Anakat: has joined #RubyOnRails
[01:17:10] wldcordeiro: has joined #RubyOnRails
[01:19:07] DoctorMonocular: has joined #RubyOnRails
[01:23:06] statelesscode: has joined #RubyOnRails
[01:23:58] mrd_: has joined #RubyOnRails
[01:25:39] htmldrum: has joined #RubyOnRails
[01:27:00] unreal: has joined #RubyOnRails
[01:27:53] srruby: has joined #RubyOnRails
[01:28:10] mrd_: has joined #RubyOnRails
[01:29:50] smoitra: has joined #RubyOnRails
[01:30:18] arBmind: has joined #RubyOnRails
[01:33:39] ZerGabriel: has joined #RubyOnRails
[01:34:49] ur5us: has joined #RubyOnRails
[01:35:51] pawnbox: has joined #RubyOnRails
[01:36:45] achamian: has joined #RubyOnRails
[01:39:08] reaVer: has joined #RubyOnRails
[01:40:59] Contigi: has joined #RubyOnRails
[01:42:15] jstransky: If I want to add a class to form elements in a datetime_select, do I have to do it like this? <%= f.datetime_select :access_end, {}, {class: 'form-control'} %>
[01:45:41] uglybandersnatch: has joined #RubyOnRails
[01:46:16] bronson: has joined #RubyOnRails
[01:46:27] pwnd_nsfw: html: { class: 'form-control } jstransky
[01:47:13] Spami: has joined #RubyOnRails
[01:47:30] jstransky: can you post the whole command. I really don’t understand ruby’s optional ‘{‘ and ‘}’ yet
[01:49:58] pwnd_nsfw: http://api.rubyonrails.org/classes/ActionView/Helpers/DateHelper.html#method-i-date_select
[01:51:24] jstransky: none of those example show use of html_options
[01:51:55] jstransky: How does ruby know when you’ve stopped suppling values for one hash, and started on the next?
[01:52:52] pwnd_nsfw: because... it takes the hash as an object
[01:52:59] jstransky: Am I right in thinking “if you only need the first two params, no “{}” are needed, but if you want to supply the third, then each hash needs “{}” ?
[01:53:00] pwnd_nsfw: the whole hash = that one parameter
[01:53:14] pwnd_nsfw: you're missing one thing in your original question
[01:53:33] pwnd_nsfw: and it's the object
[01:53:38] pwnd_nsfw: perhaps you have it right as it is
[01:53:40] pwnd_nsfw: did it not work?
[01:53:57] jstransky: it does, but having to supply and emtpy {} as the second argument seems… wrong
[01:54:10] jstransky: sorry, I should have clarified that it works
[01:54:19] Pazician: has joined #RubyOnRails
[01:54:22] pwnd_nsfw: so, the issue is?
[01:54:28] pwnd_nsfw: it's not wrong
[01:54:30] pwnd_nsfw: you're good
[01:54:37] ayoros: has joined #RubyOnRails
[01:54:38] Anakat_: has joined #RubyOnRails
[01:55:05] jstransky: Just want to know if that’s a standard rails convention
[01:55:35] Rubie: has joined #RubyOnRails
[01:55:40] jstransky: seeing as hows its so “convention over configuration"
[01:55:52] pwnd_nsfw: woah watch your tone there m8
[01:56:38] pwnd_nsfw: jstransky, just playing with you
[01:56:58] jstransky: oh heh, never know with some user groups :)
[01:57:22] pwnd_nsfw: That's not something you'll normally run to in here. Sometimes I'm afraid of getting kb'd for having a tiny bit of fun
[01:57:33] pwnd_nsfw: But anyways, yeah. Let us know if you need anymore help!
[01:58:10] sp1rs: has joined #RubyOnRails
[01:59:38] htmldrum: has joined #RubyOnRails
[01:59:50] sp1rs: has joined #RubyOnRails
[02:00:48] jstransky: what I really need is a good tutorial on how to extend these built in helpers
[02:01:16] maxdoubt: has joined #RubyOnRails
[02:01:27] SteenJobs: pwnd_nsfw: you the weekend overwatch?
[02:01:53] pwnd_nsfw: I mean, I'm not gonna be here for long
[02:01:59] rogue_koder: has joined #RubyOnRails
[02:01:59] pwnd_nsfw: since, it's friday, friday, gotta get down on friday
[02:02:19] pwnd_nsfw: jstransky, overload them, write your own
[02:02:30] SteenJobs: yea i’m about to bounce. just need to wind down a bit. coding full force and then back to normal mode is a process.
[02:02:55] pwnd_nsfw: I totally understand that
[02:03:01] SteenJobs: you ever use OpenCV?
[02:03:03] pwnd_nsfw: hence jager pregame before the bar
[02:03:28] SteenJobs: just finished giving it a go, that is some dope af software man
[02:03:29] jstransky: pwnd_nsfw: yeah figured as much, just need to see some in action. I learn pretty fast from a good code sample.
[02:04:06] SteenJobs: we need to build image processing into our rails app, so the user can give minimal input and the backend will automatically separate foreground/background in an image
[02:05:08] pwnd_nsfw: that sounds pretty awesome
[02:05:55] pawnbox: has joined #RubyOnRails
[02:06:49] SteenJobs: yea, and just gave it a successful run with OpenCV - simple GUI, you just select the foreground with a rectangle, process once, then touch up some areas, process again, and boom. and it does an amazing job.
[02:07:28] SteenJobs: thanks to these brilliant mother fathers: http://dl.acm.org/citation.cfm?id=1015720
[02:15:43] sleungcy: has joined #RubyOnRails
[02:16:21] Rubie: has joined #RubyOnRails
[02:22:11] gbgdev: has joined #RubyOnRails
[02:22:18] Devalo: has joined #RubyOnRails
[02:24:04] duncannz: has joined #RubyOnRails
[02:24:50] DoctorMonocular: has joined #RubyOnRails
[02:25:50] DoctorMonocular: has joined #RubyOnRails
[02:26:11] Jameser: has joined #RubyOnRails
[02:27:03] HowardwLo: has joined #RubyOnRails
[02:27:23] DmitryBochkarev: has joined #RubyOnRails
[02:27:52] DoctorMonocular: has joined #RubyOnRails
[02:28:19] Jameser: has joined #RubyOnRails
[02:28:46] DoctorMonocular: has joined #RubyOnRails
[02:30:06] HowardwLo: has left #RubyOnRails: ()
[02:30:19] DoctorMonocular: has joined #RubyOnRails
[02:31:57] DoctorMo_: has joined #RubyOnRails
[02:33:21] DoctorMonocular: has joined #RubyOnRails
[02:34:00] DoctorMonocular: has joined #RubyOnRails
[02:36:10] DoctorMonocular: has joined #RubyOnRails
[02:37:04] DoctorMo_: has joined #RubyOnRails
[02:38:01] DoctorMonocular: has joined #RubyOnRails
[02:39:24] DoctorMonocular: has joined #RubyOnRails
[02:44:41] speaking1ode: has joined #RubyOnRails
[02:45:49] pawnbox: has joined #RubyOnRails
[02:45:58] hinbody: has joined #RubyOnRails
[02:49:41] baweaver: has joined #RubyOnRails
[02:50:58] k1t: has joined #RubyOnRails
[02:51:54] smoitra: has joined #RubyOnRails
[02:54:12] k1t: has joined #RubyOnRails
[02:55:23] achamian: has joined #RubyOnRails
[02:57:22] ayoros: has joined #RubyOnRails
[03:08:40] ur5us: has joined #RubyOnRails
[03:11:13] ruler_: has joined #RubyOnRails
[03:14:21] RockLee: has joined #RubyOnRails
[03:18:16] draig: has joined #RubyOnRails
[03:25:42] pawnbox: has joined #RubyOnRails
[03:28:28] marcdel: has joined #RubyOnRails
[03:35:04] marcdel: has joined #RubyOnRails
[03:37:01] Guest34101: has joined #RubyOnRails
[03:37:23] B1n4r10: has joined #RubyOnRails
[03:38:40] noodle: has joined #RubyOnRails
[03:39:05] stardiviner: has joined #RubyOnRails
[03:39:06] dextertzu: has joined #RubyOnRails
[03:39:16] chipotle: has joined #RubyOnRails
[03:47:36] rogue_koder: has joined #RubyOnRails
[03:48:28] bronson: has joined #RubyOnRails
[03:51:31] noodle: has joined #RubyOnRails
[03:56:08] pawnbox: has joined #RubyOnRails
[03:56:38] ensyde_: has joined #RubyOnRails
[03:56:42] tycoon177: has joined #RubyOnRails
[03:57:24] ayoros: has joined #RubyOnRails
[03:58:13] tycoon177: could someone help me edit a view? I am making an app that will track my pto at work just so that i can learn rails but i do not know how to do one thing. here is the repo and i'll continue in another message https://github.com/BenMcH/pto-tracker
[03:59:40] tycoon177: I am trying to set it so that in the time_off_instances view for the _form.html.erb it will have the employee name instead of the employee id and just look up the employee id based on that. how would i go about changing that?
[04:00:11] droptone: has joined #RubyOnRails
[04:00:14] tycoon177: i'm very new to rails, so i am unsure of how this actually works together. most of this is generated by scaffolds i think, but i understand it somewhat
[04:00:21] droptone: Question: How do I write a route with multiple params?
[04:00:24] droptone: instead of just /:id
[04:00:25] Radar: tycoon177: Use a select box
[04:00:38] Radar: tycoon177: f.select :employee_id, @employees.map { |e| [e.name, e.id] }
[04:00:46] Radar: droptone: did you try /:id/:another_id?
[04:01:08] tycoon177: Radar, that's perfect, but i don't even know how i would go about doing that and having it work correctly. i literally started with rails today
[04:01:22] Radar: tycoon177: https://github.com/BenMcH/pto-tracker/blob/master/app/views/time_off_instances/_form.html.erb#L16 this line
[04:01:35] Radar: tycoon177: make it this line: <%= f.select :employee_id, @employees.map { |e| [e.name, e.id] } %>
[04:01:43] Radar: Then in the controller action, do @employees = Employee.al
[04:02:20] Radar: Employee.all
[04:02:39] Radar: Just invited you to the rubysherpas organisation on GitHub where there's a book called Rails 4 in Action I think you should read before attempting to build your app.
[04:03:09] tycoon177: Radar, the entire book is online?
[04:03:48] Radar: tycoon177: yes, accept the invitation in your email
[04:03:54] Radar: Then go to https://github.com/rubysherpas/rails_4_in_action
[04:04:54] tycoon177: Thank you so much! I was actually going to have my boss order this book for me when he gets back on tuesday actually :P
[04:06:29] tycoon177: That worked perfectly Radar! Thanks a bunch!
[04:07:23] Radar: Oh nice :) If you want to pay for it then I would appreciate it.
[04:07:28] Radar: I don't mind either way, tbh
[04:07:56] tycoon177: oh definitely! if i use something that helps me, i'm going to pay for it. you're one of the authors i'm guessing?
[04:08:57] Rubie: has joined #RubyOnRails
[04:09:10] gr1m_: has joined #RubyOnRails
[04:13:42] tercenya_: has joined #RubyOnRails
[04:14:46] braincrash: has joined #RubyOnRails
[04:18:20] dopie: has joined #RubyOnRails
[04:21:29] jeremymarc: has joined #RubyOnRails
[04:21:41] jeremymarc: has left #RubyOnRails: ()
[04:22:02] drim: has joined #RubyOnRails
[04:22:13] tycoon177: thank you again Radar
[04:22:54] drim: In a active_record_serializer, im doing object.reviews.last but its rendering the object as json (without any serializer). I tried ReviewSerializer.new(object.reviews.last) but same things :/
[04:23:44] drim: https://gist.github.com/jeremymarc/90d1a9877167173fa089
[04:24:47] scope: has joined #RubyOnRails
[04:32:16] uglybandersnatch: has joined #RubyOnRails
[04:33:06] chagel: has joined #RubyOnRails
[04:34:33] treaki__: has joined #RubyOnRails
[04:38:19] chagel: has joined #RubyOnRails
[04:39:31] sleungcy: has joined #RubyOnRails
[04:39:36] RegulationD: has joined #RubyOnRails
[04:40:06] DoctorMonocular: has joined #RubyOnRails
[04:40:22] achamian: has joined #RubyOnRails
[04:42:23] IrishGringo: has joined #RubyOnRails
[04:44:19] bricker: has joined #RubyOnRails
[04:45:46] pawnbox: has joined #RubyOnRails
[04:47:35] tobeornottobe: has joined #RubyOnRails
[04:47:53] enitiz: has joined #RubyOnRails
[04:49:38] tobeornottobe: has joined #RubyOnRails
[04:49:43] tobeornottobe: wheres the official documentation on linking assets in pages, i.e. images?
[04:50:30] merida: has joined #RubyOnRails
[04:52:25] matthewd: tobeornottobe: !assets ?
[04:52:25] helpa: tobeornottobe: http://guides.rubyonrails.org/asset_pipeline.html - The Asset Pipeline Guide by Ryan Bigg, Richard Hulse & Mohammad Typaldos
[04:52:38] The_Phoenix: has joined #RubyOnRails
[04:52:59] zave: has joined #RubyOnRails
[04:54:26] mostlybadfly: has joined #RubyOnRails
[04:56:32] dionysus69: has joined #RubyOnRails
[04:57:50] zave: has joined #RubyOnRails
[04:58:09] ayoros: has joined #RubyOnRails
[05:01:16] SeanLazer: has joined #RubyOnRails
[05:01:20] yatish27: has joined #RubyOnRails
[05:01:37] darkxploit: has joined #RubyOnRails
[05:04:55] pawnbox: has joined #RubyOnRails
[05:10:36] htmldrum: has joined #RubyOnRails
[05:13:53] baweaver: has joined #RubyOnRails
[05:15:53] baweaver: has joined #RubyOnRails
[05:16:15] unreal: has joined #RubyOnRails
[05:17:24] DoctorMonocular: has joined #RubyOnRails
[05:17:33] ashishsingh173: has joined #RubyOnRails
[05:18:42] pawnbox: has joined #RubyOnRails
[05:18:54] trifling-jest: has joined #RubyOnRails
[05:19:04] trifling-jest: im creating a blog
[05:19:10] trifling-jest: how do i associate a post to a user?
[05:20:57] SteenJobs: has joined #RubyOnRails
[05:21:07] agent008: has joined #RubyOnRails
[05:21:34] xtagon: SteenJobs: That OpenCV GrabCut stuff you were talking about sounds really interesting
[05:22:05] SteenJobs: yea it’s pretty great
[05:22:19] merida: has joined #RubyOnRails
[05:22:40] xtagon: I would love to learn more about how you're integrating that with Rails
[05:23:19] xtagon: SteenJobs: For example, that algorithm requires user interaction. Do you have to submit each action and then render the result on the server? Is that slow?
[05:28:20] SteenJobs: i’m in the midst of trying to figure out how i’m gonna set things up - the plan is to have a dedicated api for running image processing scripts
[05:28:59] SteenJobs: but it might not be crazy to take input from the user, send the input back as params, and then run a command line program calling the script
[05:29:13] merida: has joined #RubyOnRails
[05:32:58] xtagon: I'm working on something similar not with GrabCut, but image processing in general. OpenCV is pretty resource heavy when doing advanced stuff like that so I feel like it's going to be hard to scale
[05:35:41] srruby: has joined #RubyOnRails
[05:48:46] sp1rs: has joined #RubyOnRails
[05:50:13] bronson: has joined #RubyOnRails
[05:55:35] Pazician: has joined #RubyOnRails
[05:59:36] ayoros: has joined #RubyOnRails
[05:59:58] norc_: has joined #RubyOnRails
[06:02:15] chipotle: has joined #RubyOnRails
[06:10:38] arup_r: has joined #RubyOnRails
[06:10:40] tobeornottobe: has joined #RubyOnRails
[06:10:47] sp1rs: has joined #RubyOnRails
[06:14:30] darkxploit: has joined #RubyOnRails
[06:14:43] sp1rs: has joined #RubyOnRails
[06:19:11] Trynemjoel: has joined #RubyOnRails
[06:21:14] merida: has joined #RubyOnRails
[06:21:57] stardiviner: has joined #RubyOnRails
[06:25:15] _3by8: has joined #RubyOnRails
[06:26:05] Nuck: Anyone know an easy way to get "flat" JSON with something like JBuilder or RABL? The whole nested-JSON for associations thing is a negative nowadays for pretty much every frontend framework
[06:26:30] Nuck: AMS and JR can do this, I know
[06:27:18] Nuck: And by "can do" I mean "require"
[06:27:25] _3by8: I've got an application that craps out a bunch of pre-constructed objects into a view for form submission. What I've done, and assume is incorrect, is put all of the attributes of those objects in the HTML so that when the form is submitted, the objects don't have to be recreated (which would be fairly difficult). The problem that I see with that is that the end-user could change some of that information because no matter how much
[06:28:00] _3by8: They're going to be able to do some things I don't want. I was thinking about using some sort of temporary storage like sessions but that doesn't seem right either because they should be able to modify that also. I've heard of memory-based databases, would that be a viable option?
[06:28:26] Nuck: _3by8: session is safe as long as you use a signed store iirc?
[06:28:39] Nuck: Which I think is the default nowadays
[06:28:58] Nuck: It's been a while so don't take my word for it
[06:29:06] _3by8: nuck: would that be the "proper" way to do it? Can you think of another way?
[06:29:38] Nuck: _3by8: it's not ideal but it's the easiest way short of a big JS app lol
[06:30:03] bronson: has joined #RubyOnRails
[06:30:10] _3by8: nuck: how could I use JS to solve my problem?
[06:31:00] _3by8: I just want to be able to put a reference to the object in my view and have the items persist in the background... I just keep thinking there has to be a better way to do it than session...
[06:31:33] Nuck: You could persist them to the database and store a reference in the form
[06:31:41] Nuck: Session is there for this
[06:32:09] _3by8: nuck: hm, okay! I'll take your word for it.
[06:32:30] _3by8: nuck: thank you :)
[06:34:09] WizJin: has joined #RubyOnRails
[06:34:36] jstransky: has joined #RubyOnRails
[06:35:17] Abhijit: has joined #RubyOnRails
[06:35:40] Abhijit: in simple how can i have radio button which are not true false and not related to any model attribute?
[06:35:43] Abhijit: simple_form
[06:35:56] Abhijit: and no associattion and no collection
[06:36:37] Abhijit: https://github.com/plataformatec/simple_form talk about true false, association and collection.
[06:37:48] arup_r: generally in rails we use check_box_tag in this cases
[06:38:19] Abhijit: no check box. radio button only. because only one of it to beselected not both
[06:38:28] arup_r: when something form inputs are not tied to model attributes, but you want to capture input from user and send it to rails for some reasons
[06:38:38] arup_r: well. radio_button_tag
[06:38:42] craysiii: has joined #RubyOnRails
[06:38:54] arup_r: that by mistake i said check_box_tag..
[06:39:19] arup_r: every form_for helpers have their *_tag versions also available.
[06:39:55] Abhijit: arup_r, <%= s.radio_button_tag :user%>undefined method `radio_button_tag' for #<SimpleForm::FormBuilder:0x007fe177865640>
[06:40:19] arup_r: you can't call *_tag helpers on form object
[06:40:45] arup_r: it will be like <%= radio_button_tag "post[type]",...%>
[06:40:52] bricker: has joined #RubyOnRails
[06:41:07] arup_r: you can use *_tag inside form_for and form_tag.. both
[06:41:32] rogue_koder: has joined #RubyOnRails
[06:41:58] arup_r: but not f.any_input_tag in this way.. it is just <%= any_input_tag ...
[06:42:35] maxdoubt: has joined #RubyOnRails
[06:43:31] The_Phoenix: has joined #RubyOnRails
[06:50:20] sneakerhax: has joined #RubyOnRails
[06:50:49] shibly: has joined #RubyOnRails
[06:51:08] shibly: https://bpaste.net/show/a937f97c54be , what does it mean by pool: 5?
[06:55:11] darkxploit: has joined #RubyOnRails
[06:55:30] shibly: Can anyone answer?
[06:55:56] stien: has joined #RubyOnRails
[06:56:42] arup_r: shibly: little introduction http://api.rubyonrails.org/classes/ActiveRecord/ConnectionAdapters/ConnectionPool.html ..
[06:56:48] Nuck: That's the size of the connection pool, ActiveRecord will maintain up to 5 connections at a time, reusing then for queries
[06:58:12] arup_r: another good article, https://devcenter.heroku.com/articles/concurrency-and-database-connections .. it is a high level overview, I don't know any deeper than that. If anyone shared, I would also like to know.
[06:59:39] ayoros: has joined #RubyOnRails
[07:00:58] shibly: Thank you.
[07:01:00] shibly: has left #RubyOnRails: ()
[07:01:47] jjturner: has joined #RubyOnRails
[07:01:52] stien: has joined #RubyOnRails
[07:02:06] trifling-jest: has joined #RubyOnRails
[07:03:35] scope: has joined #RubyOnRails
[07:11:08] djbkd: has joined #RubyOnRails
[07:11:36] gr1m_: has joined #RubyOnRails
[07:11:47] htmldrum: has joined #RubyOnRails
[07:14:37] chagel: has joined #RubyOnRails
[07:19:23] trifling-jest: has joined #RubyOnRails
[07:20:03] lxsameer: has joined #RubyOnRails
[07:24:06] Guest34101: has joined #RubyOnRails
[07:30:25] darkxploit: has joined #RubyOnRails
[07:32:28] davee_: has joined #RubyOnRails
[07:36:50] trifling-jest: has joined #RubyOnRails
[07:39:42] Szuturon: has joined #RubyOnRails
[07:39:59] SteenJobs: has joined #RubyOnRails
[07:47:23] agent008: has joined #RubyOnRails
[07:51:09] scope: has joined #RubyOnRails
[07:52:44] apotry: has joined #RubyOnRails
[07:53:20] defsdoor: has joined #RubyOnRails
[07:54:18] trifling-jest: has joined #RubyOnRails
[07:55:15] pawnbox: has joined #RubyOnRails
[07:57:08] Pazician: has joined #RubyOnRails
[07:57:49] cryo28: has joined #RubyOnRails
[08:00:53] ayoros: has joined #RubyOnRails
[08:05:23] moeabdol3: has joined #RubyOnRails
[08:08:48] Devalo: has joined #RubyOnRails
[08:12:35] darutoko: has joined #RubyOnRails
[08:14:23] sleungcy: has joined #RubyOnRails
[08:15:15] bricker: has joined #RubyOnRails
[08:17:06] scope: has joined #RubyOnRails
[08:17:44] ayoros: has joined #RubyOnRails
[08:17:52] arup_r: has joined #RubyOnRails
[08:19:39] adac: has joined #RubyOnRails
[08:20:09] j3r0: has joined #RubyOnRails
[08:20:25] agent008: has joined #RubyOnRails
[08:21:39] tercenya: has joined #RubyOnRails
[08:28:40] Palsson: has joined #RubyOnRails
[08:29:09] sp1rs: has joined #RubyOnRails
[08:31:12] MEATCHICKEN: When rails throws an ActiveRecord::RecordNotFound exception
[08:31:18] MEATCHICKEN: I am testing for the response code and it isn't 404
[08:31:32] MEATCHICKEN: expect(response.status).to eq(404) fails
[08:32:36] arup_r: ok.. so what is the status it prints?
[08:34:09] MEATCHICKEN: It is saying 200
[08:34:40] arup_r: do you have any where rescue_from .. inside the controller to handle this error?
[08:35:00] darkxploit: has joined #RubyOnRails
[08:35:31] arup_r: meatchicken: show the code and error in a gist..
[08:35:37] arup_r: also before that
[08:36:04] arup_r: do tail -f log/test.log and see there what rails prints when you run this specific test
[08:36:15] Sigma00: do you believe in code
[08:38:12] chipotle: has joined #RubyOnRails
[08:38:27] arup_r: Sigma00: what? you meant response code? :)
[08:38:43] tvw: has joined #RubyOnRails
[08:38:43] nerium: has joined #RubyOnRails
[08:39:01] dionysus69: has joined #RubyOnRails
[08:39:02] Sigma00: sometimes code don't real, man....
[08:39:23] zave: has joined #RubyOnRails
[08:40:34] scope: has joined #RubyOnRails
[08:41:07] MEATCHICKEN: arup_r, That tail-f tip was really nice
[08:41:13] MEATCHICKEN: unfortunately - it didn't reveal why
[08:41:21] MEATCHICKEN: "Completed 404 Not Found in 3ms"
[08:41:47] arup_r: show the code now..
[08:43:58] jfelchner_: has joined #RubyOnRails
[08:44:05] uglybandersnatch: has joined #RubyOnRails
[08:44:55] MEATCHICKEN: arup_r, https://gist.githubusercontent.com/Edwardzyc/e9a24cb9fc7a42ca2fdd/raw/c801905448ae40f7b92ca260753782e51368ccdf/gistfile1.txt
[08:45:26] MEATCHICKEN: Error message - expected the response to have status code 404 but it was 200
[08:45:32] MEATCHICKEN: That's extremely strange
[08:47:34] arup_r: why your gist looks so odd.. :)
[08:49:07] arup_r: meatchicken: try the comment..
[08:51:32] MEATCHICKEN: arup_r, nice try - but now it is throwing a typical Couldn't find Model error
[08:52:11] arup_r: add the error.. I'll be back in 15 mins..lunch time.
[08:57:04] phredus: has joined #RubyOnRails
[09:00:27] yxejamir: has joined #RubyOnRails
[09:02:07] SteenJobs: has joined #RubyOnRails
[09:03:48] scope: has joined #RubyOnRails
[09:04:12] helpa: has joined #RubyOnRails
[09:06:17] mcr-credil: has joined #RubyOnRails
[09:09:44] solars: has joined #RubyOnRails
[09:11:41] bronson: has joined #RubyOnRails
[09:12:42] htmldrum: has joined #RubyOnRails
[09:14:24] Jasaka: has joined #RubyOnRails
[09:15:46] sleungcy: has joined #RubyOnRails
[09:17:05] tvw: has joined #RubyOnRails
[09:17:29] bob_f: What is the correct way to make a thor class available in a spec ? I can't seem to find the correct `require` syntax.
[09:17:48] bob_f: This detail is glossed over on various blogs and SO answers I've seen, which makes me think I'm missing something obvious. :)
[09:20:58] blackmesa: has joined #RubyOnRails
[09:21:28] arup_r: has joined #RubyOnRails
[09:22:00] marr: has joined #RubyOnRails
[09:24:36] achamian: has joined #RubyOnRails
[09:24:53] SteenJobs: has joined #RubyOnRails
[09:26:02] Guest34101: has joined #RubyOnRails
[09:26:39] bob_f: This seems to resolve it, but if somebody could confirm that this is the correct approach I'd appreciate it: http://stackoverflow.com/questions/21559121/requiring-a-thor-task-in-my-rspec-results-in-undefined-method
[09:32:16] arup_r: has left #RubyOnRails: ()
[09:32:19] arup_r: has joined #RubyOnRails
[09:32:24] baweaver: has joined #RubyOnRails
[09:34:02] The_Phoenix1: has joined #RubyOnRails
[09:38:17] chagel: has joined #RubyOnRails
[09:38:41] roshanavand: has joined #RubyOnRails
[09:39:54] BinaryMaster: has joined #RubyOnRails
[09:41:43] BinaryMaster: Question: I am trying to use RSpec and Shoulda but am getting a NoMethodError when I try to use one of the Shoulda methods in a test, I'm newly coming to rails from python I'm guessing the library isn't loaded right can anyone help?
[09:43:42] Guest34101: has joined #RubyOnRails
[09:44:59] sp1rs: has joined #RubyOnRails
[09:45:55] arup_r: BinaryMaster: can you show us the error using a gist?
[09:47:16] srinidhi: has joined #RubyOnRails
[09:48:50] BinaryMaster: https://gist.github.com/TheNixNinja/f0b7fa080cc28119a648
[09:50:31] dgncn: has joined #RubyOnRails
[09:50:32] techsethi: has joined #RubyOnRails
[09:50:38] agoldboi: has joined #RubyOnRails
[09:51:25] Jameser`: has joined #RubyOnRails
[09:52:50] BinaryMaster: my guess is it has something to do with this file https://gist.github.com/TheNixNinja/6e037c5ba1e9f5af1830
[09:54:14] jameser``: has joined #RubyOnRails
[09:54:22] BinaryMaster: I just don't know enough about how the testing tools work here to trouble shoot it
[09:54:39] scope: has joined #RubyOnRails
[09:55:08] arup_r: show the dog_spec.rb
[09:55:40] arup_r: BinaryMaster: Rspec has some videos to demo .. you can see those 4 videos..
[09:55:55] BinaryMaster: https://gist.github.com/TheNixNinja/542fff3c05d32df64ac8
[09:58:50] Pazician: has joined #RubyOnRails
[09:59:06] ruler_: has joined #RubyOnRails
[10:01:16] arup_r: BinaryMaster: seems ok. But I think, your syntax needs to be https://github.com/thoughtbot/shoulda-matchers#should-vs-is_expectedto
[10:02:04] arup_r: or it { should validate_presence_of(:name) } like this..
[10:03:20] DmitryBochkarev: has joined #RubyOnRails
[10:03:49] BinaryMaster: Thank you arup_r I now have a failing test and not a broken test :)
[10:04:07] arup_r: cool.. welcome to Rails :)
[10:04:26] BinaryMaster: Way better already then flask and python !!!
[10:06:49] Disavowed: has joined #RubyOnRails
[10:10:11] merqlove: has joined #RubyOnRails
[10:11:07] Radar: !botsnack
[10:11:07] helpa: Nom nom. Thanks, Radar!
[10:12:20] bricker: has joined #RubyOnRails
[10:13:17] arup_r: what are you checking Radar? :)
[10:13:27] Radar: bot restarted of its own accord
[10:13:32] Radar: want to know if it was still working
[10:14:01] gr1m_: has joined #RubyOnRails
[10:14:41] Radar: << :Szuturon!~ronnyszut@CPEbcc8100aab2f-CMbcc8100aab2c.cpe.net.cable.rogers.com QUIT :Quit: .��UPP��.
[10:15:00] Radar: That killed the bot. I don't know what the diamond with question marks were.
[10:16:28] sp1rs: has joined #RubyOnRails
[10:18:15] helpa: has joined #RubyOnRails
[10:19:17] chipotle: has joined #RubyOnRails
[10:24:03] SteenJobs: has joined #RubyOnRails
[10:24:24] techsethi: has joined #RubyOnRails
[10:25:05] NewDeveloper: has joined #RubyOnRails
[10:25:38] achamian: has joined #RubyOnRails
[10:27:04] NewDeveloper: can anyone provide me some guidance on what 2 do with myself over programming...
[10:31:52] NewDeveloper: i'm a businessman, have a shop in my city, totally new to computer world(learned computers at a nearby institute and have got good understanding on computers overall)
[10:32:01] User458764: has joined #RubyOnRails
[10:32:35] norc_: NewDeveloper, get a book and learn. Next customer please.
[10:32:38] NewDeveloper: I want 2 learn programming and earn some income through it
[10:32:43] User458764: has joined #RubyOnRails
[10:33:10] NewDeveloper: so, what should I start with somebody guided me to go to this IRC channel
[10:34:08] moeabdol3: has joined #RubyOnRails
[10:34:46] gbgdev: has joined #RubyOnRails
[10:35:54] norc_: NewDeveloper, if you have to ask that question: A book.
[10:36:38] rew: has joined #RubyOnRails
[10:37:09] NewDeveloper: No, what i'm confused is there are lot of programming languages and I'm confused which 1 2 choose
[10:38:43] FooMunki: has joined #RubyOnRails
[10:40:03] pawnbox: has joined #RubyOnRails
[10:41:34] RegulationD: has joined #RubyOnRails
[10:42:03] sevenseacat: has joined #RubyOnRails
[10:44:07] NewDeveloper: has joined #RubyOnRails
[10:44:28] agoldboi: has joined #RubyOnRails
[10:48:19] trifling-jest: has joined #RubyOnRails
[10:49:03] NewDeveloper: has joined #RubyOnRails
[10:51:46] Disavowed: NewDeveloper: Welcome! Python and Ruby are pretty good to start with. Check out learncodethehardway.org - they're geared towards people who've never programmed before.
[10:56:09] NewDeveloper: has joined #RubyOnRails
[10:57:57] scope: has joined #RubyOnRails
[10:58:35] User458764: has joined #RubyOnRails
[10:59:44] trifling-jest: has joined #RubyOnRails
[11:02:15] NewDeveloper: has joined #RubyOnRails
[11:06:06] arup_r: has joined #RubyOnRails
[11:08:34] dionysus69: has joined #RubyOnRails
[11:11:56] shinnya: has joined #RubyOnRails
[11:12:10] bronson: has joined #RubyOnRails
[11:12:25] Pazician: has joined #RubyOnRails
[11:12:26] pecpec: has joined #RubyOnRails
[11:13:40] The_Phoenix: has joined #RubyOnRails
[11:13:45] htmldrum: has joined #RubyOnRails
[11:14:00] shanemcd_: has joined #RubyOnRails
[11:14:30] ebbflowgo: has joined #RubyOnRails
[11:16:13] The_Phoenix1: has joined #RubyOnRails
[11:18:38] sleungcy: has joined #RubyOnRails
[11:19:05] stardiviner: has joined #RubyOnRails
[11:19:54] soule: has joined #RubyOnRails
[11:20:02] shanemcd: has joined #RubyOnRails
[11:20:34] merida: has joined #RubyOnRails
[11:25:18] adac: has joined #RubyOnRails
[11:25:35] NewDeveloper: has joined #RubyOnRails
[11:26:11] puerile_: has joined #RubyOnRails
[11:26:34] puerile_: has joined #RubyOnRails
[11:27:09] puerile_: has joined #RubyOnRails
[11:27:14] achamian: has joined #RubyOnRails
[11:27:34] puerile_: has joined #RubyOnRails
[11:28:06] puerile_: has joined #RubyOnRails
[11:28:11] puerile_: has left #RubyOnRails: ()
[11:28:43] puerile_: has joined #RubyOnRails
[11:29:05] puerile__: has joined #RubyOnRails
[11:29:51] trifling-jest: has joined #RubyOnRails
[11:32:02] rooose: has joined #RubyOnRails
[11:32:07] achamian_: has joined #RubyOnRails
[11:34:04] jeanres: has joined #RubyOnRails
[11:34:47] htmldrum: has joined #RubyOnRails
[11:34:55] blackmesa: has joined #RubyOnRails
[11:37:38] Pazician: has joined #RubyOnRails
[11:37:51] gbgdev: has joined #RubyOnRails
[11:38:36] gbgdev_: has joined #RubyOnRails
[11:39:48] cac: has joined #RubyOnRails
[11:40:42] trifling-jest: has joined #RubyOnRails
[11:42:08] trifling-jest: has joined #RubyOnRails
[11:42:36] RegulationD: has joined #RubyOnRails
[11:43:08] trifling-jest: has joined #RubyOnRails
[11:43:23] AzaToth: has joined #RubyOnRails
[11:45:51] Pazician: has joined #RubyOnRails
[11:45:51] ur5us: has joined #RubyOnRails
[11:47:51] jenrzzz: has joined #RubyOnRails
[11:55:07] pawnbox: has joined #RubyOnRails
[11:56:50] jeanres: has joined #RubyOnRails
[11:58:05] Spami: has joined #RubyOnRails
[11:58:15] agent008: has joined #RubyOnRails
[11:58:34] liquid-silence: has joined #RubyOnRails
[11:58:34] liquid-silence: has joined #RubyOnRails
[11:59:00] liquid-silence: has anyone here worked with dash.js?
[11:59:08] liquid-silence: the content protection specifically
[11:59:16] liquid-silence: because its a piece of crap
[12:00:58] adac: has joined #RubyOnRails
[12:03:25] tknz: has joined #RubyOnRails
[12:12:13] n008f4g_: has joined #RubyOnRails
[12:12:42] mytrile: has joined #RubyOnRails
[12:15:56] roshanavand: has joined #RubyOnRails
[12:17:10] Pazician: has joined #RubyOnRails
[12:17:26] Pazician: has joined #RubyOnRails
[12:19:18] sleungcy: has joined #RubyOnRails
[12:24:12] trifling-jest: has joined #RubyOnRails
[12:27:01] Pazician: has joined #RubyOnRails
[12:28:46] AntiSpamMeta: has joined #RubyOnRails
[12:29:27] Pazician_: has joined #RubyOnRails
[12:31:01] dgncn: has joined #RubyOnRails
[12:31:53] Pazician_: has joined #RubyOnRails
[12:34:18] Pazician: has joined #RubyOnRails
[12:36:25] Guest_: has joined #RubyOnRails
[12:37:40] jenrzzz: has joined #RubyOnRails
[12:37:43] sp1rs: has joined #RubyOnRails
[12:38:26] chipotle: has joined #RubyOnRails
[12:39:09] mdw: has joined #RubyOnRails
[12:40:44] shanemcd: has joined #RubyOnRails
[12:41:38] flopsec: has joined #RubyOnRails
[12:43:18] nerium: has joined #RubyOnRails
[12:45:02] trinaldi: has joined #RubyOnRails
[12:45:15] jenrzzz: has joined #RubyOnRails
[12:45:52] arBmind: has joined #RubyOnRails
[12:45:54] uglybandersnatch: has joined #RubyOnRails
[12:47:54] sp1rs1: has joined #RubyOnRails
[12:48:04] trinaldi: has joined #RubyOnRails
[12:49:17] Spami: has joined #RubyOnRails
[12:52:38] User458764: has joined #RubyOnRails
[12:55:20] techsethi: has joined #RubyOnRails
[12:57:01] chagel: has joined #RubyOnRails
[13:03:20] roshanavand: has joined #RubyOnRails
[13:05:28] achamian: has joined #RubyOnRails
[13:05:35] WizJin: has joined #RubyOnRails
[13:14:49] bronson: has joined #RubyOnRails
[13:16:27] gr1m_: has joined #RubyOnRails
[13:20:03] sleungcy: has joined #RubyOnRails
[13:24:04] achamian: has joined #RubyOnRails
[13:27:02] krz: has joined #RubyOnRails
[13:31:07] dionysus69: has joined #RubyOnRails
[13:34:11] baweaver: has joined #RubyOnRails
[13:34:12] enkristoffer: has joined #RubyOnRails
[13:35:46] techsethi: has joined #RubyOnRails
[13:38:17] B4daBing73: has joined #RubyOnRails
[13:40:07] B4daBing73: Does anyone know a good Ruby-Linter/Checker for NPM that can be installed globally to be used in Vim Syntastic?
[13:47:48] rafaelfranca: has joined #RubyOnRails
[13:48:39] bricker: has joined #RubyOnRails
[13:54:41] intrigueD: has joined #RubyOnRails
[13:54:57] qejk: has joined #RubyOnRails
[13:56:17] pwnd_nsfw: has joined #RubyOnRails
[13:56:36] Spami: has joined #RubyOnRails
[14:01:08] Guest34101: has joined #RubyOnRails
[14:01:12] y2mq37: has joined #RubyOnRails
[14:02:46] htmldrum: has joined #RubyOnRails
[14:02:53] delgiudices: has joined #RubyOnRails
[14:07:33] d0nn1e: has joined #RubyOnRails
[14:10:55] IrishGringo: has joined #RubyOnRails
[14:11:49] DEA7TH: has joined #RubyOnRails
[14:16:20] Xentil: has joined #RubyOnRails
[14:18:57] roshanavand: has joined #RubyOnRails
[14:20:02] akshat: has joined #RubyOnRails
[14:20:47] sleungcy: has joined #RubyOnRails
[14:24:46] achamian: has joined #RubyOnRails
[14:25:17] scope: has joined #RubyOnRails
[14:26:15] bricker: has joined #RubyOnRails
[14:26:28] suffice: has joined #RubyOnRails
[14:27:19] ayoros: has joined #RubyOnRails
[14:34:51] Guest34101: has joined #RubyOnRails
[14:36:35] futilegames: has joined #RubyOnRails
[14:37:05] tomatoes: has joined #RubyOnRails
[14:40:05] WizJin: has joined #RubyOnRails
[14:46:04] pzula: has joined #RubyOnRails
[14:47:03] achamian: has joined #RubyOnRails
[14:47:55] adavia: has joined #RubyOnRails
[14:49:14] Rubie: has joined #RubyOnRails
[14:49:59] sajinmp: has joined #RubyOnRails
[14:50:06] Deck`: has joined #RubyOnRails
[14:50:29] morfin: i have silly question: what is requirements for rails app?
[14:50:34] rafaelfranca: has joined #RubyOnRails
[14:50:40] ebbflowgo: has joined #RubyOnRails
[14:51:05] sajinmp: ruby is required and so is ruby gems :)
[14:51:34] morfin: i am trying to start one application on my gateway machine but it does not start(but i see it's accessing my HDD)
[14:51:38] morfin: i meant hardware
[14:51:57] arthropododo: has joined #RubyOnRails
[14:53:16] sajinmp: well i dont think there is much of a hardware requirement. Are you using windows?
[14:58:49] stardiviner: has joined #RubyOnRails
[14:58:53] RegulationD: has joined #RubyOnRails
[14:59:18] notme: has joined #RubyOnRails
[14:59:39] adac: has joined #RubyOnRails
[15:02:00] morfin: nope, FreeBSD
[15:02:31] liquid-silence: has joined #RubyOnRails
[15:02:32] liquid-silence: has joined #RubyOnRails
[15:06:21] arup_r: has joined #RubyOnRails
[15:11:21] guest56: has joined #RubyOnRails
[15:16:14] morfin: sorry, it started... after like hmm 15 minutes
[15:17:04] bronson: has joined #RubyOnRails
[15:17:07] sp1rs: has joined #RubyOnRails
[15:19:14] morfin: that's very weird for me
[15:19:43] brendan-: has joined #RubyOnRails
[15:19:45] User458764: has joined #RubyOnRails
[15:20:30] brendan-: has joined #RubyOnRails
[15:21:28] morfin: Jan 16 14:50:24 morfin kernel: CPU: Intel(R) Atom(TM) CPU D2500 @ 1.86GHz (1866.77-MHz K8-class CPU)
[15:21:35] sleungcy: has joined #RubyOnRails
[15:21:55] morfin: i know it's just Atom but 15 minutes for startup of application sounds insane
[15:22:57] davee_: has joined #RubyOnRails
[15:23:05] maxx88: not an expert on that morfin but, it should be seconds and not 15 minutes
[15:23:05] havenwood: morfin: What command took 15 min?
[15:23:27] nettoweb: has joined #RubyOnRails
[15:23:36] morfin: basically i was trying rails c with almost same result
[15:23:55] morfin: i tried to interrupt and found out that require is slow
[15:24:28] smoitra: has joined #RubyOnRails
[15:24:40] morfin: *it interrupted on one of require instructions
[15:26:29] Tempesta_: has joined #RubyOnRails
[15:26:38] norc-2: has joined #RubyOnRails
[15:26:51] maxx88: morfin: you could push your app to heroku and see if you do have a hardware issue, if this is your first time running a rails app on your dev machine. i use a mac and never had an issue.
[15:27:04] cpruitt_: has joined #RubyOnRails
[15:27:24] qhp_: has joined #RubyOnRails
[15:27:25] havenn: has joined #RubyOnRails
[15:28:07] intrigue_: has joined #RubyOnRails
[15:28:30] ayoros: has joined #RubyOnRails
[15:28:51] htmldrum: has joined #RubyOnRails
[15:29:26] FooMunki: has joined #RubyOnRails
[15:29:55] morfin: well, at work i use Core i3 CPU and hmm 8Gb of RAM and Ubuntu - application starts pretty fast
[15:31:02] ale: has joined #RubyOnRails
[15:31:05] tweeeaks: has joined #RubyOnRails
[15:31:07] shaman42: has joined #RubyOnRails
[15:31:26] speakingcode: has joined #RubyOnRails
[15:31:44] morfin: i suspect it's because of ZFS, weird
[15:31:51] oweff: has joined #RubyOnRails
[15:32:07] hive-mind: has joined #RubyOnRails
[15:33:16] maxx88: yeah, googling that does show problems
[15:34:13] mdw: has joined #RubyOnRails
[15:34:36] morfin: my IO rate is 0.07 MB/s
[15:34:51] maxx88: https://groups.google.com/a/zfsonlinux.org/forum/#!msg/zfs-discuss/Ar0kfbQIplE/m2vjDTSVypAJ
[15:34:53] segy: has joined #RubyOnRails
[15:35:13] brainslug: has joined #RubyOnRails
[15:35:15] maxx88: little out of my comfort zone
[15:35:29] Shidash: has joined #RubyOnRails
[15:35:31] fernandomm: has joined #RubyOnRails
[15:35:47] baweaver: has joined #RubyOnRails
[15:36:16] morfin: i am not sure, i think i lost my tuning when upgraded to 10.x
[15:38:01] nettoweb: has joined #RubyOnRails
[15:38:37] jjturner: has joined #RubyOnRails
[15:41:37] DonOtreply: has joined #RubyOnRails
[15:42:25] davee_: has joined #RubyOnRails
[15:42:30] mclee: has joined #RubyOnRails
[15:42:37] kp666: has joined #RubyOnRails
[15:43:50] DoubleMalt: has joined #RubyOnRails
[15:44:32] tobeornottobe: has joined #RubyOnRails
[15:47:35] dgncn: has joined #RubyOnRails
[15:48:07] gbgdev: has joined #RubyOnRails
[15:48:09] mdw: has joined #RubyOnRails
[15:49:26] gbgdev: has joined #RubyOnRails
[15:54:37] merida: has joined #RubyOnRails
[15:54:44] _bogus_: has joined #RubyOnRails
[16:03:45] d0nn1e: has joined #RubyOnRails
[16:03:55] pawnbox: has joined #RubyOnRails
[16:08:09] watersoul_: has joined #RubyOnRails
[16:08:15] wkoszek: has joined #RubyOnRails
[16:09:04] dmarr_: has joined #RubyOnRails
[16:10:22] djbkd: has joined #RubyOnRails
[16:10:27] swgillespie_: has joined #RubyOnRails
[16:10:53] a1fa__: has joined #RubyOnRails
[16:11:27] llakey_: has joined #RubyOnRails
[16:11:29] JonasOSDever_: has joined #RubyOnRails
[16:11:40] Plas: has joined #RubyOnRails
[16:11:49] ewilliam_: has joined #RubyOnRails
[16:11:53] hosh_: has joined #RubyOnRails
[16:11:57] Expanse_: has joined #RubyOnRails
[16:12:07] daxroc1: has joined #RubyOnRails
[16:12:10] dukedave__: has joined #RubyOnRails
[16:12:14] MalcolmReynolds: has joined #RubyOnRails
[16:12:20] artmann: has joined #RubyOnRails
[16:12:21] pragmatism_: has joined #RubyOnRails
[16:12:35] Wingar: has joined #RubyOnRails
[16:12:45] matt_d_: has joined #RubyOnRails
[16:12:47] waldi_: has joined #RubyOnRails
[16:12:48] roqo: has joined #RubyOnRails
[16:13:02] Olipro_: has joined #RubyOnRails
[16:13:03] Tarential: has joined #RubyOnRails
[16:13:09] bitemyapp: has joined #RubyOnRails
[16:13:33] royvandermeij: has joined #RubyOnRails
[16:13:39] hoodow: has joined #RubyOnRails
[16:13:39] hoodow: has joined #RubyOnRails
[16:15:36] deeprave: has joined #RubyOnRails
[16:15:50] Lloyd: has joined #RubyOnRails
[16:15:58] sjnorth: has joined #RubyOnRails
[16:16:23] daemonwrangler: has joined #RubyOnRails
[16:16:27] Guest4184______: has joined #RubyOnRails
[16:16:45] spastorino: has joined #RubyOnRails
[16:16:46] B1n4r10: has joined #RubyOnRails
[16:16:56] robbkidd: has joined #RubyOnRails
[16:17:58] mclee: has joined #RubyOnRails
[16:18:03] amitchellbullard: has joined #RubyOnRails
[16:18:46] gr1m_: has joined #RubyOnRails
[16:21:32] chagel: has joined #RubyOnRails
[16:22:16] sleungcy: has joined #RubyOnRails
[16:23:49] DoctorMonocular: has joined #RubyOnRails
[16:24:26] DoctorMonocular: has joined #RubyOnRails
[16:26:17] Rubie: has joined #RubyOnRails
[16:26:21] Synthead: has joined #RubyOnRails
[16:26:34] sp1rs: has joined #RubyOnRails
[16:28:31] ayoros: has joined #RubyOnRails
[16:30:39] mdw: has joined #RubyOnRails
[16:33:15] Balint: has joined #RubyOnRails
[16:33:56] agent008: has joined #RubyOnRails
[16:34:06] mdw: has joined #RubyOnRails
[16:39:30] pawnbox: has joined #RubyOnRails
[16:40:25] SteenJobs: has joined #RubyOnRails
[16:42:15] dionysus69: has joined #RubyOnRails
[16:42:32] DoctorMonocular: has joined #RubyOnRails
[16:42:53] Balint: Hey, I have the following issue.... I
[16:43:34] Balint: I changed my database to postgres from sqlite, no issues in general however I cant figure out what I have to change stfrtime to for it to work
[16:43:51] Balint: my code before the change looked like this: https://gist.github.com/anonymous/4db5f733016e8179a8b8
[16:47:24] GreatDanton: has joined #RubyOnRails
[16:47:49] uglybandersnatch: has joined #RubyOnRails
[16:48:00] felltir: has joined #RubyOnRails
[16:49:19] d0nn1e: has joined #RubyOnRails
[16:52:11] rafaelfranca: has joined #RubyOnRails
[16:54:01] arup_r: has joined #RubyOnRails
[16:55:50] yardenbar: has joined #RubyOnRails
[16:59:56] RegulationD: has joined #RubyOnRails
[16:59:59] sonOfRa: has joined #RubyOnRails
[17:01:57] Guest34101: has joined #RubyOnRails
[17:02:19] morfin: PostgreSQL is nice but have some specifics
[17:03:24] liquid-silence: has joined #RubyOnRails
[17:03:43] liquid-silence: has joined #RubyOnRails
[17:04:16] fedexo: has joined #RubyOnRails
[17:05:45] Balint: well, the only reason I am going with it is to be able to deploy it to heroku
[17:06:31] KanKava: has joined #RubyOnRails
[17:08:40] Jet4Fire: has joined #RubyOnRails
[17:08:49] bga57: has joined #RubyOnRails
[17:09:35] mices: has joined #RubyOnRails
[17:10:17] matthias_: has joined #RubyOnRails
[17:10:45] mices: where there's multiple versions of a gem installed and gemfile doesn't specify the version number, how can i tell which version my app is using?
[17:11:00] jjturner: has joined #RubyOnRails
[17:11:09] DoubleMalt: has joined #RubyOnRails
[17:12:45] maesitos: has joined #RubyOnRails
[17:15:26] xploshioon: has joined #RubyOnRails
[17:17:27] havenwood: mices: `bundle show gem_name` or check your Gemfile.lock file
[17:17:48] mices: havenwood: ty
[17:18:16] maesitos: Could anybody help me with this? http://pastebin.com/raw/mkkgXrnN I'm a bit lost
[17:18:44] bronson: has joined #RubyOnRails
[17:21:17] statelesscode: has joined #RubyOnRails
[17:22:04] edwinvdgraaf: has joined #RubyOnRails
[17:23:04] sleungcy: has joined #RubyOnRails
[17:24:51] Limix: has joined #RubyOnRails
[17:25:59] Limix: Hi all, is there a way to create a spy with minitest? I have a activerecord model that calls a method after_create
[17:26:04] nettoweb: has joined #RubyOnRails
[17:26:23] Limix: would like to setup a spy for that, any tips on how to set that up?
[17:30:04] eljimador: has joined #RubyOnRails
[17:30:32] Quintasan: Does anyone send devise emails using a normal gmail account? rails console reports no problems sending emails but they don't make it to the recipent, any ideas how to debug this?
[17:30:55] ayoros: has joined #RubyOnRails
[17:31:20] sp1rs: has joined #RubyOnRails
[17:31:24] dionysus69: has joined #RubyOnRails
[17:34:41] zave: has joined #RubyOnRails
[17:34:49] makerops: has joined #RubyOnRails
[17:35:46] fryguy: Quintasan: can you elaborate on what you mean by "using a normal gmail account"
[17:36:51] Quintasan: fryguy: Yeah, I just created a gmail account and slapped the credentials (of course from env) into ActionMailer::Base.smtp_settings as a hash along with other parameters
[17:39:33] sp1rs: has joined #RubyOnRails
[17:40:10] zave: has joined #RubyOnRails
[17:41:15] merida_: has joined #RubyOnRails
[17:41:49] shanemcd: has left #RubyOnRails: ()
[17:41:52] arup_r: has joined #RubyOnRails
[17:43:44] arup_r: maesitos: you have some syntax error.. try to compile it locally.. and you will see some more error stack trace which will help you to figure where in the file something is wrong
[17:44:15] maesitos: arup_r: thanks! when you mean compiling it you mean running the code?
[17:44:28] maesitos: arup_r: it's working locally
[17:45:06] arup_r: locally do bundle exec rake assets:precompile and see if any error.. I hope the error came from asset precompiling..
[17:46:12] arup_r: ok.. this is the task -> deploy:assets:clean_expired .. no idea what that task for.. sorry I thought it asset precompilation file..
[17:46:19] mices: has joined #RubyOnRails
[17:46:27] arup_r: failure**
[17:46:28] _bogus_: hi there... im getting this error https://gist.github.com/andreycwb/007a27def1280cfd09c0 when trying to restart passenger... apparently it occurs only when I try this command inside my rails project's folder (it works on ~/ or other directory), not sure why, but I'm using capistrano to deploy and capistrano tries to restart passenger and gets me the same error
[17:46:54] _bogus_: (actually capistrano is trying another passenger command and return this same error)
[17:47:40] arup_r: _bogus_: add some more log..
[17:48:08] maesitos: arup_r: I'm going to try! The entire code was made by a developer I hired but I'm now on my own, a bit beginner in all these techniques.
[17:49:03] arup_r: maesitos: check, inside the lib/tasks .. you will find the tasks probably..
[17:49:13] _bogus_: arup_r, https://gist.github.com/andreycwb/007a27def1280cfd09c0 i added the capistrano log part where I get this error
[17:49:14] arup_r: and see what it is doing.
[17:50:29] _bogus_: apparently when I run any passenger command from the project's folder I get those errors (it doesnt happens when I execute it from a folder without a rails app). I've googled on it and found something wrong with the rubygems and a workaround but im not really sure about how to use this workaround as it's about editing some rubygems source files, nor if its a good thing to do
[17:50:39] maesitos: arup_r: bundle exec rake assets:precompile is working :(
[17:50:43] msyvich: has joined #RubyOnRails
[17:51:46] The_Phoenix: has joined #RubyOnRails
[17:52:44] arup_r: yeah, as I said I misread it. dunno what the task I mentioned is doing
[17:52:53] smathy: has joined #RubyOnRails
[17:54:27] arup_r: do you use sass/scss as a css ?
[17:54:50] Jet4Fire: has joined #RubyOnRails
[17:55:45] rafaelfranca: has joined #RubyOnRails
[17:55:54] arup_r: maesitos: can you add some more error?
[17:57:48] maesitos: arup_r: http://pastebin.com/raw/SqUZ8Zvh
[18:00:07] DEA7TH: has joined #RubyOnRails
[18:05:21] eljimmy: has joined #RubyOnRails
[18:07:14] mices: has joined #RubyOnRails
[18:07:28] Miron: has joined #RubyOnRails
[18:09:15] morfin60: has joined #RubyOnRails
[18:10:17] morfin60: has left #RubyOnRails: ()
[18:10:27] morfin: has joined #RubyOnRails
[18:10:32] morfin: hmm still bd
[18:10:36] morfin: bad result
[18:15:18] smathy: _bogus_, it doesn't explain why you're getting that problem, but you can restart passenger by just touching the `tmp/restart.txt` file instead. Could be a simple workaround.
[18:15:29] baweaver: has joined #RubyOnRails
[18:17:11] arup_r: hi smathy :)
[18:18:27] Pulp: has joined #RubyOnRails
[18:18:32] jjturner: has joined #RubyOnRails
[18:18:53] _bogus_: smathy, im not sure either... could it be because i've installed passenger using "gem install passenger" (as the problem seems to occur only when passenger is run in a project's folder)? actually i tried the other way but i would need to recompile the kernel or disable SELINUX, what a couldn't do... there's a possible explanation and temporary fix https://github.com/rubygems/rubygems/issues/1420#issuecomment-169178431 , but its needed to
[18:18:53] _bogus_: alter the rubygems source, im not sure if this is a good thing... im thinking of overriding capistrano tasks, it would be a neater solution probably, but I tried to override :restart task and still get the error, I think there's more tasks dealing with passenger, im not very sure how to do this right
[18:19:30] The_Phoenix1: has joined #RubyOnRails
[18:20:52] smathy: _bogus_, there are so many things it could be, servers are complex beasts.
[18:23:50] sleungcy: has joined #RubyOnRails
[18:24:58] _bogus_: smathy, how can I override the passenger tasks ? I tried to create a task in deploy.rb , under namespace :deploy, and also under namespace :passenger , but neither has worked when using 'cap production deploy', it insists to run the default tasks..
[18:25:33] _bogus_: (just added the code snippet in the gist)
[18:28:06] blackmesa: has joined #RubyOnRails
[18:31:17] Cache_Money: has joined #RubyOnRails
[18:34:22] User458764: has joined #RubyOnRails
[18:35:22] _bogus_: just got it working with "set passenger_restart_with_touch, true" !! thanks
[18:35:55] scope: has joined #RubyOnRails
[18:36:04] sleungcy: has joined #RubyOnRails
[18:42:35] WizJin: has joined #RubyOnRails
[18:43:17] S1kx: has joined #RubyOnRails
[18:45:56] cryo28: has joined #RubyOnRails
[18:46:44] Rubie: has joined #RubyOnRails
[18:48:56] edwinvdgraaf: has joined #RubyOnRails
[18:57:14] The_Phoenix: has joined #RubyOnRails
[18:58:00] gr1m_: has joined #RubyOnRails
[18:58:12] maxx88: has joined #RubyOnRails
[19:00:03] karkara: has joined #RubyOnRails
[19:00:49] gr1m-_: has joined #RubyOnRails
[19:01:01] karkara: has left #RubyOnRails: ()
[19:01:22] The_Phoenix1: has joined #RubyOnRails
[19:01:43] blackmesa: has joined #RubyOnRails
[19:02:49] morfin60: has joined #RubyOnRails
[19:02:55] morfin60: has left #RubyOnRails: ()
[19:02:56] futilegames: has joined #RubyOnRails
[19:04:33] Pazician: has joined #RubyOnRails
[19:05:19] mostlybadfly: has joined #RubyOnRails
[19:07:04] intrigueD: has joined #RubyOnRails
[19:07:04] intrigueD: has joined #RubyOnRails
[19:07:57] Cohedrin: has joined #RubyOnRails
[19:08:15] dionysus69: has joined #RubyOnRails
[19:08:30] The_Phoenix: has joined #RubyOnRails
[19:10:31] The_Phoenix: has joined #RubyOnRails
[19:11:28] davee_: has joined #RubyOnRails
[19:12:40] The_Phoenix: has joined #RubyOnRails
[19:14:26] The_Phoenix1: has joined #RubyOnRails
[19:14:57] User458764: has joined #RubyOnRails
[19:15:56] _bogus_: im getting this error when accessing my app: Incomplete response received from application . What can it be? Already tried to set the secret key base...
[19:16:15] The_Phoenix1: has joined #RubyOnRails
[19:16:22] _bogus_: and RailsEnv production in httpd.conf
[19:17:45] The_Phoenix1: has joined #RubyOnRails
[19:19:18] The_Phoenix: has joined #RubyOnRails
[19:20:43] bronson: has joined #RubyOnRails
[19:22:56] delgiudices: has joined #RubyOnRails
[19:24:00] Guest34101: has joined #RubyOnRails
[19:30:11] tomatoes: has joined #RubyOnRails
[19:30:31] SeanLazer: has joined #RubyOnRails
[19:32:02] ayoros: has joined #RubyOnRails
[19:34:07] crackerjacktown: has joined #RubyOnRails
[19:34:17] crackerjacktown: has left #RubyOnRails: ("Konversation terminated!")
[19:37:25] roshanavand: has joined #RubyOnRails
[19:37:35] WizJin: has joined #RubyOnRails
[19:41:28] camilasan: has joined #RubyOnRails
[19:45:59] thebastl: has joined #RubyOnRails
[19:49:29] _bogus_: im getting this error when accessing my app: Incomplete response received from application . What can it be? Already tried to set the secret key base in secrets.yml, putting the inside the file... also tried to set RailsEnv production in httpd.conf , no success...
[19:49:59] gbgdev: has joined #RubyOnRails
[19:50:04] fox_mulder_cp: _bogus_: rails env in apache conf? why?
[19:50:25] fox_mulder_cp: so, i use nginx + puma
[19:50:25] _bogus_: well it was one of the solutions ive found on google, but didnt work tho..
[19:50:50] fox_mulder_cp: _bogus_: rails env - only exported variables when u start puma
[19:50:53] _bogus_: no clues on the logs too
[19:51:10] _bogus_: Im using apache + passenger
[19:51:11] fox_mulder_cp: i't can't be connected to apache
[19:51:40] fox_mulder_cp: use nginx, Luk ^) apache + php = way for shared hosting and wordpress
[19:51:56] fox_mulder_cp: all true mans use nginx
[19:52:24] _bogus_: well I always used apache.. this is not on my pc tho, its on a shared hosting server
[19:52:44] _bogus_: cant change it :/ ... but it was working fine
[19:53:12] _bogus_: with a deploy I did manually , but it probably wasnt working on production mode... I did it very badly just to show a preview for the client..
[19:53:16] _bogus_: now I'm using capistrano
[19:53:39] _bogus_: it seems to be working well but Im getting this damn error... and all I find on google is about this secret_key_base being unset
[19:56:32] Pazician: has joined #RubyOnRails
[19:58:09] dopamean_: has joined #RubyOnRails
[19:58:57] mices: has joined #RubyOnRails
[19:59:16] n008f4g_: has joined #RubyOnRails
[20:00:56] Spami: has joined #RubyOnRails
[20:02:18] _bogus_: this rake secret should be executed on the server or on my local machine ?
[20:06:33] _bogus_: well , despite my secret_key_base is set in secrets.yml thats the error im getting on log: https://gist.github.com/andreycwb/22adb8cf908a84a7d935 ... what can I do to solve this ?
[20:09:18] _bogus_: oh forget it , just got it working
[20:25:13] lictor36: has joined #RubyOnRails
[20:25:30] DmitryBochkarev: has joined #RubyOnRails
[20:28:09] chagel: has joined #RubyOnRails
[20:33:15] ayoros: has joined #RubyOnRails
[20:34:12] djbkd: has joined #RubyOnRails
[20:38:25] DoctorMonocular: has joined #RubyOnRails
[20:38:40] bronson: has joined #RubyOnRails
[20:49:18] Guest34101: has joined #RubyOnRails
[20:49:43] uglybandersnatch: has joined #RubyOnRails
[20:51:35] dtordable: has joined #RubyOnRails
[20:51:57] ror_noob: has joined #RubyOnRails
[20:53:47] bePolite: has joined #RubyOnRails
[20:53:47] bePolite: has joined #RubyOnRails
[20:54:34] ror_noob: ah, it works now
[20:54:49] ror_noob: anybody around?
[20:57:58] unreal_: has joined #RubyOnRails
[20:58:50] qejk: has joined #RubyOnRails
[20:59:09] ror_noob: uhm, I have some questions
[20:59:22] ror_noob: about.. ruby on rails
[21:03:15] rafaelfranca: has joined #RubyOnRails
[21:03:32] ror_noob: has left #RubyOnRails: ()
[21:04:29] ikarius: has joined #RubyOnRails
[21:04:30] sleungcy: has joined #RubyOnRails
[21:05:25] Cache_Money: has joined #RubyOnRails
[21:06:21] ikarius: heyas. I'm trying to read a bit of ruby code in order to add on some bits, and I'm having difficulty tracking down a method.
[21:06:32] ikarius: resource.extend_remember_period = mapping.to.extend_remember_period
[21:07:29] ikarius: I know where the mapping is defined, but the "to" method is eluding me. it's too common, so google is… not much help, and digging around in ruby docs manually hasn't helped
[21:08:22] ayoros: has joined #RubyOnRails
[21:08:24] adaedra: Ask ruby directly
[21:08:47] ikarius: um. how would I go about that? this is code in the devise library
[21:09:26] adaedra: Use pry for that: insert `binding.pry` in the line before, then do `show-source mapping.to`
[21:09:48] adaedra: (You may have to install pry and add it to your Gemfile)
[21:11:40] adaedra: Or, simpler, you should be able to do see it with `mapping.method(:to).source_location`, but pry is way more interesting for looking things around.
[21:11:51] Surt_Q: has joined #RubyOnRails
[21:12:49] adaedra: show-source mapping.to is to be done in the pry console you should get when running the code, in case this wasn't clear
[21:14:01] ikarius: no, I got that
[21:16:47] htmldrum: has joined #RubyOnRails
[21:17:35] kdough: has joined #RubyOnRails
[21:23:22] DoctorMonocular: has joined #RubyOnRails
[21:25:44] ikarius: I swear. on the favourable points side, ruby's meta-programming game is very strong.
[21:26:26] sher: has joined #RubyOnRails
[21:26:44] ikarius: on the negative points side, while there's a great deal of attention spent making the syntax *appear* clear, it can still be a fsking hell of a mess to try and figure out what a bit of code actually does.
[21:28:37] ikarius: … and some of that mess is directly at the hands of the constructs designed to enable the meta-programming game.
[21:31:08] adac: has joined #RubyOnRails
[21:36:11] DoctorMonocular: has joined #RubyOnRails
[21:38:41] squiercaster: has joined #RubyOnRails
[21:40:10] squiercaster: has joined #RubyOnRails
[21:45:46] weaksauce: ikarius that's why good docs are so important
[21:50:47] qejk: has joined #RubyOnRails
[21:54:16] bronson: has joined #RubyOnRails
[21:54:39] nettoweb: has joined #RubyOnRails
[22:00:48] makerops: has joined #RubyOnRails
[22:02:07] roshanavand: has joined #RubyOnRails
[22:02:12] moeabdol: has joined #RubyOnRails
[22:03:54] n008f4g_: has joined #RubyOnRails
[22:04:52] intrigueD: has joined #RubyOnRails
[22:07:23] ikarius: yield feels so damn wierd.
[22:08:25] rubyonrails796: has joined #RubyOnRails
[22:08:41] ikarius: … probably because I'm mid-40s and been programming since I was 10 or so, and it's different enough from what I've done, it just doesn't feel natural, like most language constructs do for me.
[22:13:09] cac: has joined #RubyOnRails
[22:16:53] baweaver: Likely you started around BASIC, C, or a similar language
[22:17:11] pawnbox: has joined #RubyOnRails
[22:17:26] baweaver: Spend some more time around languages like Haskell, Scala, ML, Elixir, and F# and these things will make a lot more sense.
[22:18:22] baweaver: the first few dives into functional or even functionally inspired programming are trippy
[22:18:42] baweaver: especially if you're strongly from C type languages
[22:19:02] myntcake: has joined #RubyOnRails
[22:21:49] sher: has joined #RubyOnRails
[22:24:08] BinaryMaster: Question: For someone coming to Ruby on Rails newly from python Flask world would it be better to write a user Auth Security system myself or learn to use one of the pre-written gems that do it?
[22:26:03] MuffinPimp: has joined #RubyOnRails
[22:29:16] fryguy: BinaryMaster: use devise unless you have a really good reason
[22:30:08] BinaryMaster: My only reason would be educational
[22:30:16] kdough: has joined #RubyOnRails
[22:32:28] pulgalipe: has joined #RubyOnRails
[22:32:40] rafaelfranca: has joined #RubyOnRails
[22:35:57] weaksauce: BinaryMaster do it for funzies and to learn but if you setup something of value it's probably best to use devise
[22:36:00] weaksauce: or something like that
[22:36:22] ikarius: oh, I've spent some time with scheme, lisp, scala
[22:36:34] ikarius: not much, but a little.
[22:36:46] ikarius: and yes, I started with basic, and then turbo pascal very shortly after
[22:37:57] ikarius: my programming experience is 98% functional and object-oriented.
[22:38:52] ikarius: I've been poking around the devise authentication for a couple of days now, and I will say this
[22:39:04] BinaryMaster: ikarius, I started with c, then java, then did a TON of PHP professionally, then Python, I played with Ruby and Rails off and on but now have the time/energy/money to focus on it more
[22:39:20] ikarius: I've read through about a half-dozen blog articles on modifying devise to do this, that and the other thing
[22:39:37] ikarius: and from my perspective, only ONE of those blogs got their modification correct
[22:40:15] ikarius: the one blog implemented warden schemes and added them to the devise stack, the rest of the blog articles added various methods to their application controllers and such.
[22:40:55] ikarius: so… it looks like there's some definite knowledge gaps, even for folks out there writing how-to's. of course, that's anecdotal, but :p
[22:41:58] smathy: has joined #RubyOnRails
[22:43:13] ikarius: even though I spent a few months adding features to an existing rails app- I knew it at the time, but it was a terribly implemented/architected rails app, but reading the devise code is a whole new level of "how the fuck are they doing that?"
[22:43:56] weaksauce: ikarius some of the time modifying controllers is how you do it though
[22:45:04] smathy: I usually think more like "How the fuck are they *getting away with* doing that?"
[22:47:14] ikarius: weaksauce- sometimes. in these cases, IMO they're stacking crap on at a totally different layer than the rest of the devise implementation- when the devise implementation/architecture is totally extensible (if a bit arcane), instead of adding additional "schemes" for handling the authentication at the same layer where devise is implemented
[22:48:06] ikarius: … devise runs in the middleware layer, and they're adding/overriding things at the app->controller layer. ugh.
[22:48:46] pwnd_nsfw: has joined #RubyOnRails
[22:48:53] weaksauce: ikarius yeah it's like anything else on the internet... tons of ways to do things of varying levels of correctness
[22:50:07] smathy: ikarius, I don't think devise is middleware, it uses warden - which is middleware.
[22:50:24] rogue_koder: has joined #RubyOnRails
[22:51:19] mices: has joined #RubyOnRails
[22:52:18] mices: is there a way to use bundle show to generate a Gemfile ?
[22:52:43] htmldrum: has joined #RubyOnRails
[22:52:48] mices: like if you accidentally deleted your Gemfile but hadn't run bundle install yet
[22:53:32] ikarius: smathy: devise adds warden schemes which do the heavy lifting, and those run in the middleware stack
[22:54:04] ikarius: so, creating cookies, storing logins, validating logins is all done at the middleware layer.
[22:55:07] ikarius: and I read through several blog articles on modifying devise to use JWTs, do this and that differently, etc, before finding one blog which showed adding warden schemes to alter devise's behavior.
[22:55:16] smathy: ikarius, just by warden, devise just talks to warden to do those things. I wasn't defending it, just a finer point of the architecture in case it was relevant to you.
[22:55:21] smathy: I hate devise
[22:55:44] djbkd: has joined #RubyOnRails
[22:55:47] ikarius: I don't know my ruby well enough to appropriately judge devise ;)
[22:56:27] ikarius: but I will say it seems a bit black-box to me- the auth mechanisms are poorly documented IMO.
[22:56:36] smathy: It's great at what it does, but as soon as you try to extend it then it's a world of hurt.
[22:57:31] ikarius: I am trying to lay the groundwork for what will be a decent sized service
[22:57:41] smathy: ...same with simple_form and other things from plataformatec.
[22:57:58] ikarius: back-end should be rails-api
[22:58:16] ikarius: and I'm expecting to do a single-page ember.js app for the front-end
[22:58:36] ikarius: … the fun part is that I actually want the users to sign in before they get the ember.js app
[22:58:44] weaksauce: ikarius devise is not meant to be super customized. It can be to an extent but it's made for 80% of the use cases to be fairly easy to implement
[22:59:06] ikarius: … security through obscurity, I know, but it reduces the attack surfaces.
[22:59:59] ikarius: I'm fairly sold on using JWT's, so I think what I want to do is to modify devise to generate a JWT and store it in a cookie
[23:00:28] ikarius: otherwise, the ember app will have trouble fetching the JWT so's it can be re-used for access to the API back-end.
[23:00:56] maesitos: has joined #RubyOnRails
[23:01:43] ikarius: feel free to tell me I'm nuts, and I should pursue a different approach
[23:02:14] ikarius: because I freely admit I'm guessing, based on what I'd regard as a "reasonable" amount of reading.
[23:03:57] ikarius: http://zacstewart.com/2015/05/14/using-json-web-tokens-to-authenticate-javascript-front-ends-on-rails.html - the closest I've seen to correct modification of devise.
[23:06:23] weaksauce: fairly straightforward
[23:08:06] ikarius: I see this bit of code in devise/mapping.rb:
[23:08:07] ikarius: def strategies
[23:08:08] ikarius: @strategies ||= STRATEGIES.values_at(*self.modules).compact.uniq.reverse
[23:08:11] tekk: has joined #RubyOnRails
[23:09:12] ikarius: which suggests to me that devise is actually mapping from the approaches you specify (e.g. :authenticatable, :rememberable, :recoverable) into the strategies it feeds warden
[23:13:12] ikarius: and there we go:
[23:13:12] ikarius: Devise.mappings.each_value do |mapping|
[23:13:13] ikarius: warden_config.scope_defaults mapping.name, strategies: mapping.strategies
[23:14:03] tjohnson: has joined #RubyOnRails
[23:17:14] ikarius: but if I do my job correctly, I should end up with new config specs for devise- e.g. :jwt_authenticatable etc which can be specified
[23:18:18] ikarius: at which point devise should use different warden strategies that do what I like.
[23:18:26] nettoweb: has joined #RubyOnRails
[23:18:45] cac: has joined #RubyOnRails
[23:20:47] mices: has joined #RubyOnRails
[23:21:54] maxdoubt: has joined #RubyOnRails
[23:22:42] SeanLazer: has joined #RubyOnRails
[23:23:11] blackmesa: has joined #RubyOnRails
[23:29:16] dnewkerk: has joined #RubyOnRails
[23:34:20] rafaelfranca: has joined #RubyOnRails
[23:39:21] rogue_koder: has joined #RubyOnRails
[23:42:35] edwinvdgraaf: has joined #RubyOnRails
[23:42:47] ikarius: what I don't like is that devise does not separate their authorization mechanism (database, oath, etc), from their session mechanism (token, cookie, etc), from their authorization-refresh strategy
[23:42:51] djbkd: has joined #RubyOnRails
[23:49:01] Guest_: has joined #RubyOnRails
[23:52:26] Cohedrin_: has joined #RubyOnRails
[23:53:08] davee_: has joined #RubyOnRails
[23:53:32] sandstrom: has joined #RubyOnRails
[23:54:49] bronson: has joined #RubyOnRails
[23:55:36] quazimodo: has joined #RubyOnRails
[23:56:49] sandstrom: has joined #RubyOnRails
[23:58:10] Devalo: has joined #RubyOnRails
[23:58:20] djbkd: has joined #RubyOnRails