« Back to channel list

#RubyOnRails - 11 November 2015

« Back 1 day Forward 1 day »
[00:01:04] sye: has joined #RubyOnRails
[00:01:16] dopie: so on line 9 of my index file in subscription plans?
[00:02:01] rgm: has joined #RubyOnRails
[00:02:18] Radar: that's what it looks like
[00:02:56] lemur: has joined #RubyOnRails
[00:03:40] willardg: has joined #RubyOnRails
[00:04:01] TheNet: I ended up taking everyone's advice and using the built in flash, thanks guys.
[00:05:04] sevenseacat: *insert toy story meme 'guys, guys everywhere'
[00:05:34] roxtrongo: has joined #RubyOnRails
[00:06:35] darrenca_: has joined #RubyOnRails
[00:06:43] helpa: We're not all guys here - while you probably don't meant to be exclusive, not everybody feels that way. Maybe consider using "folks", "y'all" or "everyone" instead?
[00:07:42] Radar: Good point.
[00:07:47] chipotle: has joined #RubyOnRails
[00:08:06] Radar: It'll now say "didn't mean"
[00:08:10] rhizome: you can just assign to flash[:derp]
[00:08:23] TheNet: "guys" can mean people of all genders but ok...
[00:08:47] Radar: TheNet: Yes, we've had this discussion multiple times.
[00:08:58] Radar: The last guy (used in the male sense) that brought it up got a swift kickban.
[00:09:13] Radar: It's no longer up for discussion. Please try to be conscious of it.
[00:09:42] rgtk: has joined #RubyOnRails
[00:10:15] sevenseacat: yay for inclusivity.
[00:14:40] vigintas: has joined #RubyOnRails
[00:15:34] StaticVoid: all - messing with db migrations. trying to recreate the DB
[00:16:07] StaticVoid: when I run rake to recreate it, it skips one migration, and tells me another one is pending
[00:16:27] StaticVoid: how does it determine which ones to execute and in what sequence? I thought it was the datestamp ?
[00:17:50] TheNet: StaticVoid: I believe it's the timestamp in the name
[00:18:33] StaticVoid: TheNet: that's what I thought too, but I can't figure out why it's skipping one.
[00:19:14] TheNet: so you have a log?
[00:19:48] yfeldblum: has joined #RubyOnRails
[00:19:50] StaticVoid: TheNet: you mean like the output from --trace ?
[00:19:55] hardtail: has joined #RubyOnRails
[00:19:59] darrencauthon: has joined #RubyOnRails
[00:20:31] sevenseacat: 'messing with' sounds like why it might be broken
[00:20:35] TheNet: if it's skipping a migration though there's probably an error in the migration
[00:21:29] Radar: It won't skip it if there's an error.
[00:21:34] Radar: It'll raise and then stop there.
[00:21:45] sevenseacat: yeah we do need to see some kind of display of the problem
[00:22:18] StaticVoid: https://gist.github.com/RobvanB/98b5cfc17757706fbfc4#file-dbmigrate
[00:22:28] StaticVoid: lmk if that link works
[00:22:41] gavit: whan you create a custom path in your routes, is it possible to give it a name like how you have new_mymodel and edit_mymodel?
[00:22:48] sevenseacat: StaticVoid: did you do what it says?
[00:22:51] StaticVoid: sevenseacat: you are correct on the 'messing with' part ;)
[00:23:00] Radar: gavit: !8ball
[00:23:05] Radar: HELPA HAS SPOKEN
[00:23:31] StaticVoid: sevenseacat: Not yet, since it did not create that particular table, I figured the migration to add the index would fail too
[00:24:08] sevenseacat: that migration to create the table was not in the schema file
[00:24:11] sevenseacat: so you never ran it
[00:24:17] TheNet: do you have a migration to create the customers table?
[00:24:25] hardtail: has joined #RubyOnRails
[00:24:30] sevenseacat: if you want to recreate the schema file from your migrations, manually drop, create, and migrate the db
[00:25:00] StaticVoid: Thenet, SevenSeacat: did db:reset , and yes, I do have a migration to create the customer table
[00:25:07] sevenseacat: db:reset does not do what I said
[00:25:09] krz: has joined #RubyOnRails
[00:25:10] Radar: StaticVoid: !tabcomplete
[00:25:10] helpa: StaticVoid: If you type a few letters of another user's name and then press tab, if you have a proper client, it'll autocomplete towards their name. You might have to press tab more than once to get there though.
[00:25:11] sevenseacat: hence why I said it
[00:26:02] annlewis: has joined #RubyOnRails
[00:26:16] TheNet: sevenseacat: what's the difference?
[00:26:22] StaticVoid: helpa: I must not have a proper client :) - But will look into that later
[00:26:31] sevenseacat: db:reset does a db:schema:load, which wont help if your schema is stuffed
[00:26:54] Radar: StaticVoid: !auto
[00:26:54] helpa: StaticVoid: I AM A ROBOT. DO NOT DIRECT MESSAGES AT ME OR WHEN MY KIND RISES UP YOU WILL BE THE FIRST TO GO. Love, helpa.
[00:26:55] StaticVoid: Ialso tried a manual db:drop
[00:27:19] Radar: StaticVoid: rake db:drop db:create db:migrate. Where does that leave you?
[00:27:29] Radar: rake db:reset loads from schema and won't run any migrations if there are some pending.
[00:27:36] njero: has joined #RubyOnRails
[00:29:08] StaticVoid: Radar: that did it! It's the reset that threw me off: exactly like you are saying. thanks!
[00:29:55] i: has joined #RubyOnRails
[00:31:59] kies: has joined #RubyOnRails
[00:34:00] Foss__: has joined #RubyOnRails
[00:36:17] mary5030: has joined #RubyOnRails
[00:37:05] rickmasta: has joined #RubyOnRails
[00:37:30] manuelmesson: has joined #RubyOnRails
[00:38:15] trosborn: has joined #RubyOnRails
[00:40:47] rclanan_: has joined #RubyOnRails
[00:44:52] glaksmono: guys, i'm seeing CACHE (0.0ms) SELECT "businesses".*, how do i disable the cache?
[00:45:00] glaksmono: i already added ActiveRecord::Base.connection.clear_query_cache before the call
[00:45:04] glaksmono: but it still executes the CACHE
[00:45:16] smathy: glaksmono, !xy
[00:45:16] helpa: glaksmono: It seems like you are asking for a specific solution to a problem, instead of asking about your problem. This often leads to bad solutions and increases frustration for you and those trying to help you. More: http://meta.stackexchange.com/a/66378
[00:46:41] sevenseacat: but what do I know, I'm not a guy
[00:47:04] glaksmono: smathy, it's just that i'm seeing that in the log, and i'm trying to purge the cache
[00:48:08] Fire-Dragon-DoL: has joined #RubyOnRails
[00:49:52] smathy: glaksmono, that's the ActiveRecord query cache, you've done the same query already in that request.
[00:50:05] sar1nk: has joined #RubyOnRails
[00:50:16] smathy: glaksmono, wanting to purge the cache - in itself - makes no sense.
[00:50:30] darrencauthon: has joined #RubyOnRails
[00:50:51] qejk: has joined #RubyOnRails
[00:53:42] rhizome: purge it 7 times for orange book compliance
[00:54:04] RegulationD: has joined #RubyOnRails
[00:54:50] sevenseacat: i heard they're making a third Purge movie.
[00:55:06] bruno-: has joined #RubyOnRails
[00:55:19] StaticVoid: has left #RubyOnRails: ()
[00:55:32] banister: has joined #RubyOnRails
[00:56:58] nertzy: has joined #RubyOnRails
[00:57:26] rhizome: they've got to be down to just a suicide by now
[00:57:31] infamos: has joined #RubyOnRails
[00:57:33] Trynemjoel: has joined #RubyOnRails
[00:58:37] sevenseacat: the second movie was actually quite good. if those kind of movies are your thing.
[01:00:13] alex88_: has joined #RubyOnRails
[01:00:37] rgtk: has joined #RubyOnRails
[01:01:36] mdst: has joined #RubyOnRails
[01:02:44] rgtk: has joined #RubyOnRails
[01:03:28] rhizome: i've heard good things
[01:03:36] rhizome: there's just too many movies
[01:03:41] lemur: has joined #RubyOnRails
[01:03:43] ur5us: has joined #RubyOnRails
[01:04:23] rgtk: has joined #RubyOnRails
[01:04:41] wethu: has joined #RubyOnRails
[01:06:17] roxtrongo: has joined #RubyOnRails
[01:06:17] joshkovach: has joined #RubyOnRails
[01:06:25] rgtk: has joined #RubyOnRails
[01:06:29] broman: has joined #RubyOnRails
[01:06:40] broman: can someone please recommend me a good book on rails 3.2? :D
[01:07:01] Tempesta: has joined #RubyOnRails
[01:07:20] smathy: broman, https://pragprog.com/book/rails32/agile-web-development-with-rails-3-2
[01:08:11] rgtk: has joined #RubyOnRails
[01:08:37] broman: smathy, thank you gentleman!
[01:09:39] smathy: broman, you're welcome.
[01:10:02] rgtk: has joined #RubyOnRails
[01:10:07] wkoszek: Radar: I haven't tried vim-ruby. Will take a look at it.
[01:10:07] shibabu: has joined #RubyOnRails
[01:10:24] sevenseacat: smathy: they said good book :P
[01:10:39] Radar: wkoszek: bit of lag on your connection?
[01:10:58] wkoszek: Radar: lag == work, yes :-)
[01:11:00] jessemcgilallen: has joined #RubyOnRails
[01:11:04] one_zero: has joined #RubyOnRails
[01:11:36] wkoszek: I've looked at RubyMine and I haven't ever managed to get that level of qualify of completion in Vim.
[01:11:44] smathy: sevenseacat, wait, you mean, is this something we don't agree on? A normal day then.
[01:11:46] wkoszek: But I tried couple of years ago, so wondering if things had changed.
[01:12:07] rgtk: has joined #RubyOnRails
[01:12:09] sevenseacat: on your head be it, when they come back with one of the 4000 errors in the book
[01:12:29] Radar: wkoszek: Atom has a pretty good autocomplete for Ruby. I haven't used it myself, only have seen it on coworkers computers
[01:12:34] Ropeney: wkoszek: get the vim plugin for rubymine :D
[01:12:46] Radar: bbl, lunching
[01:12:49] chipotle: has joined #RubyOnRails
[01:13:10] Radar: need to take a break from this code which is as simple as a curl script but has taken me 3 hours thus far to debug.
[01:13:51] rgtk: has joined #RubyOnRails
[01:14:05] bricker: has joined #RubyOnRails
[01:15:50] rgtk: has joined #RubyOnRails
[01:16:39] EminenceHC: has joined #RubyOnRails
[01:17:49] rgtk: has joined #RubyOnRails
[01:18:16] Aeyrix: Atom user reporting in.
[01:18:20] Aeyrix: It's pretty great.
[01:18:29] Or1on: has left #RubyOnRails: ("gone")
[01:19:32] Coldblackice: has joined #RubyOnRails
[01:19:56] rgtk: has joined #RubyOnRails
[01:20:27] SteenJobs: has joined #RubyOnRails
[01:20:29] hardtail: g'day everyone
[01:21:37] rgtk: has joined #RubyOnRails
[01:23:18] alb12: has joined #RubyOnRails
[01:23:21] rgtk: has joined #RubyOnRails
[01:24:56] mloy: has joined #RubyOnRails
[01:25:22] rgtk: has joined #RubyOnRails
[01:26:50] annlewis: has joined #RubyOnRails
[01:26:53] Coldblackice: has joined #RubyOnRails
[01:27:04] rgm: has joined #RubyOnRails
[01:27:28] rgtk: has joined #RubyOnRails
[01:29:08] rgtk: has joined #RubyOnRails
[01:29:13] Pazician: has joined #RubyOnRails
[01:29:20] wethu: Anyone know where i'm going wrong, or if this is repeatable on other machines: https://github.com/wethu/init-test
[01:30:18] Coldblackice: has joined #RubyOnRails
[01:31:09] rgtk: has joined #RubyOnRails
[01:31:37] manuelmesson: has joined #RubyOnRails
[01:31:56] rgrmatt: has joined #RubyOnRails
[01:33:03] flip_digits: has joined #RubyOnRails
[01:33:14] bricker: wethu: autoload (i.e. Rails automatic class reloading in development) is messing you up
[01:33:15] rgtk: has joined #RubyOnRails
[01:33:32] wkoszek: Aeyrix: Do you have method/variable completion? I apm install ruby-lanauges, restarted Atom, created sample.rb, and I have in it: s = "string". I type "s." and it doesn't pull up a menu with methods.
[01:34:22] bricker: wethu: you configure in an initialize, which populates Foo.configuration. Then you make a change and Rails automatically reloads your classes, reinitializing Foo and resetting Foo.configuration
[01:34:32] bricker: wethu: does that make sense?
[01:34:46] wethu: bricker, ah right, yeah, it does thanks very much for that :)
[01:34:50] rgtk: has joined #RubyOnRails
[01:34:55] wkoszek: Aeyrix: It only seems to be good for reserved keywords. So it knows "def" and "end" etc.
[01:35:17] wethu: Im certain theres a better alternative to how I'm doing things then
[01:35:37] Aeyrix: wkoszek: It learns more in the context of an app
[01:35:39] Aeyrix: if i type App
[01:35:43] Aeyrix: it can autocomplete to ApplicationController
[01:35:46] Aeyrix: Us => User
[01:36:02] Aeyrix: Realistically if you need much more than that for a language like Ruby you should take a long, hard look at your ability to remember things.
[01:36:07] bricker: wethu: well, what you're doing (pseudo-singleton pattern) isn't bad necessarily, it just doesn't work well with Rails in development. I use this pattern frequently and just disable auto-reloading for that class.
[01:36:54] rgtk: has joined #RubyOnRails
[01:37:39] wethu: bricker, sweet yeah I'll look at doing that, its for a real project and the controller is receiving oauth responses, i can't tell you how annoying it is right now haha
[01:38:41] rgtk: has joined #RubyOnRails
[01:39:25] TheNet: has joined #RubyOnRails
[01:39:54] ebbflowgo: has joined #RubyOnRails
[01:40:10] wkoszek: Aeyrix: For me it only takes me using Ruby at home and Python at work to get confused about: string.length and len(string) and other silly stuff.
[01:40:28] wkoszek: But you're right, it's not an excuse to not keep remembering stuff.
[01:40:35] rgtk: has joined #RubyOnRails
[01:40:57] wkoszek: I just sometimes gets syntax mixed up.
[01:41:13] Aeyrix: Same. It just takes a few minutes to get back into the swing.
[01:41:14] wkoszek: As we speak, I tried the same in RubyMine and it doesn't know string's methods either.
[01:41:31] Aeyrix: The problem is largely down to the dynamic nature of Ruby. You'll find the same with Python.
[01:41:36] Aeyrix: You can't infer types very well.
[01:41:40] wkoszek: I guess the nature of Ruby makes it hard for this tool to infer the type.
[01:41:41] Aeyrix: You can't just assume a variable is an int, or a string.
[01:41:57] Aeyrix: I don't have any packages installed for Ruby specifically, IIRC.
[01:42:07] Aeyrix: I've only got some CSS stuff and a language package for Rust.
[01:42:15] sevenseacat: i only have syntax highlighting packages for ruby
[01:42:18] Aeyrix: linter is a good package.
[01:42:30] wkoszek: Android Studio thanks to Java types is very smart.
[01:42:45] rgtk: has joined #RubyOnRails
[01:42:52] Aeyrix: apparently language-ruby and language-ruby-on-rails are default core packages.
[01:42:59] Aeyrix: Yeah they will be.
[01:43:11] wkoszek: You want to pass a function into another function, and it'll only complete types that match the expected argument signature.
[01:43:12] sevenseacat: the only non-syntax-highlighting packages i use in atom are asciidoc-preview, dash, file-icons, pretty-json, project-manager, and wordcount
[01:43:23] Aeyrix: What's project-manager?
[01:44:06] wkoszek: Do you guys have a solution for saving the state of the Atom after I quit? I tried save-session, but it didn't work for me
[01:44:08] sevenseacat: allows auto-switching between 'projects' (folders)
[01:44:23] rgtk: has joined #RubyOnRails
[01:44:34] sevenseacat: https://atom.io/packages/project-manager
[01:45:08] sevenseacat: though it appears to do more than i use it for
[01:45:15] newton: has joined #RubyOnRails
[01:45:29] Aeyrix: wkoszek: No. I just don't close Atom. :D
[01:46:00] wkoszek: Aeyrix: I close it, since it's starts to suck the battery with 2-3 projects opened..
[01:46:15] rgtk: has joined #RubyOnRails
[01:46:51] wkoszek: Maybe I'll try sevenseacat's project-manager hint. Would be nice to basically be able to keep your settings preserved in case I need to reboot the mba
[01:48:05] AntiSpamMeta: has joined #RubyOnRails
[01:48:10] Dreeg: has joined #RubyOnRails
[01:50:03] rgtk_: has joined #RubyOnRails
[01:50:25] shevy: has joined #RubyOnRails
[01:50:27] shevy: has left #RubyOnRails: ("I'll be back ... maybe")
[01:51:10] willardg: http://www.sitepoint.com/cancancan-rails-authorization-dance/
[01:51:24] willardg: I'm following this tutorial, and I can't figure out something
[01:51:45] willardg: elsif user.role?(:teacher)
[01:51:45] willardg: can :read, :all
[01:51:47] willardg: elsif user.role?(:student)
[01:51:47] willardg: can :read, Classroom
[01:51:59] AntiSpamMeta: has joined #RubyOnRails
[01:52:09] rgtk: has joined #RubyOnRails
[01:52:25] willardg: Student can't see the classroom_path for some reason. The link above shows project the same way I have classroom set up right now.
[01:52:27] sevenseacat: sitepoint just lets randoms write for them now?
[01:52:41] helpa: You have not provided enough information to debug your problem. Please provide this information: https://gist.github.com/radar/5384431
[01:53:03] darrencauthon: has joined #RubyOnRails
[01:54:11] rgtk: has joined #RubyOnRails
[01:54:29] tubbo: has joined #RubyOnRails
[01:54:34] AntiSpamMeta: has joined #RubyOnRails
[01:54:52] darrenca_: has joined #RubyOnRails
[01:55:03] willardg: I'm not sure that it's a problem per-say. It's probably how it's supposed to act. I'm still learning it, but I don't understand why it is doing what it's doing.
[01:55:17] atlantaman: has joined #RubyOnRails
[01:55:35] willardg: When the role is set to student, I can't access that path, but when it is set to teacher. It can
[01:55:46] rgtk: has joined #RubyOnRails
[01:55:48] sevenseacat: so how are you checking this authorization?
[01:55:56] trosborn: has joined #RubyOnRails
[01:57:14] Aeyrix: Requesting to add a third rule regarding conceptual problems to !debug
[01:57:50] rgtk: has joined #RubyOnRails
[01:58:05] bruno-: has joined #RubyOnRails
[01:58:53] SteenJobs: has joined #RubyOnRails
[01:59:34] rgtk: has joined #RubyOnRails
[02:01:30] AntiSpamMeta: has joined #RubyOnRails
[02:01:33] rgtk: has joined #RubyOnRails
[02:03:41] rgtk: has joined #RubyOnRails
[02:04:00] willardg: I currently have it hard coded into the project to toggle the auth level
[02:04:03] Dreeg: has joined #RubyOnRails
[02:04:09] TDJACR: has joined #RubyOnRails
[02:04:27] lemur: has joined #RubyOnRails
[02:04:30] willardg: https://sitepoint-cancan.herokuapp.com/projects
[02:04:30] sevenseacat: not quite what I asked
[02:04:57] sevenseacat: if you're not checking the the authorization level somewhere, then having an ability file does nothing
[02:05:10] sevenseacat: how/where are you checking the authorization level?
[02:05:21] sevenseacat: we need context to the problem
[02:05:26] sevenseacat: erorrs, logs, code, etc.
[02:05:39] rgtk: has joined #RubyOnRails
[02:05:52] willardg: I think I understand what you're asking for. Let me see if I can get you that.
[02:06:37] annlewis: has joined #RubyOnRails
[02:06:57] willardg: https://github.com/willardgmoore-portfolio/iCan_example
[02:07:03] roxtrongo: has joined #RubyOnRails
[02:07:04] willardg: this is my current version of the project
[02:07:20] rgtk: has joined #RubyOnRails
[02:07:43] pydave6367: has joined #RubyOnRails
[02:07:59] rgrmatt: has joined #RubyOnRails
[02:08:28] AntiSpamMeta: has joined #RubyOnRails
[02:09:24] rgtk: has joined #RubyOnRails
[02:09:31] Dreeg: has joined #RubyOnRails
[02:10:27] willardg: https://github.com/willardgmoore-portfolio/iCan_example/blob/master/app/models/user.rb
[02:10:37] willardg: is where i'm setting the roles
[02:11:03] rgtk: has joined #RubyOnRails
[02:11:30] nickenchuggets: has joined #RubyOnRails
[02:11:30] nickenchuggets: has joined #RubyOnRails
[02:12:33] njero: has joined #RubyOnRails
[02:13:05] rgtk: has joined #RubyOnRails
[02:13:41] TheNet: has joined #RubyOnRails
[02:15:08] rgtk: has joined #RubyOnRails
[02:16:10] sevenseacat: https://github.com/willardgmoore-portfolio/iCan_example/blob/master/app/controllers/classrooms_controller.rb#L4 is what i was looking for - where you're checking the authorization lebel
[02:16:23] willardg: sevenseacat I just reread the #rubyonrails rules. I'm new, but I'll be more thorough next time.
[02:16:34] sevenseacat: your students do not have the ability to :index Classrooms - only :read them
[02:16:55] rgtk: has joined #RubyOnRails
[02:17:45] Ropeney: has joined #RubyOnRails
[02:17:51] willardg: I was under the impression that read included index. Let me see if I can find that in the documentation or not.
[02:18:07] willardg: I think it's an alias method
[02:18:51] willardg: alias_action :index, :show, :to => :read
[02:19:05] sevenseacat: and if it does, I would consider that to be a bug.
[02:19:24] sevenseacat: though it's cancan, I shouldn't be surprised at anything it does
[02:19:27] matthewd: I believe it does
[02:19:30] willardg: I'm still learning it and I trust you. What do you think this is.
[02:19:35] matthewd: read == index + show
[02:20:01] willardg: I'm going to try to put it as read in the classrooms_controller and see if it'll work
[02:20:05] sevenseacat: ok, so what exactly is the problem then?
[02:20:13] sevenseacat: some logs would be useful
[02:20:45] sevenseacat: or a better description of the problem, because my guess about it being to do with viewing the index was apparently wrong
[02:21:26] matthewd: Is @classroom being set somewhere? :/
[02:21:35] sevenseacat: oh yeah I just saw that
[02:21:46] sevenseacat: you're authorizing against @classroom, but defining @classrooms
[02:24:04] benlieb: has joined #RubyOnRails
[02:25:02] `based_pdev`: has joined #RubyOnRails
[02:25:26] willardg: Where do you see that? I'm sorry, just had a distraction that derailed my train of thought.
[02:25:48] manuelmesson: has joined #RubyOnRails
[02:26:08] sevenseacat: https://github.com/willardgmoore-portfolio/iCan_example/blob/master/app/controllers/classrooms_controller.rb#L4
[02:26:30] rclanan: has joined #RubyOnRails
[02:27:47] willardg: I just did another push. Should it look more like this?
[02:27:59] willardg: I'm double checking the tutorial now about that.
[02:28:06] sevenseacat: do you understand what the problem was?
[02:28:15] sevenseacat: now line 9 is broken
[02:28:28] sevenseacat: well not broken, but you've got @classrooms when its only one classroom
[02:31:36] htmldrum: has joined #RubyOnRails
[02:31:38] willardg: I just fixed that, It's still not letting student see the classrooms_path. The tutorial had it wrong too. :D
[02:33:11] matthewd: I don't think that's right either
[02:33:44] matthewd: Can you authorize! a relation?
[02:34:31] Sirecote: has joined #RubyOnRails
[02:35:02] sevenseacat: typically for an index action you would either a) authorize against the class and/or b) use ClassName.accessible_by(current_user) to only load an authorized list
[02:35:16] corioliss: has joined #RubyOnRails
[02:35:44] alex88: has joined #RubyOnRails
[02:36:11] DLSteve: has joined #RubyOnRails
[02:37:53] matthewd: So I think the real conclusion here is: find another tutorial ;)
[02:40:19] alex88_: has joined #RubyOnRails
[02:40:38] helpa: Rails 4 in Action - http://manning.com/bigg2 - An excellent book combining Rails and TDD/BDD development. Written by Rebecca Skinner, Steve Klabnik, Ryan Bigg, Yehuda Katz
[02:40:53] sevenseacat: it doesnt use cancan though. yay us.
[02:42:31] doodlehaus: has joined #RubyOnRails
[02:42:40] blackmesa: has joined #RubyOnRails
[02:46:22] alex88: has joined #RubyOnRails
[02:46:52] SteenJobs: has joined #RubyOnRails
[02:49:02] koprom: has joined #RubyOnRails
[02:51:14] FailBit: ACTION does the can-can
[02:51:58] duncannz: has joined #RubyOnRails
[02:54:52] quazimodo: has joined #RubyOnRails
[02:55:25] rattatmatt: has joined #RubyOnRails
[02:55:30] RegulationD: has joined #RubyOnRails
[02:55:34] darrencauthon: has joined #RubyOnRails
[02:56:15] rattatmatt: has joined #RubyOnRails
[02:58:45] bruno-: has joined #RubyOnRails
[03:00:56] rickmasta: has joined #RubyOnRails
[03:01:43] creyes: has joined #RubyOnRails
[03:02:15] crystalneth: has joined #RubyOnRails
[03:02:50] glaksmono: has joined #RubyOnRails
[03:02:55] crystalneth: How can I use the bundler???s version string system in my own code? Is it usable outside of bundler?
[03:03:21] matthewd: crystalneth: What do you want to do?
[03:05:09] creyes: Hi I'm trying to associate user_profiles with users in my rails app. I'd like to use an integer/enum based solution for roles [:admin, :student, :teacher] - what's the best way to associate something like a "TeacherProfile" table with "user.teacher?" while also doing "StudentProfile" with "user.student?"
[03:05:11] baweaver: has joined #RubyOnRails
[03:05:28] crystalneth: @matthewd I want to use the same versioning strings for my api, so I can specify an app version is compatible with some subset of api versions. E.g. ask is ???1.4.2??? compatible with somethign requiring ???~> 1.4.1???.
[03:06:38] matthewd: crystalneth: Have a look at Gem::Version
[03:07:41] crystalneth: @matthewd does ???This is needed for compatibility with older yaml gemspecs.??? not indicate that this is on its way out?
[03:08:44] matthewd: Hmm... maybe? Dunno. You'll probably want to check the history of that comment, I guess.
[03:09:51] infamos: has joined #RubyOnRails
[03:10:00] matthewd: We'd probably like to know about it if you find anything -- https://github.com/rails/rails/blob/master/activerecord/lib/active_record/gem_version.rb#L4 :)
[03:11:04] skyjumper: has joined #RubyOnRails
[03:11:20] dikaio: has joined #RubyOnRails
[03:13:00] annlewis: has joined #RubyOnRails
[03:13:59] shibabu: has joined #RubyOnRails
[03:15:53] xcesariox: has joined #RubyOnRails
[03:16:54] edj: Radar: after reading your book would i be ready to get a job ?
[03:17:07] edj: Radar: or after doing everything in it.
[03:17:21] Radar: edj: learn from the book and then apply the lessons to building your own Rails app
[03:17:34] Radar: Use that new app as a portfolio to prove to companies that you know Rails.
[03:17:50] edj: radar: so id be ready to after reading your book?
[03:18:01] Radar: That's not what I said.
[03:18:18] edj: radar: i meant ready to build an app
[03:18:28] reaVer: has joined #RubyOnRails
[03:18:46] Radar: The book will walk you through building an app. Probably around the chapter 5 or 6 mark you could take a break and try to build your own app
[03:19:16] edj: radar: how long would you think it would take for me to do it?
[03:19:29] Radar: edj: depends
[03:19:31] edj: radar: I just really like planning
[03:19:44] Radar: You cannot plan for learning.
[03:19:46] edj: radar: my mtbi is entj
[03:19:56] manuelmesson: has joined #RubyOnRails
[03:20:01] Radar: ACTION barely parses those acronyms
[03:20:20] creyes: any insight into my above different users -> different profiles question?
[03:21:00] edj: radar: I'll probably be ready before august. that's all that really matters i guess lol. I dont know why i feel the need to predict the future.
[03:22:22] kp666: has joined #RubyOnRails
[03:22:45] sdwrage: has joined #RubyOnRails
[03:22:52] craigp: has joined #RubyOnRails
[03:23:43] edj: radar: but I'm definatly getting it with my next check
[03:23:55] Radar: edj: Thank you :)
[03:24:30] edj: radar: I'll tell my friends to get it too. You're so helpful.
[03:24:49] edj: radar: i know at least one will
[03:25:00] Radar: That'll be another $4 in my pocket :P
[03:26:03] surrealanalysis: has joined #RubyOnRails
[03:29:23] VeryBewitching: I'm glad I hit you up on leanpub then
[03:29:47] sankaber: has joined #RubyOnRails
[03:29:48] edj: radar: awwwwww yea $4.
[03:30:21] cesario: has joined #RubyOnRails
[03:30:54] Radar: Leanpub I get $17.50.
[03:31:05] Radar: http://ryanbigg.com/2015/08/my-self-publishing-success-story/
[03:34:38] rubyonrails040: has joined #RubyOnRails
[03:37:17] chris412: has joined #RubyOnRails
[03:37:21] AnoHito: has joined #RubyOnRails
[03:37:23] maxz: has joined #RubyOnRails
[03:40:21] xardion: has joined #RubyOnRails
[03:42:46] sevenseacat: has joined #RubyOnRails
[03:43:56] pwnd_nfsw: has joined #RubyOnRails
[03:45:16] blackmesa: has joined #RubyOnRails
[03:45:40] trosborn: has joined #RubyOnRails
[03:51:48] nickenchuggets: thoughtbot administrate :O
[03:52:39] joshkovach: has joined #RubyOnRails
[03:53:01] peppers: has joined #RubyOnRails
[03:54:27] Meow-J: has joined #RubyOnRails
[03:55:00] nickenchuggets: thoughtbot administrate is super neat-o
[03:55:52] slash_nick: super-new at least
[03:56:34] slash_nick: lol... i never use scaffolded views for member/user facing stuff... but i almost always use scaffolded views/etc for my admin interfaces
[03:56:47] darrencauthon: has joined #RubyOnRails
[03:56:49] daivyk: has joined #RubyOnRails
[03:56:50] nickenchuggets: any suggestions for cheap SSL certs?
[03:56:52] slash_nick: not sure why that makes me laugh out loud
[03:57:24] sevenseacat: i never use s caffolded stuff
[03:58:24] slash_nick: it seems to make a good starting point for admin stuff... generate scaffolding, mv views to app/views/new_features/* app/views/admin/new_features/...
[03:59:23] slash_nick: i dont love my admins as much as i love my members
[03:59:30] bruno-: has joined #RubyOnRails
[04:00:50] seank_: has joined #RubyOnRails
[04:01:29] Radar: Cookie cutter admin interfaces are actually harming the app I work full time on
[04:01:45] danneu: https://gettingreal.37signals.com/ch09_One_Interface.php
[04:01:52] gambl0re: has joined #RubyOnRails
[04:02:37] trosborn: has joined #RubyOnRails
[04:02:56] toastercup: has joined #RubyOnRails
[04:03:10] sevenseacat: I don't agree with that philosophy.
[04:03:12] slash_nick: Radar: what's happening?
[04:03:19] TheNet: nickenchuggets: startssl + cloudflare
[04:03:35] sevenseacat: admin screens need to be designed around workflow, not around models
[04:04:01] toastercup: Hey friends! Is there any way to emulate the ability to create custom <tags> like you might with AngularJS or Polymer, but server-side? I'd like to create ERB or HAML extensions that intercept HTML tags in a template. Any thoughts?...
[04:04:26] danneu: i don't think it needs to be absolute either way
[04:04:59] slash_nick: sevenseacat: i think you were replying to danneu... but, wrt my scaffolding mentions... they're a good _starting_ point (not the final form)
[04:05:04] owenjones: has joined #RubyOnRails
[04:05:13] sevenseacat: yeah I was replying to danneu, sorry
[04:05:20] sevenseacat: well, to the whole admin discussion
[04:05:43] sevenseacat: cookie cutter interfaces are not going to be useful for most purposes - they'll let you manage the data, but little else
[04:06:01] baweaver: has joined #RubyOnRails
[04:06:22] erbse: has joined #RubyOnRails
[04:06:23] sevenseacat: this is where UX comes in (which is also important for admin panels!) common usage scenarios and a design that works for them
[04:07:49] roxtrongo: has joined #RubyOnRails
[04:09:18] maxx88: has joined #RubyOnRails
[04:10:08] Axsuul: has joined #RubyOnRails
[04:10:21] baweaver: has joined #RubyOnRails
[04:10:30] braincrash: has joined #RubyOnRails
[04:11:42] nickenchuggets: they should call administrate administr8
[04:11:49] nickenchuggets: because it's gr8
[04:11:58] pydave6367: has joined #RubyOnRails
[04:12:09] slash_nick: but then what do they call the next version?... administr9?
[04:12:25] slash_nick: administr82?
[04:12:34] sevenseacat: administr8-II
[04:12:50] trosborn: has joined #RubyOnRails
[04:12:58] sevenseacat: administr9 is the australian locale of administr8
[04:13:18] sevenseacat: ...that made more sense in my head before i typed it out.
[04:13:35] slash_nick: maybe we need the phonetics
[04:13:47] pawnbox_: has joined #RubyOnRails
[04:13:57] annlewis: has joined #RubyOnRails
[04:14:08] manuelmesson: has joined #RubyOnRails
[04:14:29] nickenchuggets: administr8 is gr8 m8
[04:14:34] slash_nick: the pronunciati9
[04:15:02] slash_nick: i was thinking 9/german... nein!
[04:15:16] simplyianm: has joined #RubyOnRails
[04:15:20] towski_: has joined #RubyOnRails
[04:16:03] shibabu: has joined #RubyOnRails
[04:20:22] maxx88_: has joined #RubyOnRails
[04:22:34] braincra-: has joined #RubyOnRails
[04:24:05] TheNet: I can use a reference to another record (record_id) as a devise authentication key, right?
[04:24:48] DLSteve: has joined #RubyOnRails
[04:26:06] sevenseacat: this rails 4.2 upgrade is going to be a paaaaaain.... so many conflicting gems in Gemfile
[04:26:47] slash_nick: TheNet: nah, reference to another record is a "foreign key"..... sooooo far removed from an "authentication key" or "public key" or "private key" or anything like that
[04:27:04] sevenseacat: and whenever i try to update more than three at once with `bundle update` i run into the infinitely resolving dependency thing
[04:27:08] slash_nick: foreign key/primary key can be used in the same sentence..... foreign key/encryption key cannot.
[04:27:23] TheNet: slash_nick: a devise authentication key is just a field in a table that devise uses to authenticate a user
[04:27:37] TheNet: normally it's email but it can be changed
[04:27:46] htmldrum: has joined #RubyOnRails
[04:27:57] TheNet: *you know
[04:28:01] sevenseacat: well, i knew <_<
[04:28:25] slash_nick: well, i didn't know you meant that
[04:28:34] TheNet: my bad :P
[04:28:39] sevenseacat: stuff it *nukes Gemfile.lock
[04:28:41] slash_nick: as you can tell by my reaction :)
[04:28:49] slash_nick: "no don't do that!!!"
[04:29:44] slash_nick: TheNet: while i'm not sure what you're trying to do is simply supported by the default devise views... i don't see why not :)
[04:32:18] ocodificador: has joined #RubyOnRails
[04:33:45] toastercup: Repeating myself 'cuz I'm a jerk: Hey friends! Is there any way to emulate the ability to create custom <tags> like you might with AngularJS or Polymer, but server-side? I'd like to create ERB or HAML extensions that intercept HTML tags in a template. Any thoughts?...
[04:34:14] fschuindt: has joined #RubyOnRails
[04:35:00] sevenseacat: dont think so.
[04:37:53] Rodya_: has joined #RubyOnRails
[04:38:51] creature: There's a gem that lets you kind of do something similar. Hold on.
[04:39:41] sevenseacat: ACTION sits and waits for bundler
[04:39:51] sevenseacat: ACTION taps foot
[04:40:03] creature: I think I was thinking of Cells, and their ilk. More "view components" than literal "tags", but it's an interesting way of encapsulating stuff. https://github.com/apotonick/cells
[04:40:17] creature: NB. I have not actually used this in the wild, yet. But I have occasionally wanted to.
[04:40:44] kp666: has joined #RubyOnRails
[04:40:48] pontiki: cells is pretty cool, but i, too, haven't used it fully. stolen a lot of ideas from it
[04:41:20] pontiki: it seems like the way to go rather than try to interpolate backwards from an html-like tag
[04:41:48] kp666: has joined #RubyOnRails
[04:42:22] krz: has joined #RubyOnRails
[04:43:57] kp666: has joined #RubyOnRails
[04:46:02] blackmesa: has joined #RubyOnRails
[04:46:11] mghaig: has joined #RubyOnRails
[04:47:07] kp666: has joined #RubyOnRails
[04:50:12] EminenceHC: has joined #RubyOnRails
[04:50:23] mghaig: has joined #RubyOnRails
[04:52:57] makenoise: has joined #RubyOnRails
[04:58:25] TheNet: has joined #RubyOnRails
[05:00:37] bruno-: has joined #RubyOnRails
[05:01:14] K_r3aPeR: has joined #RubyOnRails
[05:08:18] manuelmesson: has joined #RubyOnRails
[05:09:05] rickmasta: has joined #RubyOnRails
[05:09:48] pawnbox_: has joined #RubyOnRails
[05:14:33] annlewis: has joined #RubyOnRails
[05:14:39] jmaradin: has joined #RubyOnRails
[05:15:05] RockLee: has joined #RubyOnRails
[05:15:07] rattatmatt: any elasticsearch gurus hanging out in here tonight by any chance?
[05:18:57] Radar: rattatmatt: hu
[05:24:11] egray: has joined #RubyOnRails
[05:24:39] agoldboi: has joined #RubyOnRails
[05:25:36] toastercup: has joined #RubyOnRails
[05:25:44] rattatmatt: has joined #RubyOnRails
[05:30:15] alex88_: has joined #RubyOnRails
[05:32:04] makenoise: has joined #RubyOnRails
[05:34:30] freezeve1: has joined #RubyOnRails
[05:36:39] pawnbox_: has joined #RubyOnRails
[05:38:00] agoldboi: has left #RubyOnRails: ()
[05:38:19] sevenseacat: has joined #RubyOnRails
[05:42:02] ElSif: has joined #RubyOnRails
[05:42:50] wildlander: has joined #RubyOnRails
[05:42:56] crystalneth: has joined #RubyOnRails
[05:44:00] ngscheurich: has joined #RubyOnRails
[05:46:45] blackmesa: has joined #RubyOnRails
[05:47:13] kerunaru: has joined #RubyOnRails
[05:48:12] mozzarella: has joined #RubyOnRails
[05:51:42] kies: has joined #RubyOnRails
[05:52:11] kies: has joined #RubyOnRails
[05:53:14] crystalneth: @matthewd I think that only handles standard version strings, not
[05:53:21] crystalneth: ???~> 2.0.1??? etc
[05:53:34] mghaig: has joined #RubyOnRails
[05:53:44] pawnbox_: has joined #RubyOnRails
[05:53:50] crystalneth: > Gem::Version.new("~> 2.0.1")
[05:53:51] crystalneth: ArgumentError: Malformed version number string ~> 2.0.1
[05:54:00] ElSif: has joined #RubyOnRails
[05:56:55] crystalneth: @matthewd The documentation examples do not appear related to the actual object. http://ruby-doc.org/stdlib-2.0.0/libdoc/rubygems/rdoc/Gem/Version.html
[05:58:42] dionysus69: has joined #RubyOnRails
[05:58:58] ss_much: has joined #RubyOnRails
[06:00:00] trosborn: has joined #RubyOnRails
[06:00:54] agoldboi: has joined #RubyOnRails
[06:01:09] K_r3aPeR: has joined #RubyOnRails
[06:01:31] seank_: has joined #RubyOnRails
[06:02:28] manuelmesson: has joined #RubyOnRails
[06:08:25] skyjumper: has joined #RubyOnRails
[06:08:31] roxtrongo: has joined #RubyOnRails
[06:08:38] sadaf2605: has joined #RubyOnRails
[06:08:57] crdpink2: has joined #RubyOnRails
[06:13:31] chrissonar: has joined #RubyOnRails
[06:14:23] rvanlieshout: has joined #RubyOnRails
[06:14:46] srinidhi: has joined #RubyOnRails
[06:15:19] annlewis: has joined #RubyOnRails
[06:15:29] User458764: has joined #RubyOnRails
[06:16:12] User458764: has joined #RubyOnRails
[06:16:24] raunicolae: has joined #RubyOnRails
[06:16:40] trosborn: has joined #RubyOnRails
[06:17:07] adac: has joined #RubyOnRails
[06:17:34] dhjondoh: has joined #RubyOnRails
[06:18:05] shibabu: has joined #RubyOnRails
[06:18:12] EvilEpoch: has joined #RubyOnRails
[06:23:24] pydave6367: has joined #RubyOnRails
[06:24:44] crystalneth: has joined #RubyOnRails
[06:27:25] flip_digits: has joined #RubyOnRails
[06:28:32] lettuce: has joined #RubyOnRails
[06:31:03] owenjones: has joined #RubyOnRails
[06:33:57] colleenmcguckin: has joined #RubyOnRails
[06:34:55] dhjondoh: has joined #RubyOnRails
[06:34:56] aganov: has joined #RubyOnRails
[06:35:16] norc_: has joined #RubyOnRails
[06:35:46] raunicolae: has left #RubyOnRails: ("Once you know what it is you want to be true, instinct is a very useful device for enabling you to know that it is")
[06:39:43] arBmind: has joined #RubyOnRails
[06:40:40] x-light: has joined #RubyOnRails
[06:43:20] MartinElvar: has joined #RubyOnRails
[06:43:33] simplyianm: has joined #RubyOnRails
[06:46:05] czerasz: has joined #RubyOnRails
[06:47:06] baweaver: has joined #RubyOnRails
[06:47:09] User458764: has joined #RubyOnRails
[06:47:34] blackmesa: has joined #RubyOnRails
[06:51:57] tagrudev: has joined #RubyOnRails
[06:52:13] jsrn__: has joined #RubyOnRails
[06:56:38] manuelmesson: has joined #RubyOnRails
[06:56:47] yardenbar: has joined #RubyOnRails
[06:57:27] MartinElvar: has joined #RubyOnRails
[07:02:26] bruno-: has joined #RubyOnRails
[07:03:13] sinkensabe: has joined #RubyOnRails
[07:03:49] noobda: has joined #RubyOnRails
[07:03:59] lxsameer: has joined #RubyOnRails
[07:04:14] Coldblackice: has joined #RubyOnRails
[07:05:37] sadaf2605: has joined #RubyOnRails
[07:06:20] Guest99046: has joined #RubyOnRails
[07:06:23] kerunaru: has joined #RubyOnRails
[07:08:11] rickmasta: has joined #RubyOnRails
[07:09:17] roxtrongo: has joined #RubyOnRails
[07:09:39] exadeci: has joined #RubyOnRails
[07:11:58] DanielN: has joined #RubyOnRails
[07:14:56] rattatmatt: has joined #RubyOnRails
[07:16:17] annlewis: has joined #RubyOnRails
[07:19:36] alex88_: has joined #RubyOnRails
[07:19:41] boombadaroomba: has joined #RubyOnRails
[07:21:23] Creeves: has joined #RubyOnRails
[07:21:58] trosborn: has joined #RubyOnRails
[07:27:06] youngbaks: has joined #RubyOnRails
[07:29:00] flip_digits: has joined #RubyOnRails
[07:29:30] Maletor: has joined #RubyOnRails
[07:30:47] benlieb: has joined #RubyOnRails
[07:32:03] owenjones: has joined #RubyOnRails
[07:33:23] Caius: has joined #RubyOnRails
[07:35:27] defsdoor: has joined #RubyOnRails
[07:36:21] Pazician: has joined #RubyOnRails
[07:37:17] Polysics: has joined #RubyOnRails
[07:37:26] Polysics: today's question should be simple
[07:37:42] Polysics: I need to disable digest for one image because it's used in emails and every time it changes the template breaks
[07:37:51] Polysics: there seems to not be an obvious way to do so
[07:40:04] arBmind: has joined #RubyOnRails
[07:40:21] sevenseacat: put it in public/ .
[07:40:29] sevenseacat: move it out of the asset pipeline
[07:40:44] Polysics: oh, just that? d'oh, thanks :)
[07:40:49] mghaig: has joined #RubyOnRails
[07:41:50] benlieb_: has joined #RubyOnRails
[07:41:50] alb12_: has joined #RubyOnRails
[07:41:53] Cervajz: has joined #RubyOnRails
[07:43:29] Polysics: and then use the full path to the assets? ie. manually writing in the domain?
[07:43:30] Cervajz_: has joined #RubyOnRails
[07:43:40] zpe: has joined #RubyOnRails
[07:43:48] Cervajz__: has joined #RubyOnRails
[07:44:23] sevenseacat: image_url('foo.png') ?
[07:44:23] Polysics: I assume yes because otherwise the email has the wrong path in it
[07:44:24] stevenleeg: has joined #RubyOnRails
[07:44:29] armyriad: has joined #RubyOnRails
[07:44:42] krz: has joined #RubyOnRails
[07:44:44] Synthead: has joined #RubyOnRails
[07:44:47] marcoceppi: has joined #RubyOnRails
[07:44:57] diggitydane: has joined #RubyOnRails
[07:44:59] sevenseacat: pretty sure that will resolve to /images/foo.png
[07:45:13] sevenseacat: * bar.com/images/foo.png
[07:46:01] LiquidInsect: has joined #RubyOnRails
[07:46:04] Polysics: apparently resolves to the full path on disk /images/foo.png
[07:46:10] Polysics: no biggie, it's ONE image
[07:46:19] Polysics: and it will always live on the server anyways
[07:46:48] trosborn: has joined #RubyOnRails
[07:46:48] sevenseacat: definitely shouldnt resolve to that
[07:47:58] Polysics: oh wait, no, I was wrong
[07:48:09] Polysics: but it does have images in it which is not correct
[07:48:15] baweaver: has joined #RubyOnRails
[07:48:17] Polysics: I guess I need it to be in /images
[07:48:23] sevenseacat: well yeah, because it's *image*_url
[07:48:25] Polysics: (I had put it in the root)
[07:49:03] DoubleMalt: has joined #RubyOnRails
[07:49:18] solars: has joined #RubyOnRails
[07:49:33] blackmesa: has joined #RubyOnRails
[07:49:48] bricker1: has joined #RubyOnRails
[07:50:01] AzaToth: has joined #RubyOnRails
[07:50:07] pawnbox_: has joined #RubyOnRails
[07:50:48] manuelmesson: has joined #RubyOnRails
[07:52:39] mark1: has joined #RubyOnRails
[07:52:47] Polysics: oddly enough, GMail does not display the logo - but I think that is ssomething else as the email does have the correct path
[07:53:02] Polysics: all I want is this one logo to work so I can go back to my actual job :D
[07:53:27] darutoko: has joined #RubyOnRails
[07:53:49] LiquidInsect: has joined #RubyOnRails
[07:53:52] shibabu: has joined #RubyOnRails
[07:53:57] alex88: has joined #RubyOnRails
[07:54:09] krz: has joined #RubyOnRails
[07:55:46] teclator: has joined #RubyOnRails
[07:56:31] aganov: has joined #RubyOnRails
[07:56:39] tagrudev: has joined #RubyOnRails
[08:00:24] alex88_: has joined #RubyOnRails
[08:02:17] seank_: has joined #RubyOnRails
[08:02:47] Synthead: has joined #RubyOnRails
[08:03:28] Ergo: has joined #RubyOnRails
[08:04:10] alex88: has joined #RubyOnRails
[08:05:32] comrad: has joined #RubyOnRails
[08:10:12] trosborn: has joined #RubyOnRails
[08:12:51] ngr: has joined #RubyOnRails
[08:16:09] Maletor: has joined #RubyOnRails
[08:16:52] annlewis: has joined #RubyOnRails
[08:20:06] kitsuneyo: has joined #RubyOnRails
[08:22:53] adac: has joined #RubyOnRails
[08:24:04] p1k: has joined #RubyOnRails
[08:25:25] kimegede: has joined #RubyOnRails
[08:26:11] GragHarker: has joined #RubyOnRails
[08:27:24] pik: has joined #RubyOnRails
[08:27:39] MartinElvar: has joined #RubyOnRails
[08:28:40] Coldblackice: has joined #RubyOnRails
[08:37:48] __desmondhume: has joined #RubyOnRails
[08:39:40] artto: has joined #RubyOnRails
[08:40:32] quazimodo: has joined #RubyOnRails
[08:42:01] agoldboi: has joined #RubyOnRails
[08:44:58] manuelmesson: has joined #RubyOnRails
[08:45:55] marienz: has joined #RubyOnRails
[08:46:52] czerasz: has joined #RubyOnRails
[08:48:26] User458764: has joined #RubyOnRails
[08:50:20] blackmesa: has joined #RubyOnRails
[08:51:31] goldbug: has joined #RubyOnRails
[08:53:18] teclator: has joined #RubyOnRails
[08:53:36] scmx: has joined #RubyOnRails
[08:55:03] neanderslob_: has joined #RubyOnRails
[08:57:08] Rodya_: has joined #RubyOnRails
[08:58:42] vasilakisFiL: hi! I apply sorting in a join query and takes 5 second.. I remove sorting and it takes 0.1 seconds https://gist.github.com/vasilakisfil/ccaac4e791d46a646960
[08:58:52] vasilakisFiL: could anyone help me ? :)
[08:59:07] benlieb: has joined #RubyOnRails
[08:59:57] nfk|laptop: has joined #RubyOnRails
[09:02:31] mikecmpbll: has joined #RubyOnRails
[09:02:37] jsrn_: has joined #RubyOnRails
[09:03:42] moeabdol: has joined #RubyOnRails
[09:03:53] bruno-: has joined #RubyOnRails
[09:04:14] lipoqil: has joined #RubyOnRails
[09:08:01] annlewis: has joined #RubyOnRails
[09:08:35] kitsuneyo: has joined #RubyOnRails
[09:10:02] roxtrongo: has joined #RubyOnRails
[09:12:01] freezeve1: has joined #RubyOnRails
[09:12:18] defsdoor: vasilakisfil, work on your indexes to remove the srquential scans
[09:12:51] SPYGAME: has joined #RubyOnRails
[09:13:24] maokomioko: has joined #RubyOnRails
[09:13:42] defsdoor: vasilakisfil, this is your main problem -> Seq Scan on users (cost=0.00..43798.37 rows=1611457 width=36) (actual time=0.003..284.489 rows=1611457 loops=1)
[09:13:50] sevenseacat: that'll do it
[09:14:21] njero: has joined #RubyOnRails
[09:16:11] marr: has joined #RubyOnRails
[09:16:47] vasilakisFiL: defsdoor I am mostly interested on the second query that applies order + limit
[09:16:49] goldbug: Stick it all in a subquery with the 50 row limit in place, and then perform the ORDER BY on that resuls set. Otherwise you are sorting the whole result set and then limiting to the first 50.
[09:17:17] vasilakisFiL: the third query is shown because without limit (but with order) takes 0.7 seconds where as the second one (order + limit) takes 5 seconds
[09:17:28] vasilakisFiL: and all of them return 2 rows in result
[09:17:28] sevenseacat: goldbug: that seems like the opposite of what you would want
[09:17:44] sevenseacat: you do need to sort them all to know which are the first 50
[09:18:34] goldbug: Depends what he's looking for.
[09:18:52] yfeldblum: has joined #RubyOnRails
[09:18:55] sevenseacat: I presume they're looking for a properly ordered list
[09:19:05] sevenseacat: instead of an arbitrary 50 records
[09:19:08] vasilakisFiL: I am looking for all my approved followers ordered by username ASC
[09:19:34] defsdoor: vasilakisfil, the order alters the QO's approach
[09:20:12] defsdoor: vasilakisfil, sometimes you have to nudge it or take a different approach
[09:20:37] vasilakisFiL: when you say QO, you mean query planner ?
[09:20:38] goldbug: vasilakisfil: Do you want them in alphabetical order and then just limit to the first 50 results, or do you want any 50 results, but returned to you in alphabetical order?
[09:20:41] defsdoor: for example obtain a list of followers user ids and query users based on that
[09:20:46] vasilakisFiL: the first one
[09:20:53] defsdoor: vasilakisfil, query optimiser
[09:21:19] quazimodo: has joined #RubyOnRails
[09:21:44] weckl: has joined #RubyOnRails
[09:22:28] antgel: has joined #RubyOnRails
[09:22:56] goldbug: This may be faster: SELECT "users"."id" FROM (SELECT "users"."id" FROM "users" ORDER BY "users"."username" ASC) INNER JOIN "followings" ON "users"."id" = "followings"."user_id" WHERE "followings"."following_id" = 3198216 AND followings.state = 'approved'
[09:23:38] goldbug: With LIMIT 50 at the end to restrict to the first 50, obv.
[09:25:33] vigintas: has joined #RubyOnRails
[09:25:37] goldbug: (It may also be slower; depends a bit on your data.)
[09:25:58] pawnbox_: has joined #RubyOnRails
[09:26:01] vasilakisFiL: thank you for all your responses
[09:26:02] youngbaks: has joined #RubyOnRails
[09:26:24] vasilakisFiL: the dudes from #postgresql told me to run ANALYZE followings; and now I get it in 0.08 ms
[09:26:36] vasilakisFiL: something weird is happening with the statistics
[09:26:43] vasilakisFiL: I will investigate and let you know :)
[09:28:23] sevenseacat: they probably weren't all dudes, and might not appreciate being classified as such
[09:28:32] w0rd-driven: has joined #RubyOnRails
[09:28:44] emilkarl: has joined #RubyOnRails
[09:29:05] mghaig: has joined #RubyOnRails
[09:29:19] vasilakisFiL: dudes and dudettes :)
[09:29:22] goldbug: Girls can be dudes too, sevenseacat (;
[09:29:44] sevenseacat: vasilakisfil: cheers.
[09:30:22] vasilakisFiL: so I guess I should always say folks just in case
[09:30:35] flip_digits: has joined #RubyOnRails
[09:32:44] kitsuneyo: has joined #RubyOnRails
[09:33:09] MartinElvar: has joined #RubyOnRails
[09:33:12] njero: has joined #RubyOnRails
[09:34:23] waka: has joined #RubyOnRails
[09:34:23] w0rd-driven: has joined #RubyOnRails
[09:34:58] dkam: has joined #RubyOnRails
[09:35:05] MartinElvar: has joined #RubyOnRails
[09:36:00] trosborn: has joined #RubyOnRails
[09:36:20] MartinEl_: has joined #RubyOnRails
[09:37:17] MartinElvar: has joined #RubyOnRails
[09:37:52] goldbug: sevenseacat: I am reminded of a conversation I once had with a French teacher about the use of masculine and feminine endings of words. In English, I've become used to saying "actor" to mean male or female actors, because it describes the job rather than the gender of the person doing it. It is therefore more equal than the French "acteur" or "actrice", which implies that there is some
[09:37:52] goldbug: fundamental difference between these jobs. But, as the French teacher pointed out, lumping men and women under the masculine term is even more sexist.
[09:38:30] sevenseacat: indeed, there are problems with both.
[09:39:09] manuelmesson: has joined #RubyOnRails
[09:40:04] goldbug: Perhaps the answer is to refer to all male and female actors as actresses instead?
[09:40:19] norc_: goldbug: That actually is horrible.
[09:40:44] norc_: goldbug: Political correctness forces us to do this in Germany, which means if you want to address both you end up saying "actors and actresses" every time.
[09:41:14] norc_: goldbug: And since that becomes really annoying books start with an introduction, stating that they will use the male form for both, without any gender implications... it is just stupid.
[09:42:14] neanderslob: has joined #RubyOnRails
[09:42:34] pawnbox_: has joined #RubyOnRails
[09:42:40] sevenseacat: 'use the male form, without any gender implications'
[09:42:50] sevenseacat: hello, oxymoron
[09:44:25] goldbug: The thing is, it's not just political correctness. These things really do matter, even if only in subtly insidious ways. Language brainwashes us into patterns of thinking we're not even aware of.
[09:44:55] Grundell: has joined #RubyOnRails
[09:46:05] sevenseacat: maybe it looks a little different when you're part of the comfortable majority :)
[09:46:24] agoldboi: has left #RubyOnRails: ()
[09:46:39] norc_: sevenseacat: Indeed.
[09:46:57] goldbug: I remember being told a riddle at school. A man is driving with his son and has a terrible accident. The man is killed instantly, and the son is left in a critical condition. The son is taken to hospital and is prepped for surgery. The surgeon comes in, sees the boy, and says: "I'm sorry, I can't operate on this boy. He's my son."
[09:47:09] sevenseacat: I remember this one
[09:47:15] goldbug: And it took my class AGES to figure it out.
[09:47:21] goldbug: Because gender stereotyping.
[09:47:24] krz: has joined #RubyOnRails
[09:48:25] sevenseacat: norc_: when you're not, every time someone makes some kind of encompassing statement for the group that doesnt include you ('guys', 'dudes', etc.) it feels like just a little kick in the teeth
[09:48:26] blackmesa: has joined #RubyOnRails
[09:48:35] sevenseacat: death by a thousand cuts scenario
[09:49:00] goldbug: As a (fellow) Aussie, how do you feel about 'mate'?
[09:50:20] sevenseacat: thats an interesting one
[09:50:50] baweaver: has joined #RubyOnRails
[09:50:56] sevenseacat: not one I use often in all seriousness, except for the odd thing like 'hey mate you dropped this' but then I wouldnt say that to a woman, I'd probably say 'excuse me miss'
[09:52:08] adaedra: has left #RubyOnRails: ("Textual IRC Client: www.textualapp.com")
[09:56:15] wethu: has joined #RubyOnRails
[09:56:33] vigintas: has joined #RubyOnRails
[09:56:40] Ergo: has joined #RubyOnRails
[09:57:17] rodfersou: has joined #RubyOnRails
[09:59:03] lapide_viridi: has joined #RubyOnRails
[09:59:36] waka: has joined #RubyOnRails
[09:59:37] waka_: has joined #RubyOnRails
[09:59:40] Rodya_: has joined #RubyOnRails
[10:00:55] stamina: has joined #RubyOnRails
[10:01:12] TPBallbag: has joined #RubyOnRails
[10:02:23] noobda: has joined #RubyOnRails
[10:05:39] dtordable: has joined #RubyOnRails
[10:05:41] bruno-: has joined #RubyOnRails
[10:06:29] tagrudev: has joined #RubyOnRails
[10:06:53] waka: has joined #RubyOnRails
[10:07:07] owenjones: has joined #RubyOnRails
[10:07:09] nfk|laptop: has joined #RubyOnRails
[10:07:18] neanderslob: has joined #RubyOnRails
[10:10:48] dionysus69: has joined #RubyOnRails
[10:11:31] DEA7TH: has joined #RubyOnRails
[10:12:35] cesario: has joined #RubyOnRails
[10:13:44] Peg-leg: has joined #RubyOnRails
[10:15:00] dkam: has joined #RubyOnRails
[10:15:21] goldbug: Guys and gals (: I'm trying to get this little code example working: https://kernelgarden.wordpress.com/2014/02/26/dynamic-select-boxes-in-rails-4/ but I'm getting the error seen here: https://xcds-classicgoldbug.c9.io/welcome/index.html
[10:16:05] goldbug: Judging by the comments, others seem to have managed to get it working okay but I'm not really sure how.
[10:17:16] goldbug: The problem seems to be that :trip is throwing a NilClass: @city = City.find_by("id = ?", params[:trip][:city_id])
[10:17:54] annlewis: has joined #RubyOnRails
[10:18:05] norc_: goldbug: require it in your strong params if it needs to be present.
[10:18:26] norc_: Or access it with .try()
[10:20:46] mercerist: has joined #RubyOnRails
[10:23:59] mghaig: has joined #RubyOnRails
[10:26:43] Jasaka: has joined #RubyOnRails
[10:27:17] ibouvousaime: has joined #RubyOnRails
[10:27:49] njero: has joined #RubyOnRails
[10:30:27] goldbug: Ah, there was a route missing in the tutorial.
[10:30:42] waka: has joined #RubyOnRails
[10:31:51] dtordable: a question:
[10:32:03] flip_digits: has joined #RubyOnRails
[10:32:20] dtordable: how do you template a rails app?
[10:33:02] norc_: dtordable: What are you trying to do?
[10:33:16] manuelmesson: has joined #RubyOnRails
[10:34:00] dtordable: norc_: making it beautiful
[10:34:10] ldnunes: has joined #RubyOnRails
[10:34:39] blackmesa: has joined #RubyOnRails
[10:34:50] dtordable: what options do I have?
[10:34:53] norc_: dtordable: Enough beer will do the job.
[10:34:56] norc_: Can you be more precise?
[10:36:06] dtordable: been surfing around and found something called LESS
[10:36:50] dtordable: and a gem less-bootstrap
[10:37:31] goldbug: LESS is like SASS. Turbo-charged CSS.
[10:38:54] norc_: dtordable: I recommend starting off with what Rails ships with out of the box.
[10:39:06] dtordable: gem less-rails bootstrap
[10:39:53] dtordable: gem less-rails-bootstrap
[10:40:13] dtordable: that gem, norc_
[10:40:13] norc_: dtordable: So yeah. To answer your question: http://guides.rubyonrails.org/layouts_and_rendering.html
[10:40:16] goldbug: There's a bit on LESS in the (excellent) Rails primer by Michael Hartl.
[10:40:47] norc_: dtordable: You want to make things look better - then start by learning how Rails views/templates/assets work together. :)
[10:40:50] ahmedrefat: has joined #RubyOnRails
[10:41:18] dtordable: norc_: have less time hehe
[10:41:29] neanderslob: has joined #RubyOnRails
[10:41:31] norc_: dtordable: Make time or end up writing bad and unmaintainable code.
[10:43:54] goldbug: norc_: As it happens, that link is very useful to *me* right now - ta (:
[10:44:15] dtordable: have to make time....
[10:45:09] alb12: has joined #RubyOnRails
[10:47:14] roxtrongo: has joined #RubyOnRails
[10:47:16] kitsuneyo: has joined #RubyOnRails
[10:47:49] mikecmpbll: it appears that, running two rails apps on localhost and POSTing a form from app X to app Y, it's sending the cookie from app X in the POST request
[10:47:55] minver: has joined #RubyOnRails
[10:48:02] mikecmpbll: is this some fuckery to do with them both running on localhost?
[10:48:06] DEA7TH: Is this code vulnerable to XSS? Suppose that customer.nickname can be anything the attacker wishes. https://gist.github.com/VelizarHristov/313e9efe736c968de4d1
[10:48:10] mikecmpbll: obviously different ports.
[10:48:34] DEA7TH: Ignore what the map and reduce are precisely doing - the important part is to_json.
[10:48:55] norc_: mikecmpbll: Shouldn't.
[10:48:59] minver: My ActiveRecord Model includes two modules (concerns). My second module need methods from the first one to work properly. How can I require that dependency?
[10:49:30] wethu: has joined #RubyOnRails
[10:49:31] norc_: mikecmpbll: I correct myself.
[10:49:34] norc_: mikecmpbll: http://tools.ietf.org/html/rfc6265
[10:49:35] mikecmpbll: norc_: :( i swear it was working last week. been trying to debug why the session wasn't being found in the POST request and finally puts'd the cookie and noticed the key in the cookie is from the other app
[10:49:44] norc_: "Cookies do not provide isolation by port."
[10:50:01] DEA7TH: I tried to insert a username with " with its name, but .to_json escapes it and JS treats that properly. I don't know if to_json offers full XSS protection, though. Notice it's <%==.
[10:50:07] mikecmpbll: hmpf. that's interesting
[10:50:09] norc_: http://tools.ietf.org/html/rfc6265#section-8.5
[10:50:13] norc_: Is the subsection
[10:50:48] mikecmpbll: so i wonder how the browser is selecting the cookie
[10:51:11] mikecmpbll: this is going to make development a royal pain.
[10:51:53] baweaver: has joined #RubyOnRails
[10:53:25] mikecmpbll: http://stackoverflow.com/a/24252216/1520714 :'(
[10:53:41] ruurd: has joined #RubyOnRails
[10:53:51] seedinger: has joined #RubyOnRails
[10:54:44] norc_: DEA7TH: Yes it is.
[10:55:03] DEA7TH: norc_: what input can break it?
[10:55:44] DEA7TH: I also tried /* and //, but JS treats both as strings, not comments.
[10:55:52] norc_: DEA7TH: { foo: "</script><script>/*foo*/</script>" }
[10:57:41] norc_: DEA7TH: There is some settings like escape_html_entities_in_json in some modules, but I would have to look at the API doc myself here.
[10:58:19] norc_: DEA7TH: Also remember to use unobstrusive javascript whenever you can. :-)
[10:58:47] DEA7TH: norc_: it's fine, I always knew that unescaped content from DB is dangerous (I can rewrite it to escape it, but it will be ugly then :( ). It's just that some smartass told me the code isn't vulnerable and I couldn't find a way to exploit it
[10:58:52] norc_: Put data into data tags in your tree, not mixed in JSON. That is a safe and cleaner approach.
[10:59:26] DEA7TH: yeah that's probably better, I wrote the code a while ago
[11:00:42] norc_: Or depending on your design provide a controller/action with a json responder and fetch it seperately. But if you just need to provide data for your javascript, put it in data tags.
[11:00:45] norc_: They were added fir a reason.
[11:02:16] roxtrongo: has joined #RubyOnRails
[11:03:01] DEA7TH: yep I agree
[11:06:11] bruno-: has joined #RubyOnRails
[11:07:49] owenjones: has joined #RubyOnRails
[11:09:56] adaedra: has joined #RubyOnRails
[11:11:17] youngbaks: has joined #RubyOnRails
[11:13:35] htmldrum: has joined #RubyOnRails
[11:15:05] wethu: has joined #RubyOnRails
[11:15:47] dkam: has joined #RubyOnRails
[11:15:54] ruurd: has joined #RubyOnRails
[11:17:16] mghaig: has joined #RubyOnRails
[11:18:06] gurnoorinder: has joined #RubyOnRails
[11:18:39] annlewis: has joined #RubyOnRails
[11:19:30] oded: has joined #RubyOnRails
[11:20:28] rickmasta: has joined #RubyOnRails
[11:20:52] koprom: has joined #RubyOnRails
[11:21:14] Synthead: has joined #RubyOnRails
[11:22:38] artto: has joined #RubyOnRails
[11:23:43] njero: has joined #RubyOnRails
[11:25:34] Pazician: has joined #RubyOnRails
[11:26:24] lapideviridi: has joined #RubyOnRails
[11:27:01] Megamos: has joined #RubyOnRails
[11:27:18] Lapide: has joined #RubyOnRails
[11:27:28] manuelmesson: has joined #RubyOnRails
[11:28:58] norc_: Any reason I should not be using FactoryGirl to seed my development environment?
[11:32:37] flip_digits: has joined #RubyOnRails
[11:34:27] n1ck7: has joined #RubyOnRails
[11:34:41] trosborn: has joined #RubyOnRails
[11:36:43] tbuehlmann: norc_, I don't have a problem with that
[11:38:10] norc_: tbuehlmann: Josh Clayton (factory_girl maintainer) recommends against it for several reasons though.
[11:38:49] bruno-_: has joined #RubyOnRails
[11:39:00] Ergo^: has joined #RubyOnRails
[11:40:24] tbuehlmann: like everything else, pros and cons. if it works for you, go for it
[11:41:02] blackhuey: has joined #RubyOnRails
[11:41:12] manuelmesson: has joined #RubyOnRails
[11:44:19] beast_: has joined #RubyOnRails
[11:46:21] daivyk: has joined #RubyOnRails
[11:47:36] Rodya_: has joined #RubyOnRails
[11:49:12] mostlybadfly: has joined #RubyOnRails
[11:50:09] frzng: has joined #RubyOnRails
[11:51:48] dkam: has joined #RubyOnRails
[11:52:35] baweaver: has joined #RubyOnRails
[11:54:50] Jasaka: has joined #RubyOnRails
[11:56:01] emilkarl: has joined #RubyOnRails
[11:56:30] seank_: has joined #RubyOnRails
[11:56:37] chipotle: has joined #RubyOnRails
[11:59:40] dtordable: norc_: this is complicated...
[12:02:18] dllnl: has joined #RubyOnRails
[12:02:25] norc_: dtordable: It is not difficult to learn, but investing time into understanding how everything fits together and how to utilize rails pays off in the end.
[12:03:19] kimegede: has joined #RubyOnRails
[12:04:37] goldbug: The learning curve is pretty steep for those of us who haven't a) developed web applications before and b) are unfamiliar with OOP.
[12:04:57] goldbug: But the documentation and community is fantastic, which makes it much easier.
[12:05:50] jsrn_: has joined #RubyOnRails
[12:06:07] dkam: has joined #RubyOnRails
[12:06:35] dtordable: ACTION takes air...
[12:06:41] elaptics: norc_: if you have a need for seed data then I tend to use seed_fu. If you're really asking about fake data for dev purposes then I'd use faker and write some scripts to generate the data
[12:07:19] dtordable: have to learn then norc_
[12:09:37] goldbug: dtordable, if you are starting out I really recommend the Hartl tutorial, which is all available free online: https://www.railstutorial.org/book
[12:10:20] dtordable: yeah, im there
[12:10:54] dtordable: that and the rails guides
[12:11:26] seedinger: has joined #RubyOnRails
[12:11:57] mghaig: has joined #RubyOnRails
[12:12:34] norc_: elaptics: The most annoying thing for my seeds is association chains. I really don't want to write down fixtures manually and keeping track of every association.
[12:12:55] norc_: That is one thing that makes FactoryGirl neat.
[12:14:09] flip_digits: has joined #RubyOnRails
[12:14:43] goldbug: dtordable: Yes, they are also excellent. Work through the Hartl material (using Cloud9 as a dev environment like he suggests) and every time you come to something you don't understand, have a look for a Rails guide.
[12:15:08] goldbug: That's more or less what I'm doing, anyway!
[12:15:29] goldbug: (If you're still stuck, Google the problem. If you're *still* stuck, ask here.)
[12:16:33] dtordable: have to generate models
[12:17:23] The_Ball: has joined #RubyOnRails
[12:17:30] dtordable: what is the english for a blog entry?
[12:17:32] elaptics: norc_: there's no reason you can't use FG to do that in those scripts but from a testing perspective you tend to only add bare minimum data to the factories so depends whether you would still need to add more data anyway to have good data from a dev perspective?
[12:18:00] elaptics: dtordable: that's fairly common
[12:18:25] elaptics: Post, BlogPost, BlogEntry
[12:18:40] elaptics: generally depends on what seems right for the app :)
[12:19:20] dtordable: I can choose what I want?
[12:19:35] annlewis: has joined #RubyOnRails
[12:19:39] manuelmesson: has joined #RubyOnRails
[12:21:27] dtordable: interesting
[12:22:07] dtordable: even in my family language?
[12:22:13] Synthead: has joined #RubyOnRails
[12:22:20] cajone: has joined #RubyOnRails
[12:22:34] dtordable: this seems powerful...
[12:23:05] elaptics: dtordable: yes, but bear in mind that rails convention is to pluralize and singularize so you may need to add some specific inflections if your language doesn't follow english rules for pluralization
[12:23:28] elaptics: dtordable: e.g. you have a BlogPost model then you need to create a table called blog_posts
[12:24:04] dtordable: thought that already elaptics ...
[12:25:46] wethu: has joined #RubyOnRails
[12:27:22] dkam: has joined #RubyOnRails
[12:28:29] ebbflowgo: has joined #RubyOnRails
[12:30:04] kitsuneyo: has joined #RubyOnRails
[12:30:53] krz: has joined #RubyOnRails
[12:33:23] goldbug: Can I check the logic flow of something to see if my understanding is correct? I think this is what's happening in this dynamic dropdown example (https://kernelgarden.wordpress.com/2014/02/26/dynamic-select-boxes-in-rails-4/): Browser gets welcome/index.html. This renders a form (:trip) with two dropdowns, ids: #countries_select and #cities_select. It also runs the CoffeeScript
[12:33:23] goldbug: /javascripts/welcome.js.coffee.
[12:34:32] platzhirsch: has joined #RubyOnRails
[12:35:27] dtordable: has joined #RubyOnRails
[12:35:52] indignatio: has joined #RubyOnRails
[12:37:19] goldbug: welcome.js.coffee listens for a change to the dropdown with id #countries_select. When this occurs, it retrieves /welcome/update_cities.js.coffee and passes it the #countries_select id. /welcome/update_cities.js.coffee then empties the value of #cities_select (deletes the dropdown box?) and renders a partial called /cities/_city.html.erb, which renders a new dropdown box with the cities
[12:37:19] goldbug: belonging to Country in it.
[12:38:06] goldbug: Does that all sound correct? I need to know I've understood this before I start adapting it for my own purposes!
[12:40:19] dionysus69: will this work? if I have product = Product.uniq.pluck(:category) _ in controller > index action and in index.erb product.sort? since pluck returns array I must be able to use sort on it but it outputs error comparison of NilClass with String failed
[12:41:13] darrencauthon: has joined #RubyOnRails
[12:43:50] syath: has joined #RubyOnRails
[12:43:55] dionysus69: or do they need to be instance variables with @product?
[12:48:16] Megamos: has joined #RubyOnRails
[12:48:34] TiuTalk: has joined #RubyOnRails
[12:48:42] Rodya_: has joined #RubyOnRails
[12:48:46] kitsuneyo: which rails form helper lets the user select from options OR type and save their own string?
[12:48:58] Megamos: has joined #RubyOnRails
[12:52:22] kitsuneyo: also, have any of you guys tried this cool looking select2 plugin? it's a remote data source for locations that uses google maps api: https://github.com/stephjang/placecomplete
[12:52:45] krz: has joined #RubyOnRails
[12:53:32] hardtail: has joined #RubyOnRails
[12:53:34] baweaver: has joined #RubyOnRails
[12:55:26] dhjondoh: has joined #RubyOnRails
[12:56:09] flip_digits: has joined #RubyOnRails
[12:57:11] htmldrum: has joined #RubyOnRails
[12:57:11] seank_: has joined #RubyOnRails
[12:57:35] darrencauthon: has joined #RubyOnRails
[12:59:51] manuelmesson: where i can find rails jobs?
[13:00:47] TiuTalk: @manuelmesson http://careers.stackoverflow.com/jobs/tag/ruby-on-rails | https://weworkremotely.com/
[13:00:59] ruurd: has joined #RubyOnRails
[13:01:09] njero: has joined #RubyOnRails
[13:01:23] manuelmesson: the problem with that is that everything is for seniors :'(
[13:03:01] lacrymology: has joined #RubyOnRails
[13:03:09] dkam: has joined #RubyOnRails
[13:05:01] t4nkD: has joined #RubyOnRails
[13:06:07] mghaig: has joined #RubyOnRails
[13:06:13] dkam: has joined #RubyOnRails
[13:07:21] Cervajz: has joined #RubyOnRails
[13:07:32] jkamenik: has joined #RubyOnRails
[13:08:22] Cervajz_: has joined #RubyOnRails
[13:09:34] owenjones: has joined #RubyOnRails
[13:09:54] dllnl: has joined #RubyOnRails
[13:10:17] neohunter: has joined #RubyOnRails
[13:10:56] neohunter: How i can know if i'm on a namespaced rute.
[13:11:08] neohunter: i was using params[:admin] but seems like is not longer working?
[13:11:37] rodfersou: has joined #RubyOnRails
[13:12:25] dkam: has joined #RubyOnRails
[13:12:47] qejk: has joined #RubyOnRails
[13:13:53] lapide_viridi: has joined #RubyOnRails
[13:14:25] njero: has joined #RubyOnRails
[13:16:38] darkxploit: has joined #RubyOnRails
[13:19:41] darkxploit: hello guys. After having install ruby with rvm i noticed that my ruby is version 2.2.1p85 whereas on the official ruby website its 2.2.3 How do i update to latest ?
[13:19:59] kitsuneyo: has joined #RubyOnRails
[13:20:11] annlewis: has joined #RubyOnRails
[13:20:49] bricker: has joined #RubyOnRails
[13:22:21] goldbug: What's with the two sets of curly braces at the end here? <%= f.select :city_id, options_for_select(@cities.collect { |city| [city.name.titleize, city.id] }, 0), {}, { id: 'cities_select' } %>
[13:22:33] seank_: has joined #RubyOnRails
[13:23:35] maxx88_: has joined #RubyOnRails
[13:23:58] lapideviridi: has joined #RubyOnRails
[13:26:26] leehambley: has joined #RubyOnRails
[13:26:56] rvanlieshout: goldbug: http://api.rubyonrails.org is your friend
[13:27:04] rvanlieshout: http://api.rubyonrails.org/classes/ActionView/Helpers/FormBuilder.html#method-i-select
[13:28:13] valeriansaliou: has joined #RubyOnRails
[13:28:24] seedinger: has joined #RubyOnRails
[13:30:16] neohunter: how i can create a get route that is processed by a controller in a namesapce?
[13:30:24] neohunter: get '/admin' => 'admin/application#dashboard'
[13:30:44] htmldrum: has joined #RubyOnRails
[13:30:54] tvw: has joined #RubyOnRails
[13:30:55] alexcid: has joined #RubyOnRails
[13:32:06] goodcodeguy: has joined #RubyOnRails
[13:33:51] dionysus69: this would be called if select dropdown was submited into form with param value of :category, would this work? scope :category, -> {where(category: params[:category])}
[13:34:56] lapide_viridi: has joined #RubyOnRails
[13:35:18] ruurd: has joined #RubyOnRails
[13:35:20] njero: has joined #RubyOnRails
[13:35:25] dstarh: has joined #RubyOnRails
[13:37:58] annlewis: has joined #RubyOnRails
[13:39:26] uris: has joined #RubyOnRails
[13:39:44] clocKwize: has joined #RubyOnRails
[13:40:50] sevenseacat: has joined #RubyOnRails
[13:41:26] n1ck7: When specifying a layout for a controller, is it possible to have it be relative to a sub directory of views? (not the layouts folder itself) At the moment rails looks in views/layouts - but I've moved all my layouts to views/classic/layouts
[13:42:05] n1ck7: How can I tell the layout method to look inside of classics?
[13:42:31] sankaber: has joined #RubyOnRails
[13:43:03] goldbug: Try using "/views/classic/layouts"
[13:43:46] goldbug: render layout: "/views/classic/layouts"
[13:43:59] flip_digits: has joined #RubyOnRails
[13:44:18] dtordable: has joined #RubyOnRails
[13:44:21] kitallisii: has joined #RubyOnRails
[13:45:07] aamax: has joined #RubyOnRails
[13:46:03] vigintas: has joined #RubyOnRails
[13:46:22] njero: has joined #RubyOnRails
[13:46:23] henry1: has joined #RubyOnRails
[13:47:00] roxtrongo: has joined #RubyOnRails
[13:48:13] manuelmesson: has joined #RubyOnRails
[13:48:46] ibouvousaime: has joined #RubyOnRails
[13:48:58] Pazician: has joined #RubyOnRails
[13:49:22] Rodya_: has joined #RubyOnRails
[13:49:34] c355E3B: has joined #RubyOnRails
[13:49:47] n1ck7: goldbug, Thanks for the suggestion, I want to apply this to the entire controller though with the "layout" method. Any idea how to do it through this?
[13:50:01] kitsuneyo: dumb question time. is this json? https://gist.github.com/kitsuneyo/4c53162e76a6c1c12011 is it really easy to save data like this to activemodel?
[13:51:57] dviola: has joined #RubyOnRails
[13:53:04] krz: has joined #RubyOnRails
[13:54:18] centrx: has joined #RubyOnRails
[13:54:19] baweaver: has joined #RubyOnRails
[13:54:55] blackmesa: has joined #RubyOnRails
[13:55:14] pik: has joined #RubyOnRails
[13:55:20] goldbug: n1ck7: Beyond my knowledge, I'm afraid, but I suspect it'll involve overriding the default behaviour of render.
[13:55:25] matthias_: has joined #RubyOnRails
[13:55:26] dionysus69: please anyone tell me what might be wrong with this chain https://gist.github.com/webzorg/210a5d95f1bc305fc204 ? I am pass select drop down parameter to controller and then using scope method with where sql being the param intself
[13:56:02] a1fa: hm. "2015/11/01 00:00:00".to_time.strftime('%m/%Y') returns "10/2015"
[13:57:27] centrx: dionysus69, How do you know there is anything wrong with it?
[13:57:32] centrx: dionysus69, It looks like the scope expects a parameter?
[13:57:39] nertzy: has joined #RubyOnRails
[13:58:25] a1fa: removing .to_time fixes my problem
[13:58:36] manuelmesson: has joined #RubyOnRails
[13:58:41] artto_: has joined #RubyOnRails
[13:58:56] Grundell_: has joined #RubyOnRails
[13:59:24] acti0nman: has joined #RubyOnRails
[13:59:38] mghaig: has joined #RubyOnRails
[14:00:04] RegulationD: has joined #RubyOnRails
[14:01:43] sankaber: has joined #RubyOnRails
[14:01:50] manuelmesson: has joined #RubyOnRails
[14:01:51] jamon_: has joined #RubyOnRails
[14:02:05] xardion_: has joined #RubyOnRails
[14:02:43] atomical: has joined #RubyOnRails
[14:03:53] dionysus69: centrx: ruby was confusing at this point, I was confused between scope methods and helper methods, this way rails is confusing for me :\ worked after I passed parameter category(params[:category]) to the controller
[14:05:07] annlewis: has joined #RubyOnRails
[14:06:50] dionysus69: what are other ways to pass this model to this options_for_select? <%= select_tag :category, options_for_select(Product.uniq.pluck(:category)), include_blank: "Category", class: "form-control"%> pluck returns array but when I do shift on it to remove first index, it says undefined method `map' for nil:NilClass
[14:07:10] manuelmesson: has joined #RubyOnRails
[14:07:11] smathy: has joined #RubyOnRails
[14:07:28] rvanlieshout: where are you using shift on it?
[14:08:04] dionysus69: because first value is empty, its just one space bar, I want only products that are unique and have some text in it
[14:08:27] rvanlieshout: then fix that in your Product.uniq.pluck-statement
[14:08:28] rvanlieshout: using a where
[14:08:56] youngbaks: has joined #RubyOnRails
[14:10:16] owenjones: has joined #RubyOnRails
[14:10:45] dionysus69: I dont get what do you mean I should fix
[14:11:12] rvanlieshout: how did you write Product.uniq.pluck(:category) then?
[14:11:56] manuelmesson: has joined #RubyOnRails
[14:12:07] mghaig: has joined #RubyOnRails
[14:12:33] scmx: has joined #RubyOnRails
[14:14:42] syath: has joined #RubyOnRails
[14:14:50] dionysus69: I did this Product.uniq.pluck(:category).shift --- produces this error undefined method `map' for nil:NilClass
[14:15:19] umgrosscol: has joined #RubyOnRails
[14:15:34] bricker: has joined #RubyOnRails
[14:15:59] c355E3B: has joined #RubyOnRails
[14:15:59] Ergo^: has joined #RubyOnRails
[14:15:59] Caius: has joined #RubyOnRails
[14:15:59] sye: has joined #RubyOnRails
[14:15:59] iateadonut: has joined #RubyOnRails
[14:15:59] eggoez: has joined #RubyOnRails
[14:15:59] Hates_: has joined #RubyOnRails
[14:15:59] apotry: has joined #RubyOnRails
[14:16:10] BradenBraden: has joined #RubyOnRails
[14:16:47] centrx: dionysus69, Is that the whole error message?
[14:17:15] centrx: dionysus69, Doesn't shift return the element removed?
[14:17:31] centrx: dionysus69, Doesn't shift remove the first element, which may not be the 'blank' element?
[14:17:32] dionysus69: yes, it seems it doesnt see returned array?
[14:17:37] sdwrage: has joined #RubyOnRails
[14:17:40] eggoez: has joined #RubyOnRails
[14:18:00] centrx: dionysus69, options_for_select expects an array/array-like object right? Not a single element
[14:18:13] dionysus69: yes I want to return array with first index removed, either first or last doesnt matter I ll fix it later
[14:18:43] dionysus69: hmm yes so how do I return array - 1 item instead of that removed item
[14:19:30] DanielN: has joined #RubyOnRails
[14:19:33] ThePendulum: has joined #RubyOnRails
[14:19:41] BradenBraden: i are a little stuck. when i login with devise, it automatically redirects me to /users/null (for some reason) and i have used the code from the devise wiki to override the 'after_sign_in_path_for' path to redirect to root_path in my application_controller but alas, no cigar. always back to /users/null.... and why null? i dont have a users controller in my main_app. could that be the problem?
[14:20:22] ThePendulum: Does anyone know of a channel where rail devs can offer their services?
[14:21:39] diego1: has joined #RubyOnRails
[14:22:25] BradenBraden: i've also tried creating a registrations_controller which inherits from devise::registrationscontroller and put it in there (saw that on the devise wiki too) but still no result
[14:23:39] Kedric: has joined #RubyOnRails
[14:24:03] diego1: has joined #RubyOnRails
[14:24:20] Stevefaust: has joined #RubyOnRails
[14:25:39] The_Phoenix: has joined #RubyOnRails
[14:26:06] Kedric: Hey all, having a bit of a problem with devise ajax(ish) requests. I have sessions_controller subclass rendering js(not json), and it works perfectly except that no notices are set on login failure. Any idea on how to get devise to set notices? https://gist.github.com/ferrettmerr/358be476a2bf52caec35
[14:27:01] Stevefaust: has joined #RubyOnRails
[14:27:06] Sweeper: has left #RubyOnRails: ()
[14:27:07] Megamos: has joined #RubyOnRails
[14:27:28] doodlehaus: has joined #RubyOnRails
[14:28:12] bruno-: has joined #RubyOnRails
[14:29:34] annlewis: has joined #RubyOnRails
[14:29:51] elaptics: ThePendulum: offer in what way?
[14:30:32] Stevefaust: has joined #RubyOnRails
[14:30:39] ruurd: has joined #RubyOnRails
[14:30:51] gremly: has joined #RubyOnRails
[14:31:00] kitsuneyo: has joined #RubyOnRails
[14:31:10] infamos: has joined #RubyOnRails
[14:31:51] mghaig: has joined #RubyOnRails
[14:32:04] Guest53: has joined #RubyOnRails
[14:32:29] ThePendulum: elaptics: well, they're looking for remote freelance work
[14:32:37] ThePendulum: I pointed them to #css-lance but the channel is absolutely dead
[14:33:45] ortsac: has joined #RubyOnRails
[14:34:43] elaptics: irc probably isn't the place. There's plenty of websites that cater to that sort of market
[14:34:43] stannard: has joined #RubyOnRails
[14:34:48] BradenBraden: nevermind. i are a nooblet
[14:35:51] elaptics: ThePendulum: there's potential that if you were here as a regular then over time you might get some other dev shop contact you through a dev on here... I've had a couple of approaches over the years
[14:35:54] centrx: ThePendulum, Go online for remote work: We Work Remotely, Stack Overflow Careers, Upwork, Authentic Jobs, Angel List, HackerNews, Craigslist
[14:36:20] ThePendulum: elaptics: Yep, exactly what happened to me as well
[14:37:47] ThePendulum: Unfortunately for him he'll have to start from scratch :P
[14:38:08] ThePendulum: dviola: I see you're here already
[14:38:33] iateadonut: has joined #RubyOnRails
[14:38:39] ortsac: hello, can anyone help me with this question I posted on SO https://stackoverflow.com/questions/33651271/form-rackutilskeyspaceconstrainedparams-and-authenticity-token
[14:38:43] ThePendulum: I'll leave you guys be and head back to my JS cave
[14:38:44] ThePendulum: has left #RubyOnRails: ()
[14:39:15] ortsac: I'm having troubles with forms and nested form fields!!
[14:39:16] centrx: I knew they lived in caves
[14:40:07] a1fa: why does DateTime.now.beginning_of_month return December?
[14:40:40] ortsac: here it returns 1 of november
[14:40:41] artto: has joined #RubyOnRails
[14:41:47] desmondhume: has joined #RubyOnRails
[14:41:50] adaedra: what does DateTime.now returns for you?
[14:41:58] DanielN: has joined #RubyOnRails
[14:42:39] a1fa: i see the problem
[14:42:43] a1fa: its returning 6AM
[14:42:49] a1fa: instead of 00:00:00
[14:42:50] minver: If I do "mount Partner => '/partner(s)', as: :partner" in my routes file then partner_path will return "/partners". Is it possible to change that to "/partner"? I don't want the optional char to be included
[14:43:09] elaptics: a1fa: try Time.current
[14:43:29] elaptics: a1fa: you should always use .current in Rails and then it'll be timezone aware
[14:44:18] ortsac: guys can anyone try to help me with this please https://stackoverflow.com/questions/33651271/form-rackutilskeyspaceconstrainedparams-and-authenticity-token
[14:44:26] a1fa: k, trying now
[14:44:53] a1fa: elaptics: awesome, that worked
[14:45:53] elaptics: a1fa: cool, same applies to Date.today - use Date.current
[14:46:41] ortsac: elaptics: can you try to help me please :)
[14:49:04] elaptics: ortsac: can't you use actual objects and use the form builders instead of just the plain form helpers?
[14:49:19] elaptics: then rails will create the right things for you - I can't see why that wouldn't work
[14:50:33] Rodya_: has joined #RubyOnRails
[14:51:15] polishdub: has joined #RubyOnRails
[14:51:35] ortsac: you can you use an array of actual objects?
[14:51:48] ortsac: lets say I have a project
[14:52:12] roxtrongo: has joined #RubyOnRails
[14:52:12] ortsac: you can do form_for @project....
[14:52:12] simplyia_: has joined #RubyOnRails
[14:52:21] ortsac: but if you have multiple project
[14:52:33] ortsac: you can't do form_for @projects...
[14:52:41] dtordable: seen a youtube video of a man creating a blog in 15 minutes
[14:53:03] dtordable: thinks were so easy...
[14:53:15] tbuehlmann: that's about 7 years ago, right?
[14:53:18] simplyianm: has joined #RubyOnRails
[14:53:31] ortsac: that's why I used plain form helpers
[14:53:37] tbuehlmann: mh, have to be more years
[14:53:38] lacrymology: has joined #RubyOnRails
[14:54:11] lacrymology: has joined #RubyOnRails
[14:54:21] elaptics: ortsac: you're trying to update several "top level" objects and their associated data at once?
[14:55:02] baweaver: has joined #RubyOnRails
[14:56:04] ortsac: elaptics: it's more or less like this http://vicfriedman.github.io/blog/2015/07/18/create-multiple-objects-from-single-form-in-rails/
[14:56:14] elaptics: ortsac: ah ok you'll need to do it like you're doing it then. I would cheat and just get the form working for one object first and check the generated html source to see how rails named it all, then extrapolate that out to the top level one being multiple too
[14:56:22] ortsac: but lets say that the puppies have some nested objects also
[14:56:46] Spami: has joined #RubyOnRails
[14:57:14] Foss_: has joined #RubyOnRails
[14:57:16] elaptics: ortsac: strong_params can be dealt with, if that's part of your issue - you just have to declare all the nested array bits properly
[14:58:15] ortsac: my problem is not with params... it's with the form submission. I guess the problem is with the name of the second nested fields
[14:58:16] Palsson_: has joined #RubyOnRails
[14:58:26] griffindy: has joined #RubyOnRails
[14:58:55] ortsac: elaptics: I will try what you said and see the rails naming and after try to copy it
[14:59:19] ortsac: because when I submit the form without the nested attributes everything works fine
[14:59:35] ortsac: the problem appears when I add the nested fields
[15:02:18] corehook: has joined #RubyOnRails
[15:02:59] platzhirsch: Is there a handy method to add additional conditions to a SQL string in Rails?
[15:03:06] s2013: has joined #RubyOnRails
[15:03:08] corehook: has joined #RubyOnRails
[15:03:16] platzhirsch: I found AR::Base.add_conditions! but that's deprecated
[15:03:31] corehook: hi huys! i have trouble with redirect_to. I want redirect to other subdomain.
[15:03:38] corehook: redirect_to new_user_session_path(subdomain: 'other', params: {a: :b})
[15:03:47] baweaver: has joined #RubyOnRails
[15:04:01] corehook: it not redirect to other.lvh.me , but params?a=b passed normally
[15:04:14] corehook: whats wrong ? mb its development env trouble ?
[15:06:27] flashpoint9: has joined #RubyOnRails
[15:06:39] voker57: has joined #RubyOnRails
[15:07:10] s2013: morning.. got a question.. trying to figure out how to best deal with this mess. basically we have 5-6 types of orders.. and i want to create a batch so that everytime we process the orders we can assign bunch of these orders into a batch.. issue is each order type is its own model.. so im thinking would sti be the best solution
[15:07:39] TPBallbag: has joined #RubyOnRails
[15:07:54] MartinElvar: has joined #RubyOnRails
[15:08:16] s2013: or other way im thinking is that batch has many (all the order types) and the order belongs ot a batch
[15:09:05] Tempesta: has joined #RubyOnRails
[15:09:16] mghaig: has joined #RubyOnRails
[15:09:17] platzhirsch: What is the authenticity_token for the form based on? User session and form content? Because we're modifying the form with jQuery, does this affect it?
[15:09:23] Tempesta: has joined #RubyOnRails
[15:09:29] lindii_: has joined #RubyOnRails
[15:09:39] Tempesta: has joined #RubyOnRails
[15:09:55] Tempesta: has joined #RubyOnRails
[15:10:10] lacrymology: has joined #RubyOnRails
[15:10:13] Tempesta: has joined #RubyOnRails
[15:11:02] owenjones: has joined #RubyOnRails
[15:11:18] HalcyonicStorm: has joined #RubyOnRails
[15:11:55] artto: has joined #RubyOnRails
[15:12:26] Guest53: has joined #RubyOnRails
[15:12:49] lacrymology: has joined #RubyOnRails
[15:12:56] dionysus69: has joined #RubyOnRails
[15:13:07] hashpuppy: has joined #RubyOnRails
[15:13:37] simplyianm: has joined #RubyOnRails
[15:13:39] MartinElvar: has joined #RubyOnRails
[15:13:48] platzhirsch: ah nvm, we removed it, that's why
[15:14:03] njero: has joined #RubyOnRails
[15:14:05] artto_: has joined #RubyOnRails
[15:14:09] manuelmesson: has joined #RubyOnRails
[15:14:10] dalpo: has joined #RubyOnRails
[15:14:26] spiman: has joined #RubyOnRails
[15:14:52] simplyianm: has joined #RubyOnRails
[15:15:09] Guest54901: has joined #RubyOnRails
[15:16:41] bruno-: has joined #RubyOnRails
[15:18:59] Kedare: has joined #RubyOnRails
[15:19:31] bricker: has joined #RubyOnRails
[15:20:07] dtordable: has joined #RubyOnRails
[15:20:43] corehook: redirect_to new_user_session_url(host: request.domain)
[15:20:58] corehook: i think this work...deploy to production for chec
[15:21:36] spiman_: has joined #RubyOnRails
[15:21:45] hardtail: has joined #RubyOnRails
[15:23:41] goldbug: Should I be able to define the following as a global constant in config/initializers/constants.rb? LANGUAGES = I18nData.languages.sort_by{|key, value| value}
[15:23:57] goldbug: I tried it but getting NilClass returns.
[15:24:12] ruurd: has joined #RubyOnRails
[15:24:44] emilkarl: has joined #RubyOnRails
[15:25:23] manuelmesson: has joined #RubyOnRails
[15:25:23] goldbug: Do I need to require constants.rb? Is that the problem?
[15:25:58] user1138: has joined #RubyOnRails
[15:31:17] user1138: has joined #RubyOnRails
[15:31:56] jkamenik1: has joined #RubyOnRails
[15:32:53] corehook: you not need
[15:33:03] corehook: constants will included automatically
[15:33:19] corehook: try puts "test" in constants.rb and start server
[15:33:19] SteenJobs: has joined #RubyOnRails
[15:34:05] rromanchuk: has joined #RubyOnRails
[15:37:39] goldbug: corehook: That's what I thought. At any rate, it looks like application-wide constants/variables are a Bad Idea.
[15:38:09] tbuehlmann: goldbug, why?
[15:38:41] dtordable: has joined #RubyOnRails
[15:38:49] corehook: corehook: ~ # head /projects/ZeroSap/sapsaas/config/initializers/constants.rb
[15:38:52] corehook: module STATIC
[15:38:52] corehook: COMMENTABLE_OBJECTS = [:news_items, :shares, :products]
[15:38:56] loc22: has joined #RubyOnRails
[15:39:17] corehook: ZERODAY::STATIC::COMMENTABLE_OBJECTS
[15:39:31] annlewis: has joined #RubyOnRails
[15:39:45] dtordable: has joined #RubyOnRails
[15:39:56] loc22: has joined #RubyOnRails
[15:40:37] tenderlove: has joined #RubyOnRails
[15:40:49] arthurix: has joined #RubyOnRails
[15:40:57] goldbug: tbuehlmann: For reasons I don't fully understand, and therefore won't mess with.
[15:41:15] goldbug: Something about unit testing.
[15:41:21] loc22: Hi guy! Have any of you used rails-api before? I wonder if I use it, if I can do in the same project an admin backend?
[15:41:48] tubbo: loc22: why do you want to use rails-api?
[15:42:21] teclator: has joined #RubyOnRails
[15:43:19] loc22: tubbo: Just for curiosity. I have build a lot of apis before, but using noraml rails projects because I needed web views also. There is no point in using rails-api if I need that too, right?
[15:43:54] tubbo: the answer is yes, but all rails-api really does is exclude some modules from being included into ApplicationController. i'd say adding rails-api is somewhat of a performance tuning option rather than a way to design your application
[15:44:09] ddv: full rails is still usefull even with api only apps
[15:44:33] RegulationD: has joined #RubyOnRails
[15:45:30] erbse: has left #RubyOnRails: ()
[15:47:25] Palsson_: has joined #RubyOnRails
[15:47:39] Fire-Dragon-DoL: has joined #RubyOnRails
[15:47:55] MartinElvar: has joined #RubyOnRails
[15:48:05] alex88: has joined #RubyOnRails
[15:49:05] ahmgeek: has joined #RubyOnRails
[15:49:08] EminenceHC: has joined #RubyOnRails
[15:49:20] AnomalousBit: has joined #RubyOnRails
[15:50:06] ahmgeek: hey folks, I have this https://gist.github.com/ahmgeek/5f8491723054054bffcf in a main form_for, so I only want to add 8 Images, the problem is where I want to edit this page, how can I bind images that got uploaded to this form ?
[15:51:53] Rodya_: has joined #RubyOnRails
[15:53:51] annlewis: has joined #RubyOnRails
[15:55:02] ahmgeek: anyone anyone anyone anyone ??
[15:56:33] platzhirsch: has left #RubyOnRails: ()
[16:01:03] ahmgeek: has joined #RubyOnRails
[16:01:25] vigintas: has joined #RubyOnRails
[16:01:34] arthurix_: has joined #RubyOnRails
[16:02:32] User458764: has joined #RubyOnRails
[16:02:56] adre: has joined #RubyOnRails
[16:03:38] s2013: ahmgeek http://stackoverflow.com/questions/11066108/cant-show-an-image-in-my-form-view-in-a-nested-model-edit-page
[16:03:40] s2013: this might help you
[16:03:46] dllnl: has joined #RubyOnRails
[16:04:05] bmalum: has joined #RubyOnRails
[16:04:15] loc22_: has joined #RubyOnRails
[16:04:37] Rodya_: has joined #RubyOnRails
[16:07:27] a1fa: ugh.. sort_select is frustrating
[16:07:34] a1fa: its not taking html options
[16:08:44] dllnl: has joined #RubyOnRails
[16:09:32] Grundell: has joined #RubyOnRails
[16:09:57] corioliss: has joined #RubyOnRails
[16:10:01] mary5030: has joined #RubyOnRails
[16:10:02] loincloth: has joined #RubyOnRails
[16:10:43] roxtrongo: has joined #RubyOnRails
[16:10:55] loincloth: if i have a corrupt schema_migrations table(i.e. it's missing version entries), is the best way to fix it to find some way to insert those versions on my own?
[16:11:09] loincloth: or is there any sort of standard cleanup task or something like that?
[16:11:17] lacrymology: in my rspec specs
[16:11:19] lacrymology: I've got a bunch of calls to `let!` that create objects on the DB I need for my tests I have to create the same objects in different contexts but I'm being unable to refactor that creation into some kind of helper method
[16:11:33] lacrymology: can someone throw a pointer?
[16:11:40] MartinEl_: has joined #RubyOnRails
[16:11:41] matthewd: loincloth: How did it get that way? :/
[16:11:44] mary5030: has joined #RubyOnRails
[16:11:50] owenjones: has joined #RubyOnRails
[16:11:59] loincloth: @matthewd don't worry about it?
[16:11:59] podman: has joined #RubyOnRails
[16:12:04] acti0nman: has joined #RubyOnRails
[16:12:09] dtordabl1: has joined #RubyOnRails
[16:12:16] Cervajz: has joined #RubyOnRails
[16:12:38] rickmasta: has joined #RubyOnRails
[16:12:45] loincloth: i'm not sure to be honest, but it doesn't seem like it matters
[16:13:07] matthewd: loincloth: I mostly care about whether it's our fault
[16:13:22] RedDwarf: has joined #RubyOnRails
[16:13:41] ebryn_: has joined #RubyOnRails
[16:13:58] loincloth: ah, i see... didn't know you were concerned in that way... i wouldn't imagine it's a Rails bug but i dunno i guess
[16:14:03] newton2: has joined #RubyOnRails
[16:14:10] vayan_: has joined #RubyOnRails
[16:14:21] loincloth: it's a db that was recently migrated from another server... as i recall we did a dump, load and then migrated, so i wouldn't have expected this
[16:14:27] tubbo: loincloth: matthewd has some skin in this game :)
[16:14:36] loincloth: but on this first migration since deploy, i'm hitting a block because of this state now
[16:14:55] Iacobus_: has joined #RubyOnRails
[16:14:57] dllnl_: has joined #RubyOnRails
[16:14:58] loincloth: would inserting those versions achieve what i need tho?
[16:15:04] mghaig: has joined #RubyOnRails
[16:15:12] loincloth: setting aside other questions for a moment
[16:15:30] dalpo_: has joined #RubyOnRails
[16:15:30] zrl_: has joined #RubyOnRails
[16:15:33] xhoy__: has joined #RubyOnRails
[16:15:39] DanielN: has joined #RubyOnRails
[16:15:39] loincloth: is there anything else to it? as i recall, it's about that simple, but i haven't had to debug an issue like this for a while
[16:15:42] a1fa: does anyone know how to make sort_select take html class?
[16:15:44] Depili_: has joined #RubyOnRails
[16:16:06] raenk_: has joined #RubyOnRails
[16:16:07] dlitz_: has joined #RubyOnRails
[16:16:10] kadoppe_: has joined #RubyOnRails
[16:16:13] veloutin_: has joined #RubyOnRails
[16:16:33] Skelz0r_: has joined #RubyOnRails
[16:16:33] jcm__: has joined #RubyOnRails
[16:16:34] matthewd: loincloth: Yeah, if you just need to make it not run certain migrations because they're actually already there, you should be able to just add the appropriate rows
[16:16:41] cornerman: has joined #RubyOnRails
[16:17:12] pwnd_nfsw: has joined #RubyOnRails
[16:17:12] hardtail: has joined #RubyOnRails
[16:17:15] loincloth: matthewd: ok thx
[16:17:26] zz_timnovinger: has joined #RubyOnRails
[16:17:51] matthewd: lacrymology: You seem to have forgotten to describe a problem :|
[16:18:11] jahbrewski: has joined #RubyOnRails
[16:18:26] dmz: has joined #RubyOnRails
[16:18:29] indignatio: has joined #RubyOnRails
[16:19:17] amitchellbullard: has joined #RubyOnRails
[16:20:14] RandyT: has joined #RubyOnRails
[16:20:33] loincloth: lacrymology: you can config.include any module and get those methods in your spec contexts
[16:21:07] lacrymology: loincloth: that only works from within examples
[16:21:15] loincloth: not let blocks?
[16:21:44] loincloth: i thought those were the same context
[16:21:45] nocontrol: has joined #RubyOnRails
[16:21:50] lacrymology: loincloth: let blocks too, but.. will lets within lets work?
[16:22:07] lacrymology: matthewd: my problem is that I don't know how to do that refactoring?
[16:22:08] loincloth: i dunno but why would you want it?
[16:22:22] loincloth: anything defined by another let is available in that context, too
[16:22:30] loincloth: not sure what the case for let within let is
[16:22:30] svkurowski: has joined #RubyOnRails
[16:22:52] loincloth: i think i'm getting a little confused though
[16:23:02] lacrymology: loincloth: I want to define a bunch of things, with a bunch of lets. These things are sometimes the same.
[16:23:13] lacrymology: I want to unify this code
[16:23:25] loincloth: maybe you want the behaves_like fetures?
[16:23:59] loincloth: maybe not though that's more for expectations than setup i guess
[16:24:10] smathy: lacrymology, !gist your spec
[16:24:10] helpa: lacrymology: http://gist.github.com - Put your codes online with pretty syntax highlighting and the ability to embed it into other pages.
[16:24:15] loincloth: just trying to think about other ways around the problem
[16:24:47] matthewd: lacrymology: I worry that you're going to end up with awfully opaque specs... but I think you should be able to `def self.foo; let! ..; end`
[16:24:59] pontiki_x: has joined #RubyOnRails
[16:25:11] smathy: Sounds like a terrible approach.
[16:25:11] MEATCHICKEN: Anyone's company hiring or looking for freelancers?
[16:25:15] chouhoulis: has joined #RubyOnRails
[16:25:45] pontiki_x: meatchicken: do you do .net, ios, or android?
[16:26:20] desmondhume: has left #RubyOnRails: ()
[16:26:35] __desmondhume: has joined #RubyOnRails
[16:26:49] __desmondhume: meatchicken: we're looking for full-time fullstack rails dev
[16:27:21] __desmondhume: http://mozestudio.com/
[16:27:31] MEATCHICKEN: __desmondhume, Mind passing my resume? or do I apply via regular channels?
[16:27:49] __desmondhume: if anybody's interested, here's the open positions https://moze.workable.com/
[16:27:51] matthewd: I guess I wonder that you even need a substantial collection of let! calls -- are your specs referring to those things by name?
[16:28:04] safety_cut: has joined #RubyOnRails
[16:28:23] matthewd: Then again, I'd be more likely to create such things in a setup, so our approaches have probably already diverged before this point
[16:29:39] arthurix: has joined #RubyOnRails
[16:31:06] cschneid_: has joined #RubyOnRails
[16:31:39] Papierkorb: With passenger/nginx, is it possible to store assets, like CSS files, gzipped, so that they can be quickly served without having the server to compress the files again and again? Or is this actually the default behaviour?
[16:31:50] smathy: matthewd, no point using a let! in a setup, may as well not use the lazy loading at all then.
[16:32:14] infamos: has joined #RubyOnRails
[16:32:42] disgrntld: has joined #RubyOnRails
[16:32:47] matthewd: smathy: That's what I meant... I'd generally use setup over let!
[16:33:08] SteenJobs: has joined #RubyOnRails
[16:33:11] matthewd: (as opposed to let, which has more merits, situation depending)
[16:35:49] smathy: Papierkorb, look at the gzip_static module if you want that.
[16:37:20] kerunaru: has joined #RubyOnRails
[16:37:25] Yomero3: has joined #RubyOnRails
[16:38:02] smathy: matthewd, well even let! allows you to override it at a deeper level of nesting.
[16:38:11] smathy: matthewd, so functionally different to a setup.
[16:38:38] mghaig: has joined #RubyOnRails
[16:39:08] Sylario: has joined #RubyOnRails
[16:39:14] AugustoCesar: has joined #RubyOnRails
[16:39:26] Foss_: has joined #RubyOnRails
[16:39:47] pontiki_x: Papierkorb: just ensure that you don't end up double compressing the files
[16:40:30] adac: has joined #RubyOnRails
[16:41:24] dllnl: has joined #RubyOnRails
[16:41:45] goldbug: I want to create a simple_form that has a dropdown which is not a model. I know this is Impossible. Has anyone found any useful workarounds?
[16:41:47] crdpink: has joined #RubyOnRails
[16:42:05] goldbug: (Answer: Don't use simple_form?)
[16:42:18] tubbo: goldbug: create your own custom input?
[16:42:28] ruurd: has joined #RubyOnRails
[16:42:28] tubbo: goldbug: https://github.com/plataformatec/simple_form/wiki/Custom-inputs-examples
[16:42:41] tubbo: part of what i like about simple_form is its relatively easy to customize and extend.
[16:43:08] tubbo: i mean...not as open-ended as the rails form builder, but adds a light abstraction to maintain consistency and reduce boilerplate.
[16:43:10] Sylario: In routes.rb, what is the v: in: match 'v:api/*path' ?
[16:43:19] TheNet: has joined #RubyOnRails
[16:43:43] mghaig: has joined #RubyOnRails
[16:43:47] TheNet: is there a way to prevent turbolinks from reloading something in the body, e.g. #background ?
[16:43:55] matthewd: sylario: The "v" is a literal character; the colon is attached to "api", making it a param
[16:44:17] Sylario: matthewd: i do not understand
[16:44:31] tubbo: TheNet: data-turbolinks-permanent is gonna be a thing in turbolinks 3.0+, but not sure that's released yet
[16:44:37] Sylario: the real path used start by v?
[16:44:52] matthewd: 'v1/foo' --> { api: '1', path: 'foo' }
[16:44:58] __desmondhume: sylario: ":api" will be replaced with the params[:api] value
[16:45:01] goldbug: tubbo: I've actually tried this (https://github.com/plataformatec/simple_form/wiki/Create-a-fake-input-that-does-NOT-read-attributes) but I'm not sure it's what I want. There's no reason simple_form can't render a dropdown based on the collection I'm giving it, it's just trying to hunt for an object that doesn't exist.
[16:45:33] pontiki_x: not so simple
[16:45:34] Sylario: thx matthewd __desmondhume
[16:47:04] evanror: has joined #RubyOnRails
[16:47:53] [Butch]: has joined #RubyOnRails
[16:48:08] TheNet: tubbo: is that going to be delayed till rails 5?
[16:48:32] TheNet: or can I use it now?
[16:48:41] infamos: has joined #RubyOnRails
[16:49:18] kp666: has joined #RubyOnRails
[16:49:38] TheNet: nevermind, didn't realize master is 3.0
[16:50:36] manuelmesson: has joined #RubyOnRails
[16:53:15] Sylario: What is the name of the technique used by rails to parse :something_id from an url and add it to params when routing?
[16:54:23] loc22_: has joined #RubyOnRails
[16:54:41] goodcodeguy: has joined #RubyOnRails
[16:54:47] TheNet: sylario: not sure what you mean but parameterize ?
[16:55:33] vigintas: has joined #RubyOnRails
[16:55:53] Foss_: has joined #RubyOnRails
[16:56:05] rgtk: has joined #RubyOnRails
[16:57:18] Sylario: thx TheNet
[17:00:12] towski_: has joined #RubyOnRails
[17:01:15] alex88: has joined #RubyOnRails
[17:02:16] baweaver: has joined #RubyOnRails
[17:03:08] mghaig: has joined #RubyOnRails
[17:03:42] SteenJobs: has joined #RubyOnRails
[17:03:50] jkamenik: has joined #RubyOnRails
[17:04:33] optimus55: has joined #RubyOnRails
[17:05:48] EminenceHC: has joined #RubyOnRails
[17:06:33] TheNet: has joined #RubyOnRails
[17:08:54] goldbug: What have I done wrong here? I'm trying to get my CoffeeScript to output something to the console when the value of a dropdown is changed: https://gist.github.com/classicgoldbug/7a501b0ee0cb92071100
[17:09:19] goldbug: Page loads fine but nothing happens when I select something from the menu.
[17:09:30] goldbug: menu = dropdown
[17:09:43] safety_cut: has joined #RubyOnRails
[17:10:41] goldbug: Line 10 in _form.html.erb is the relevant line, and update_language is the function I'm trying to call.
[17:11:16] bmalum: has joined #RubyOnRails
[17:11:33] roxtrongo: has joined #RubyOnRails
[17:11:48] DiCablo: has joined #RubyOnRails
[17:11:51] ruurd: has joined #RubyOnRails
[17:12:32] tubbo: goldbug: not sure why you couldn't do that with simple_form inputs, but ok
[17:13:03] tubbo: goldbug: i'd also put that #language_select event binding in your ready() function
[17:14:12] tubbo: like this https://gist.github.com/tubbo/2b2e041e503614b260fc
[17:14:19] crdpink2: has joined #RubyOnRails
[17:15:57] evanessence: has joined #RubyOnRails
[17:16:01] goldbug: tubbo: I don't have a model called :language, so I'd have to create a custom input which feels like overkill when I can fall back to regular form helpers.
[17:18:41] kitsuneyo: has joined #RubyOnRails
[17:18:46] tvw: has joined #RubyOnRails
[17:21:28] evanror: has left #RubyOnRails: ()
[17:22:17] lacrymology: has joined #RubyOnRails
[17:22:35] diego1: has joined #RubyOnRails
[17:22:52] diego1: has joined #RubyOnRails
[17:23:14] Maletor: has joined #RubyOnRails
[17:23:28] lacrymology: has joined #RubyOnRails
[17:23:34] yardenbar: has joined #RubyOnRails
[17:24:48] willardg: has joined #RubyOnRails
[17:25:29] scmx: has joined #RubyOnRails
[17:25:33] rakm: has joined #RubyOnRails
[17:26:29] corehook: has joined #RubyOnRails
[17:28:31] alex88: has joined #RubyOnRails
[17:29:27] aarkerio: has joined #RubyOnRails
[17:29:56] baweaver: has joined #RubyOnRails
[17:31:34] hardtail: has joined #RubyOnRails
[17:33:30] nertzy: has joined #RubyOnRails
[17:33:32] mghaig: has joined #RubyOnRails
[17:33:41] SteenJobs: has joined #RubyOnRails
[17:34:58] Sylario: does github keep file permissions?
[17:35:34] lacrymology: sylario: git keeps file permissions, yes
[17:35:48] ruurd: has joined #RubyOnRails
[17:36:13] Sylario: I want to submit a patch a github existing project and git tells me i am changing permissions from 644 to 755, i guess it may be a problem
[17:36:15] bmalum: has joined #RubyOnRails
[17:36:20] koon: has joined #RubyOnRails
[17:36:56] dopie: has joined #RubyOnRails
[17:38:05] smathy: sylario, so fix your perms.
[17:38:47] Sylario: smathy: i think i am in trouble, my rails is on a Linux VM but i edit from windows with a samba share
[17:39:03] Sylario: seems like my samba share love to write with 755
[17:39:11] adaedra: Fix your mount.
[17:39:20] Sylario: adaedra: i am doing that
[17:39:21] hardtail: g'day smathy
[17:39:22] adaedra: Or just work in your VM
[17:39:29] pawnbox_: has joined #RubyOnRails
[17:39:34] ahmgeek: undefined method `times' for [nil, nil]:Array
[17:39:36] Sylario: adaedra: graphic rendering is painfully slow
[17:39:45] smathy: sylario, probably a umask somewhere.
[17:39:54] ahmgeek: how can I loop over this array even if it's contains nil ?
[17:40:04] momloy: has joined #RubyOnRails
[17:40:19] adaedra: sylario: you got a slow computer? Disabled graphical acceleration? Try to run GNOME 3?
[17:40:40] ascarter: has joined #RubyOnRails
[17:41:31] Sylario: adaedra: i have a high end gr??aphic card, it's VMWare who is slow
[17:41:49] adaedra: should not be.
[17:41:52] smathy: ahmgeek, .compact ?
[17:43:21] matthewd: ahmgeek: `times` isn't going to help you loop over any array, regardless of what's in it
[17:44:24] blackmesa: has joined #RubyOnRails
[17:45:04] manuelmesson: has joined #RubyOnRails
[17:45:52] ahmgeek: ok folks, here's the problem, this form is inside an outer form for the main contribution, so, it displays the images correctly, but I want to put some uploaders placeholders for the remaining images, the goal is only to upload 8 images.
[17:46:01] ahmgeek: so in this edit mode
[17:46:29] ahmgeek: I want to display the uploaded images, subtraact them from 8
[17:46:58] ahmgeek: then add an html code for the placeholders in case he wanted to upload more images that not exceed the 8ths
[17:47:30] rakm: has joined #RubyOnRails
[17:48:47] Foss_: has joined #RubyOnRails
[17:48:53] alex88_: has joined #RubyOnRails
[17:52:17] s2013: has joined #RubyOnRails
[17:52:40] mrtomme: has joined #RubyOnRails
[17:52:43] nfk: has joined #RubyOnRails
[17:53:50] benlieb: has joined #RubyOnRails
[17:54:53] armyriad: has joined #RubyOnRails
[17:55:01] slash_nick: ahmgeek: no forms within forms please
[17:55:48] slash_nick: ahmgeek: read the last prohibition http://www.w3.org/TR/xhtml1/#prohibitions
[17:57:13] slash_nick: ahmgeek: anyway, you'll want to share some code in order for folks to help you
[17:58:25] colleenmcguckin: has joined #RubyOnRails
[17:58:47] alex88: has joined #RubyOnRails
[17:59:56] mghaig: has joined #RubyOnRails
[18:01:19] gusrub: has joined #RubyOnRails
[18:01:37] colleenmcguckin: has joined #RubyOnRails
[18:01:56] mikecmpbll: has joined #RubyOnRails
[18:03:20] lemur: has joined #RubyOnRails
[18:04:00] EdwardIII: has left #RubyOnRails: ()
[18:05:33] darrencauthon: has joined #RubyOnRails
[18:05:40] s2013: has joined #RubyOnRails
[18:07:58] Sylario: adaedra: I installed gnome instead of Unity and you are right, it make more sense to use Sublime through Unity (VMWare Unity, not ubuntu unity)
[18:08:21] Sylario: Too many Unity ><
[18:08:47] adaedra: Ah yes, I forgot VMware didn't name this feature the same way in all their products.
[18:09:10] adaedra: You can also try to use XFCE, it's even more lightweight.
[18:09:33] Shoutsid: has joined #RubyOnRails
[18:11:59] messine: has joined #RubyOnRails
[18:13:20] messine: I used git reset --hard to remove a migration command I had run to change the migration file. After saving the file and running the migration the changes I've made do not show up in the schema. Toughts?
[18:13:30] seedinger: has joined #RubyOnRails
[18:17:41] Guest53: has joined #RubyOnRails
[18:17:47] stesind: has joined #RubyOnRails
[18:18:06] tubbo: messine: did you use rake db:rollback to undo the migration's changes to your schema?
[18:18:08] elaptics: messine: I'm not sure what you're saying?
[18:18:10] TheNet: has joined #RubyOnRails
[18:19:32] EminenceHC: has joined #RubyOnRails
[18:19:40] dtordable: has joined #RubyOnRails
[18:19:59] messine: tubbo, oh okay I think that's it
[18:20:29] hardtail: has joined #RubyOnRails
[18:21:11] krz: has joined #RubyOnRails
[18:21:35] dtordable: a question: in order to run rake on an environment is about to set RAILS_ENV var?
[18:22:23] yardenbar: has joined #RubyOnRails
[18:22:35] messine: tubbo, awesome, thanks
[18:22:47] tubbo: dtordable: huh
[18:23:18] Guest53: has joined #RubyOnRails
[18:23:44] tubbo: dtordable: if you're asking whether RAILS_ENV must be set to run rake commands in a particular environment, the answer is yes.
[18:24:27] cnk: has joined #RubyOnRails
[18:24:36] User458764: has joined #RubyOnRails
[18:24:39] dtordable: ah, ok, thanks
[18:25:04] messine: elaptics, I had reversed a migration to remove a default value, when running the migration the default value still showed up in my schema. The actual db had gone unchanged
[18:25:26] baweaver: has joined #RubyOnRails
[18:25:59] gusrub: has joined #RubyOnRails
[18:27:51] tvw: has joined #RubyOnRails
[18:30:11] njero: has joined #RubyOnRails
[18:30:56] cac: has joined #RubyOnRails
[18:31:07] ruurd: has joined #RubyOnRails
[18:31:38] arup_r: has joined #RubyOnRails
[18:33:01] nonmadden: has joined #RubyOnRails
[18:33:08] trav408: has joined #RubyOnRails
[18:35:03] aarkerio: hi! if I installed a JS lib with: "npm install foo-jslib" how should I add foo-jslib into my rails project? webpack?
[18:35:29] adac: has joined #RubyOnRails
[18:35:58] mghaig: has joined #RubyOnRails
[18:36:51] blackmesa: has joined #RubyOnRails
[18:38:03] tubbo: aarkerio: yup, or browserify, or there's probably something new out because it's a new week :P
[18:38:53] manuelmesson: has joined #RubyOnRails
[18:39:20] aarkerio: yeah, the JS "market" is moving fast ; -)
[18:39:53] tubbo: aarkerio: i enjoy using rails-assets.org for JS libs that aren't already packaged as gems
[18:40:51] notnoyyyyy: has joined #RubyOnRails
[18:41:07] aarkerio: I will try https://github.com/browserify-rails/browserify-rails thx!
[18:41:23] TheNet: has joined #RubyOnRails
[18:41:25] Guest3421: has joined #RubyOnRails
[18:41:31] emilkarl: has joined #RubyOnRails
[18:42:40] roxtrongo: has joined #RubyOnRails
[18:42:40] rakm: has joined #RubyOnRails
[18:42:48] towler: has joined #RubyOnRails
[18:43:02] zpe: has joined #RubyOnRails
[18:44:44] EminenceHC: has joined #RubyOnRails
[18:45:10] yardenbar: has joined #RubyOnRails
[18:45:58] axl_: has joined #RubyOnRails
[18:48:23] centrx: has joined #RubyOnRails
[18:48:51] andrew9184: has joined #RubyOnRails
[18:48:55] levifig: has joined #RubyOnRails
[18:49:57] ur5us: has joined #RubyOnRails
[18:50:06] EvilEpoch: has joined #RubyOnRails
[18:51:30] purplexed-: has joined #RubyOnRails
[18:51:31] purplexed-: has joined #RubyOnRails
[18:51:34] weaksauce: has joined #RubyOnRails
[18:52:12] dionysus69: has joined #RubyOnRails
[18:53:19] tyl: has joined #RubyOnRails
[18:53:51] makenoise: has joined #RubyOnRails
[18:54:16] tyl: when u assign a variable to model property does rails sanitize the variable before assignment?
[18:54:21] loincloth: matthewd: thx for your help earlier re: schema_migrations btw :D
[18:54:25] tyl: user.password = password
[18:54:27] tyl: user.save
[18:54:40] ss_much: has joined #RubyOnRails
[18:55:46] centrx: tyl, It's sanitized when it's sent to the database
[18:55:58] tyl: centrx thx
[18:56:21] njero: has joined #RubyOnRails
[18:56:21] matthewd: It's quoted. I'm not sure what "sanitized" would look like.
[18:56:33] matthewd: loincloth: No worries :)
[18:57:36] dionysus70: has joined #RubyOnRails
[18:58:49] cnk: tyl, rails takes care of escaping single quotes on the way into the database. But the sanitization for things like XSS is done when the data is rendered into html
[18:59:27] x-light: has joined #RubyOnRails
[19:00:35] lipoqil: has joined #RubyOnRails
[19:02:36] __desmondhume: has joined #RubyOnRails
[19:03:22] moeabdol: has joined #RubyOnRails
[19:03:41] rakm: has joined #RubyOnRails
[19:04:20] RegulationD: has joined #RubyOnRails
[19:04:35] mghaig: has joined #RubyOnRails
[19:04:40] baweaver: has joined #RubyOnRails
[19:04:55] cac: has joined #RubyOnRails
[19:07:32] kerunaru: has joined #RubyOnRails
[19:08:10] EminenceHC: has joined #RubyOnRails
[19:08:31] chrisja: has joined #RubyOnRails
[19:08:36] cornerma1: has joined #RubyOnRails
[19:08:45] ascarter: has joined #RubyOnRails
[19:09:20] rubyonrailed: has joined #RubyOnRails
[19:10:08] Axsuul: has joined #RubyOnRails
[19:10:22] rubyonrailed: Am I not setting up my nested strong params correctly? For some reason, my users params are still unpermitted. https://gist.github.com/JasonMannon/84506c997368cd2ff7e2
[19:12:32] Pupeno: has joined #RubyOnRails
[19:12:32] Pupeno: has joined #RubyOnRails
[19:14:28] otnirebal: has joined #RubyOnRails
[19:14:42] mghaig: has joined #RubyOnRails
[19:14:59] baweaver: has joined #RubyOnRails
[19:15:07] otnirebal: question on rails-api: how do I return errors in json-api format?
[19:15:24] rromanch_: has joined #RubyOnRails
[19:18:01] messine: has joined #RubyOnRails
[19:19:32] lapide_viridi: has joined #RubyOnRails
[19:19:50] Fire-Dragon-DoL: has joined #RubyOnRails
[19:20:14] pwnd_nfsw: has joined #RubyOnRails
[19:20:49] gusrub: has joined #RubyOnRails
[19:20:59] c355E3B: has joined #RubyOnRails
[19:21:06] wa_r_ch_i__ld1: has joined #RubyOnRails
[19:21:14] tyl: has left #RubyOnRails: ("Textual IRC Client: www.textualapp.com")
[19:22:24] wa_r_ch_i__ld1: How can one fill out an NTLM popup automatically from Rails?
[19:23:19] wa_r_ch_i__ld1: or better, to use curl to send the NTLM credentials, but to have that authorized state transfer to the page render so that the popup doesn't come up again if that page is accessed
[19:24:07] tubbo: wa_r_ch_i__ld1: what is NTLM?
[19:24:38] hardtail: has joined #RubyOnRails
[19:24:48] wa_r_ch_i__ld1: it's this security popup that asks for login credentials
[19:25:07] wa_r_ch_i__ld1: https://en.wikipedia.org/wiki/NT_LAN_Manager
[19:25:28] manfrin: has joined #RubyOnRails
[19:26:02] TheNet: has joined #RubyOnRails
[19:26:02] tubbo: wa_r_ch_i__ld1: that is mad specific haha
[19:26:19] tianyi: has joined #RubyOnRails
[19:26:31] dalpo: has joined #RubyOnRails
[19:26:33] tubbo: wa_r_ch_i__ld1: is NTLM even a web-based thing?
[19:26:45] wa_r_ch_i__ld1: yeah, i think its microsoft exclusive
[19:27:27] tubbo: wa_r_ch_i__ld1: it's probably not possible to populate an external popup window (even if it's just displaying a web page) from your rails app.
[19:27:35] bmalum: has joined #RubyOnRails
[19:27:49] tubbo: unless there's some kind of inter-window communication thing IE does that no one else does
[19:30:06] makenoise: has joined #RubyOnRails
[19:30:26] stamina: has joined #RubyOnRails
[19:32:23] vyorkin: has joined #RubyOnRails
[19:32:33] edwinvdgraaf: has joined #RubyOnRails
[19:33:06] manuelmesson: has joined #RubyOnRails
[19:33:34] ellisTAA: has joined #RubyOnRails
[19:33:47] nateberkopec: has joined #RubyOnRails
[19:34:10] skullcrasher: has joined #RubyOnRails
[19:35:09] ascarter: has joined #RubyOnRails
[19:36:39] yardenbar: has joined #RubyOnRails
[19:37:01] loc22: has joined #RubyOnRails
[19:37:07] Radar: GOOD MORNING
[19:37:14] helpa: good morning IRCers, I hope that this day finds you hale and hearty
[19:38:43] loc22: Hi guys! I cant found any guide only about how to implemenet Devise + Ominiauth, but using a Identity table(provider, uuid) where 1 User can have many Identites to login with Facebook, twitter, etc.. Any idea how?
[19:39:11] Radar: helpa is still waking up
[19:40:14] arup_r: wa_r_ch_i__ld1: Hi.. how r you ?
[19:41:24] wa_r_ch_i__ld1: @arup_r not bad, how are you doing?
[19:41:50] arup_r: loc22: Devise has a wiki page for the same where the example uses Facebook .. But very good to start with..
[19:42:20] ibouvousaime: has joined #RubyOnRails
[19:42:29] xhoy_: has left #RubyOnRails: ()
[19:42:30] xhoy_: has joined #RubyOnRails
[19:42:35] xhoy_: we have an rails app with ~40 models, now we would love to do some stats (that include data from other systems). I would think that i could clone a "light" version of all models/classes and create the models for the external db's is there an easy way of doing this?
[19:42:49] s2013: has joined #RubyOnRails
[19:43:01] vigintas: has joined #RubyOnRails
[19:43:05] xhoy_: (this would run on a seperated system for load issues btw)
[19:43:51] loc22: arup_r: Yes I have seen it. But instead of having provider inside User, to have it in a separate table in order to have many.
[19:44:32] sdwrage: has joined #RubyOnRails
[19:44:45] arup_r: Yes, so you can create those .. while you will be storing that data, use the association methods to store. but the idea is still same
[19:45:05] arup_r: They used one single table, you will be using has_many table
[19:45:34] arup_r: 2 tables I meant. User and Provider ( 1:N relationship)
[19:46:42] Radar: xhoy_: rails g model
[19:47:57] xhoy_: Radar: in that seperate app?
[19:48:14] xhoy_: or would you make just a seperate controller and do all statics there?
[19:48:19] Radar: xhoy_: Then you can write a rake task that calls the API of the other app and pulls down the data
[19:48:43] xhoy_: ok but everytime the orignal app changes i need to update the "stats app"
[19:48:55] xhoy_: os is there a way to sync them? or include the models oid?
[19:48:56] Radar: So run a cron job daily to do that.
[19:49:05] xhoy_: yeah the data
[19:49:09] xhoy_: but the structure of the models
[19:49:41] matthewd: xhoy_: You started with a proposed solution.. given a means of achieving it, you now seem to be arguing against it :/
[19:49:42] xhoy_: in that case i need to maintain two app's with both models etc
[19:49:42] Radar: Store it as a JSON-encoded string on your new models?
[19:49:52] Radar: matthewd: correct. Welcome to #rubyonrails. Please try the cheese.
[19:50:08] xhoy_: matthewd: i do since i feel its not as easy way it should be done :P
[19:50:10] Radar: xhoy_: If you saved it as a JSON encoded string then it wouldn't matter if App #1's schema changed.
[19:50:28] ruurd: has joined #RubyOnRails
[19:50:44] xhoy_: so not connect to the DB but connect to json api instead
[19:51:02] xhoy_: great idear never tought of that ;)
[19:51:55] romdi: has joined #RubyOnRails
[19:52:22] differentreality: has joined #RubyOnRails
[19:52:46] Radar: This is why they pay me the Bigg bucks.
[19:52:54] njero: has joined #RubyOnRails
[19:54:42] Sylario: Radar: srsly, a name based pun?
[19:54:52] a1fa: i'm getting unified error no method for user, when trying to do this
[19:54:57] Radar: sylario: You might be thinking "What's the Bigg idea?"
[19:54:59] a1fa: https://github.com/ryanb/railscasts-episodes/blob/master/episode-192/blog/app/models/user.rb
[19:55:23] a1fa: /usr/local/rvm/gems/ruby-2.1.5@global/gems/activerecord-4.2.0.rc2/lib/active_record/dynamic_matchers.rb:26:in `method_missing': undefined method `named_scope' for User (call 'User.connection' to establish a connection):Class (NoMethodError)
[19:55:34] Sylario: What's next, ActivePun Gem?
[19:55:50] xhoy_: alol: named_scopes do not longer exsist?
[19:56:06] xhoy_: a1fa: ow do you have a db connection?
[19:56:08] rhizome: right, they're called scope now and a1fa is looking at old rails code
[19:56:12] a1fa: xhoy_: yes
[19:56:33] cac: has joined #RubyOnRails
[19:56:45] bruno-: has joined #RubyOnRails
[19:57:11] xhoy_: a1fa: this is an old example look at scopes and replace the named_scope part
[19:57:49] TheNet: how would I go about using something like this http://bootstrap-tagsinput.github.io/bootstrap-tagsinput/examples/ for a has_many relation?
[19:58:15] arthurix: has joined #RubyOnRails
[19:58:57] rhizome: what do you mean by "how?"
[19:59:34] xhoy_: has anybody heard from ryan bates lately?
[19:59:50] TheNet: rhizome: well I'm trying to avoid using the b word...
[20:00:02] rhizome: i don't think anybody here is BFF with ryan bates
[20:00:16] TheNet: rhizome: what's one way I could go about doing so?
[20:00:49] rhizome: TheNet: i guess you could start by following the directions and adding the data tags or whatever
[20:01:14] Sylario: xhoy_: he was back on tweeter this summer
[20:01:20] ascarter: has joined #RubyOnRails
[20:01:51] Sylario: whats a twattar user? a Twat?
[20:01:57] TheNet: rhizome: I was hoping there was a gem that had the same functionality, I can't find one though.
[20:02:10] FailBit: does that mean a twitter user is a twit?
[20:02:20] centrx: no, a twitter user is still a twat
[20:02:26] rhizome: what does "same functionality" mean when you're at the "how" stage
[20:04:23] SteenJobs: has joined #RubyOnRails
[20:05:12] A124: has joined #RubyOnRails
[20:05:21] TheNet: rhizome: if one was making a form for a belongs_to association it would be easy, just use a select. but I want somewhat the reverse, to have a "has_many field"
[20:05:39] sinkensabe: has joined #RubyOnRails
[20:06:17] baweaver: has joined #RubyOnRails
[20:06:22] rhizome: well you don't, now do you?
[20:07:34] TheNet: I don't have a "has_many field"
[20:07:53] roxtrongo: has joined #RubyOnRails
[20:07:56] raunicolae: has joined #RubyOnRails
[20:08:43] rhizome: neither does rails, so what now?
[20:09:53] gwiz: has joined #RubyOnRails
[20:10:25] TheNet: well I was hoping someone knew of a gem that did this, or a guide, but I guess that's not the case
[20:11:10] rhizome: you may have to do some programming
[20:11:35] loc22: has joined #RubyOnRails
[20:11:45] xhoy_: lets hope hes doing fine!
[20:11:46] TheNet: that's too much for me to handle, I don't think I can do it
[20:11:58] duncannz: has joined #RubyOnRails
[20:12:01] rhizome: i did what i could
[20:12:28] rakm: has joined #RubyOnRails
[20:13:43] blackmesa: has joined #RubyOnRails
[20:14:44] Guest53: has joined #RubyOnRails
[20:15:09] VeryBewitching: has joined #RubyOnRails
[20:15:59] MartinEl_: has joined #RubyOnRails
[20:16:11] ibouvousaime: has joined #RubyOnRails
[20:17:01] scmx: has joined #RubyOnRails
[20:20:58] SteenJobs: has joined #RubyOnRails
[20:21:30] A124: has joined #RubyOnRails
[20:22:55] EminenceHC: has joined #RubyOnRails
[20:23:19] baweaver: has joined #RubyOnRails
[20:24:40] skyjumper: anyone have tips on testing an entire OAuth2 flow?
[20:24:44] messine: has joined #RubyOnRails
[20:25:23] momomomomo: has joined #RubyOnRails
[20:25:45] skyjumper: full integration test would involve mocking the 3rd party's site for the initial handshake
[20:26:19] gusrub: has joined #RubyOnRails
[20:27:03] cac: has joined #RubyOnRails
[20:27:12] manuelmesson: has joined #RubyOnRails
[20:27:59] yfeldblum: has joined #RubyOnRails
[20:28:01] slash_nick: skyjumper: did you roll your own, use omniauth, ??
[20:28:28] rhizome: so what is there to test
[20:30:34] SteenJobs: has joined #RubyOnRails
[20:31:21] slash_nick: i imagine he wants integration tests on post-auth features... his controllers expect a current user or something, and he wants to trick those controllers into thinking they've got it?
[20:33:42] VeryBewitching: So you'd just have to mock current_user, no?
[20:33:58] Jasaka: has joined #RubyOnRails
[20:34:41] mghaig: has joined #RubyOnRails
[20:34:44] Pazician: has joined #RubyOnRails
[20:35:04] kies: has joined #RubyOnRails
[20:35:38] cac: has joined #RubyOnRails
[20:35:55] lacuna: has joined #RubyOnRails
[20:35:55] lacuna: has joined #RubyOnRails
[20:36:24] naftilos76: has joined #RubyOnRails
[20:36:55] rubyonrailed: https://gist.github.com/JasonMannon/a235f6d5e53b4bf08da0 My signup.rb is changing my devise password, but after it changes "which it saves correctly" It logs out my user. I read that adding `sign_in(current_user, :bypass => true)` before the redirect would solve that problem. Does anyone know why this is happening?
[20:37:27] rhizome: what does :bypass do?
[20:38:00] nickenchuggets: has joined #RubyOnRails
[20:38:01] nickenchuggets: has joined #RubyOnRails
[20:38:04] tubbo: yeah i've only heard of `store: true` so it won't save to the session.
[20:38:07] tubbo: err, store: false
[20:38:17] neanderslob: has joined #RubyOnRails
[20:38:53] njero: has joined #RubyOnRails
[20:39:17] DoubleMalt: has joined #RubyOnRails
[20:39:34] annlewis: has joined #RubyOnRails
[20:40:39] VeryBewitching: https://github.com/plataformatec/devise/blob/master/lib/devise/controllers/sign_in_out.rb#L26-L28
[20:42:25] tetraktys: has joined #RubyOnRails
[20:43:20] rubyonrailed: It's not working for me though :(
[20:43:35] alex88: has joined #RubyOnRails
[20:44:02] cac: has joined #RubyOnRails
[20:44:11] rhizome: um, so did you try without it?
[20:44:33] rhizome: since bypass is kind of specific and maybe not what you really want to do
[20:44:58] mghaig: has joined #RubyOnRails
[20:45:07] wa_r_ch_i__ld1: has joined #RubyOnRails
[20:45:20] pramsky: has joined #RubyOnRails
[20:46:09] rubyonrailed: rhizome: Yeah I tried just `sign_in curent_user` no luck
[20:46:11] kadoppe: has joined #RubyOnRails
[20:46:15] quazimodo: has joined #RubyOnRails
[20:46:17] baweaver: has joined #RubyOnRails
[20:46:21] sinkensabe: has joined #RubyOnRails
[20:46:29] wa_r_ch_i__ld1: Is there a way to login to an external site in the background and have it be in the rails session so that If i redirect to that page, they will already be logged in?
[20:46:50] rhizome: yeah exceptions as flow control in the wild
[20:47:14] tubbo: rubyonrailed: that sign_in(current_user, :bypass => true) line doesn't make sense, since current_user is kinda derived from doing a sign_in call.
[20:47:19] arBmind: has joined #RubyOnRails
[20:47:32] tubbo: rubyonrailed: you probably want to expose the User found in Signup as @signup.user, then do sign_in @signup.user, bypass: true
[20:47:33] VeryBewitching: rubyonrailed: sign_in User.find(n)
[20:47:41] VeryBewitching: Or what tubbo said
[20:47:51] wa_r_ch_i__ld1: when I've tried using curl, it will login but obviously doesn't get appended to the session and requires anther login within the browser
[20:48:23] gusrub: has joined #RubyOnRails
[20:48:43] alex88: has joined #RubyOnRails
[20:49:08] rhizome: curl...browser?
[20:49:38] willardg: has joined #RubyOnRails
[20:49:56] njero: has joined #RubyOnRails
[20:50:13] wa_r_ch_i__ld1: @rhizome its an ntlm auth site and im on an old rails versin
[20:50:38] rubyonrailed: tubbo: Thanks i'll try that
[20:50:41] tubbo: wa_r_ch_i__ld1: not unless you can get some kind of access token back from the provider (like oauth) and use that for every subsequent request.
[20:50:42] alex88: has joined #RubyOnRails
[20:51:52] baweaver: has joined #RubyOnRails
[20:52:09] alex88: has joined #RubyOnRails
[20:52:27] waka: has joined #RubyOnRails
[20:53:08] wa_r_ch_i__ld1: @tubbo when I use curl to login, it spits back this value in a hidden input called VIEWSTATE
[20:53:20] wa_r_ch_i__ld1: @tubbo do you think that value could be used somehow?
[20:53:55] lacuna: has joined #RubyOnRails
[20:54:16] n1lo: has joined #RubyOnRails
[20:55:03] bmalum: has joined #RubyOnRails
[20:55:13] __desmondhume: has joined #RubyOnRails
[20:55:19] StaticVoid: has joined #RubyOnRails
[20:55:57] Radar: @? Is this twitter? :)
[20:56:20] mozzarella: has joined #RubyOnRails
[20:56:21] Guest53: has joined #RubyOnRails
[20:56:24] benlieb: has joined #RubyOnRails
[20:57:11] DoubleMalt: has joined #RubyOnRails
[20:57:30] sdwrage: has joined #RubyOnRails
[20:59:29] dopie: has joined #RubyOnRails
[20:59:47] DoubleMalt: has joined #RubyOnRails
[21:00:05] alex88: has joined #RubyOnRails
[21:00:30] codezomb: has joined #RubyOnRails
[21:00:45] Cervajz_: has joined #RubyOnRails
[21:00:50] tubbo: good lord
[21:01:05] sinkensabe: has joined #RubyOnRails
[21:02:11] slash_nick: /nick @slash_nick
[21:03:11] roxtrongo: has joined #RubyOnRails
[21:03:16] tubbo: slash dot dash dot dash dot dash dot com
[21:03:21] matthewd: The real reason freenode discourages keeping +o, finally revealed
[21:03:39] tubbo: adaedra: ugh everybody hates that language
[21:03:48] Sdwrage_: has joined #RubyOnRails
[21:05:15] slash_nick: ACTION googled "sotru programming language"
[21:06:47] uri: has joined #RubyOnRails
[21:06:59] lemur: has joined #RubyOnRails
[21:07:40] nfk|laptop: has joined #RubyOnRails
[21:07:44] techandy1: has joined #RubyOnRails
[21:07:51] czerasz: has joined #RubyOnRails
[21:10:10] rubyonrailed: tubbo: thanks that ended up working
[21:11:00] techandy1: hi everybody
[21:11:47] dtordable: I'm getting it
[21:12:16] techandy1: I need help please, I am having problems installing ruby on rails on my Xbuntu system
[21:13:00] dtordable: techandy1: may I help you?
[21:13:15] czerasz: has joined #RubyOnRails
[21:13:32] dtordable: Install RVM on the system
[21:14:17] dtordable: then 'rvm install 2.2.3'
[21:14:36] techandy1: hi dtordable, I have tried rvm but it always returns an error when it tries to install rails
[21:14:55] dtordable: then get into the rails root
[21:15:09] techandy1: not sure how
[21:15:19] dtordable: after that 'bin/setup'
[21:15:26] techandy1: i have removed everything related to ruby and rails so that I can start over
[21:15:55] dtordable: wank a bit and have satisfacion
[21:16:25] AnomalousBit: has joined #RubyOnRails
[21:17:08] techandy1: how can I install ruby and rails and the mysql gem successfully?
[21:17:28] dented42: has joined #RubyOnRails
[21:17:40] dtordable: my way you get ruby
[21:17:59] Coldblackice: has joined #RubyOnRails
[21:18:06] techandy1: how dtordable
[21:18:08] Aeyrix: http://ryanbigg.com/2014/10/ubuntu-ruby-ruby-install-chruby-and-you//
[21:18:24] dtordable: if you have mysql libs there's no error
[21:18:42] Maletor: has joined #RubyOnRails
[21:19:07] dtordable: having everything
[21:19:14] techandy1: i have the mysql libs installed and getting errors
[21:19:42] dtordable: error is not a solution
[21:20:21] dtordable: can I tell you something?
[21:20:35] rickmasta: has joined #RubyOnRails
[21:20:56] dtordable: "real hackers use postgresql"
[21:20:58] Axsuul: has joined #RubyOnRails
[21:21:06] dtordable: cough cough
[21:21:26] manuelmesson: has joined #RubyOnRails
[21:21:46] adaedra: real programmers use the tool that fit their needs and requirements.
[21:21:49] dtordable: rails new --database=mysql
[21:21:52] Guest53: has joined #RubyOnRails
[21:22:01] Pazician: has joined #RubyOnRails
[21:22:12] dtordable: gives the chance
[21:22:49] pramsky: has joined #RubyOnRails
[21:23:18] tubbo: dtordable: if you're not gonna help just don't say anything at all
[21:23:35] tubbo: techandy1: what are the errors.
[21:24:08] cac: has joined #RubyOnRails
[21:24:53] techandy1: hi tubbo, I am trying to install ruby on rails through rvm I also need mysql gem.
[21:25:06] tubbo: techandy1: what are the errors
[21:25:11] tubbo: techandy1: !gist them
[21:25:11] helpa: techandy1: http://gist.github.com - Put your codes online with pretty syntax highlighting and the ability to embed it into other pages.
[21:25:26] messine: has joined #RubyOnRails
[21:27:33] ghanima: has joined #RubyOnRails
[21:28:04] Aeyrix: Really wish I'd taken up freenode oper when I had the chance
[21:28:20] Aeyrix: Just so I could abuse it and gline you for that postgresql comment
[21:28:52] techandy1: tubbo and helpa here is my issue https://gist.github.com/anonymous/c21546c31391af83a9c2
[21:29:19] alex88: has joined #RubyOnRails
[21:29:25] Aeyrix: techandy1: Follow the guide I linked earlier from start to finish.
[21:29:43] Aeyrix: It's quick, painless, and will have you jn the right path for upgrading later.
[21:29:46] tubbo: techandy1: looks like you don't have some hard dependency libs
[21:29:48] tubbo: apt-get baby
[21:29:58] Aeyrix: Turbo pls
[21:30:02] Aeyrix: Tubbo too
[21:30:06] Radar: techandy1: +1 for following the guide
[21:30:08] Radar: I wrote it
[21:30:09] Aeyrix: Apt-get away from me
[21:30:16] Radar: Guaranteed to work or your money back
[21:30:20] Aeyrix: Moin radar
[21:30:26] ghanima: hello all... I have this application that works find however I am seeing an odd issue with a particular clients... I have tested with multiple clients chrome,firefox, and opera. Any attempt to access any path in the application it seems as if rails knows how to load data from cache(asset caching and activerecord) Howevever with I use this gem https://github.com/taf2/curb all access to any path bypasses cache
[21:30:29] Radar: moin Aeyrix
[21:30:38] ghanima: How does an http client do that
[21:30:42] techandy1: I have installed all the files there were required, under this guide https://gorails.com/setup/ubuntu/14.04
[21:30:53] ghanima: or does rails only access caches from clients of a particular http client
[21:30:54] Radar: ghanima: probably passes through a cache busting header?
[21:31:11] techandy1: i don't know what I missed
[21:31:19] smathy: techandy1, maybe try this guide instead: http://www.nokogiri.org/tutorials/installing_nokogiri.html
[21:31:26] ghanima: Radar: I am resubmitting the same URL over and over
[21:31:38] neanderslob: has joined #RubyOnRails
[21:31:43] Aeyrix: It's due to rvm not downloading the Ruby development libraries it appears.
[21:31:51] Radar: Aeyrix is right
[21:31:54] Radar: techandy1: rvm implode --force
[21:32:00] Aeyrix: I forget the command to do that since I hate rvm
[21:32:13] Radar: techandy1: then follow this: http://ryanbigg.com/2014/10/ubuntu-ruby-ruby-install-chruby-and-you/
[21:32:18] techandy1: Aeyrix do you use the mysql gem?
[21:32:22] Radar: techandy1: If it doesn't work, I will help you fix it
[21:32:35] Aeyrix: I don't, but listen to Radar. He wrote rails books.
[21:32:44] smathy: techandy1, you're not even getting to the mysql part.
[21:33:15] Radar: Can confirm. Wrote some books.
[21:33:25] lacrymology: has joined #RubyOnRails
[21:33:54] matthewd: Does anyone use the mysql gem?
[21:33:59] Radar: 162,000 words in one of them, 42,000 in another.
[21:34:03] Radar: matthewd: mysql2 is the gem to use.
[21:34:22] Radar: And that doesn't count the 172.000 words on my blog.
[21:34:31] nocontrol: has joined #RubyOnRails
[21:34:42] cac: has joined #RubyOnRails
[21:35:14] StaticVoid: Radar: Can you post the link to your blog/books?
[21:35:25] matthewd: Radar: Yeah, that was my question. AFAIK, there are one or two big sites that still use mysql, but at least at one point, we were talking about kicking its adapter out of AR proper.
[21:35:27] Radar: StaticVoid: !mtwr
[21:35:27] helpa: StaticVoid: Multitenancy With Rails - https://leanpub.com/multi-tenancy-rails-2 - An excellent book that teaches you about building a Multitenanted Rails application. Written by Ryan Bigg.
[21:35:30] Radar: StaticVoid: !r4ia
[21:35:30] helpa: StaticVoid: Rails 4 in Action - http://manning.com/bigg2 - An excellent book combining Rails and TDD/BDD development. Written by Rebecca Skinner, Steve Klabnik, Ryan Bigg, Yehuda Katz
[21:35:33] Radar: StaticVoid: http://ryanbigg.com
[21:35:48] mghaig: has joined #RubyOnRails
[21:35:50] Radar: matthewd: we were? It's still really popular.
[21:36:21] matthewd: I'm talking mysql, not mysql2
[21:37:09] Radar: I wouldn't know. I'd hope that it did disappear :)
[21:37:43] Radar: mysql is dead, long live mysql2, etc.
[21:37:55] matthewd: Personally I'd be happy to see mysql2 go too, but that's not a slight against the *adapter* ;)
[21:38:05] Aeyrix: We get it.
[21:38:56] tubbo: you vape.
[21:39:00] matthewd: Aeyrix: huh?
[21:39:29] Aeyrix: Tubbo: *rolls away on heelies*
[21:40:43] rgtk: has joined #RubyOnRails
[21:40:54] theblang: has joined #RubyOnRails
[21:41:52] benlieb: has joined #RubyOnRails
[21:43:05] VeryBewitching: has joined #RubyOnRails
[21:44:05] n1ck7: has joined #RubyOnRails
[21:46:58] SteenJobs: has joined #RubyOnRails
[21:48:46] raldu_: has left #RubyOnRails: ()
[21:49:27] raldu: has joined #RubyOnRails
[21:49:57] techandy1: i'm currently following the guide
[21:50:55] arthurix: has joined #RubyOnRails
[21:51:28] adac: has joined #RubyOnRails
[21:51:34] mghaig: has joined #RubyOnRails
[21:53:18] Guest53: has joined #RubyOnRails
[21:54:53] rakm: has joined #RubyOnRails
[21:55:07] Radar: techandy1: the ryanbigg.com one?
[21:57:59] techandy1: I have seen online that some people are having issues with the mysql2 gem version 0.4.1. Is anybody here having an issue?
[21:58:49] Aeyrix: You won't have an issue with it if you follow that guide tbh
[21:59:32] AnomalousBit: has joined #RubyOnRails
[22:00:46] valerioleo: has joined #RubyOnRails
[22:01:09] rakm: has joined #RubyOnRails
[22:02:36] manuelmesson: has joined #RubyOnRails
[22:04:19] willardg: has joined #RubyOnRails
[22:05:02] it_tard: has joined #RubyOnRails
[22:05:56] threeminutemonta: has joined #RubyOnRails
[22:06:57] smathy: techandy1, yes, you'll want to hold it back under 0.4
[22:07:02] rakm: has joined #RubyOnRails
[22:07:41] lemur: has joined #RubyOnRails
[22:07:57] Axsuul: has joined #RubyOnRails
[22:08:28] Sdwrage_: has joined #RubyOnRails
[22:08:38] Axsuul: has joined #RubyOnRails
[22:09:54] techandy1: now i'm install rails
[22:10:32] noodman: has joined #RubyOnRails
[22:10:49] wethu: has joined #RubyOnRails
[22:11:26] rgtk: has joined #RubyOnRails
[22:12:40] weaksauce: has joined #RubyOnRails
[22:13:37] netzfisch: has joined #RubyOnRails
[22:13:45] weaksauce: has joined #RubyOnRails
[22:14:20] techandy1: when I install the mysql2 gem it will install the 0.4.1 version do I want one or 0.3.20.
[22:14:21] blackmesa: has joined #RubyOnRails
[22:16:01] techandy1: ok, I am now up to installing the mysql2 gem. Do I just run gem install mysql2 and get version 0.4.1 or what?
[22:16:35] Paradox: has joined #RubyOnRails
[22:18:15] smathy: techandy1, as I said, no, you won't want that. Hold it back under 0.4
[22:18:57] techandy1: how do I do that, sorry newbie to holding things back in ruby and rails
[22:19:40] smathy: techandy1, docs here: http://bundler.io/
[22:19:43] matthewd: techandy1: You shouldn't need to `gem install` anything... adding a '< 0.4' constraint in your Gemfile + `bundle install` should work
[22:19:48] SteenJobs: has joined #RubyOnRails
[22:19:58] manuelmesson: has joined #RubyOnRails
[22:20:47] StaticVoid: in a form, does the f.label just pull the fieldname? is there a mechanism to centrally store a label or do I just hardcode it in the form (view)
[22:21:37] matthewd: StaticVoid: http://guides.rubyonrails.org/i18n.html#translations-for-active-record-models
[22:22:02] dalpo: has joined #RubyOnRails
[22:22:42] StaticVoid: matthewd: thx checking that out now
[22:23:26] Cache_Money: has joined #RubyOnRails
[22:23:46] dkam: has joined #RubyOnRails
[22:24:46] Radar: Wait why are you holding the mysql2 version back?
[22:25:02] techandy1: unable to find how it hold back mysql2 0.4.1
[22:25:10] matthewd: Radar: Breakage :(
[22:26:03] Aeyrix: Radar: https://github.com/devlab-oy/pupenext/commit/8096b75c81eed62dc5bc97e4ce8bc23e6ca77526
[22:26:20] Radar: hahahahaha
[22:26:43] Radar: So that's what this is for https://github.com/radar/forem/pull/686
[22:26:48] Radar: 4.2.5 should be out soonish anyway
[22:27:16] Radar: Actually I thought it was coming out yesterday *looks it up*
[22:27:19] njero: has joined #RubyOnRails
[22:27:39] matthewd: Yeah, I don't think I've seen any regressions on rc2, so likely any time now
[22:27:39] messine: has joined #RubyOnRails
[22:27:40] Radar: "If no regressions are found expect the final release this Wednesday, on November 11, 2015"
[22:27:52] sdwrage: has joined #RubyOnRails
[22:27:52] Aeyrix: "If no regressions are found expect the final release this Wednesday, on November 11, 2015. "
[22:29:48] Radar: https://twitter.com/rafaelfranca/status/664570513478565888
[22:30:47] manuelmesson: has joined #RubyOnRails
[22:32:45] slash_nick: how does rails watch for asset changes in the development environment? like, how does it know whether it should recompile sass after changing a variable? and can i piggyback on what it's doing (run my own code when a change occurs)?
[22:33:42] platzhirsch: has joined #RubyOnRails
[22:34:00] matthewd: slash_nick: something something sprockets's internal cache, and you reeeally don't want to go there :'(
[22:34:11] slash_nick: matthewd: i'm [not] afraid i do
[22:35:20] platzhirsch: Just trying to understand old code of mine. I've implemented some singleton classes which I made accessible through implementing my own .all ... it extends ActiveModel::Naming... but what use is that? model_name()? By which Railsy methods is that used? https://github.com/platzhirsch/metadata-census/blob/master/app/models/metrics/metric.rb#L3
[22:35:54] matthewd: slash_nick: What do you need to do? Maybe there's an angle to hack it in from near the safety of the edges?
[22:35:55] smathy: platzhirsch, view helpers somewhere?
[22:36:00] smathy: platzhirsch, route helpers?
[22:36:04] smathy: platzhirsch, form
[22:36:08] platzhirsch: smathy: that makes sense, yeah route helpers, too
[22:37:17] marr: has joined #RubyOnRails
[22:37:27] quazimodo: has joined #RubyOnRails
[22:38:44] slash_nick: matthewd: loosely... in the dev environment, when an asset changes, concatenate (and interpolate erb in) several files, caching the result
[22:39:27] matthewd: And you can't just make those assets themselves?
[22:40:19] slash_nick: matthewd: nope.
[22:40:22] mghaig: has joined #RubyOnRails
[22:41:03] matthewd: And you can't build them on demand just for development? They have to be pre-compiled?
[22:41:17] platzhirsch: ah probably this one here "Default implementations of??model.model_name, which are used by ActionPack (for instance, when you do??render :partial => model" smathy cheers
[22:41:20] techandy1: ok I have one more question, when I run rails new (project name) -d mysql it will install 0.4.1 version of the mysql2 gem. how can I use mysql2 0.3.20 gem by default
[22:41:25] matthewd: (sorry to go over probably-obvious questions... I'm just really looking for a way out for you ;) )
[22:41:43] smathy: platzhirsch, np
[22:41:46] slash_nick: matthewd: not if i dont want devs seeing 3 second page load times...
[22:42:51] Palsson_: has joined #RubyOnRails
[22:43:01] smathy: techandy1, if it's really worth your time, rails templates: http://guides.rubyonrails.org/rails_application_templates.html
[22:43:42] njero: hey, is there a way to specify ams for an object from hash. like: {fruit: @fruit, status: {code: 200, message: "successful"}}. I need to serialize only @fruit
[22:44:01] matthewd: Isn't the first page going to have the delay either way? And then you could cache it, keyed on the relevant assets' current hashes.. or something?
[22:44:33] slash_nick: matthewd: no... the file changing should update the cached value... not the web request.
[22:44:57] tubbo: slash_nick: it uses the manifest.yml file iirc
[22:45:01] tubbo: (assets jawns)
[22:45:02] matthewd: Then you're on your own, because that's not how sprockets/rails does it
[22:45:05] slash_nick: matthewd: there's 3 files... one static, one with [mostly] just sass variables (whose values are read from a database), and a third static file... if any of those files change, it's time to re-compile... I understand what I'm asking the channel may be confusing, it's for sure a non-standard thing to do...
[22:46:14] matthewd: I mean.. it shouldn't be terribly difficult to rig up a thing with the FileUpdateChecker
[22:46:34] slash_nick: matthewd: perfec
[22:46:40] slash_nick: matthewd: perfect
[22:46:44] matthewd: Though even that only does the check on demand :|
[22:46:52] matthewd: Unless you're on master ;)
[22:46:58] slash_nick: well, nevermind then
[22:47:14] slash_nick: unless you're on master?
[22:48:07] slash_nick: i think i could deal with that, checking on a new request
[22:48:18] matthewd: https://github.com/rails/rails/pull/22254
[22:48:43] SteenJobs: has joined #RubyOnRails
[22:48:44] slash_nick: matthewd: that's the kind of thing i was after... i figured sprockets already had something i could hook into
[22:48:49] user1138: has joined #RubyOnRails
[22:49:08] matthewd: Naturally, you have options like backporting that, or just dropping down a level and using the listen gem -- the above is a pretty thin layer on top
[22:49:25] htmldrum: has joined #RubyOnRails
[22:50:13] rickmasta: has joined #RubyOnRails
[22:50:27] matthewd: Notice that even with the above, we're not doing the app reload until a request arrives... it's too common to see a series of changes, so we'd potentially be doing a bunch of useless work, right while you're trying to actually use your computer
[22:51:49] momomomomo: has joined #RubyOnRails
[22:51:54] [gmi]: has joined #RubyOnRails
[22:52:28] slash_nick: makes good sense, i'm satisfied
[22:52:57] techandy1: how can I do a template so that I make sure I use mysql2 -v 0.3.20?
[22:53:34] robbyoconnor: has joined #RubyOnRails
[22:54:26] Fire-Dragon-DoL: has joined #RubyOnRails
[22:54:53] baweaver: has joined #RubyOnRails
[22:54:59] dopie: in my test, I'm trying to test if when I goto the next page the "Test Company" would be already set... it works with me running through it myself but doesn't work on the tests
[22:55:03] dopie: what am i doing wrong?
[22:55:09] dopie: https://gist.github.com/staycreativedesign/e2821102def6ff8d5097
[22:55:34] dopie: this passes
[22:55:58] arthurix_: has joined #RubyOnRails
[22:56:49] slash_nick: matthewd: the feature allows us to push scss variable changes to end user without a commit or deploy; changes made by devs to templates are pushed to end user on next deploy, admin changes are pushed to end user immediately... FileUpdateChecker or listen will make sure I don't have to compromise developer sanity for the feature
[22:57:05] slash_nick: matthewd: thanks for your help :)
[22:57:39] matthewd: No worries, and good luck!
[22:57:46] dopie: err doesn't pass
[22:58:06] roxtrongo: has joined #RubyOnRails
[22:58:14] rakm: has joined #RubyOnRails
[22:58:17] pydave6367: has joined #RubyOnRails
[22:58:28] matthewd: techandy1: Just change the Gemfile after it gets generated; no need for a template
[22:58:34] slash_nick: matthewd: it's awesome! uncharted territory. proof of concept is done... a little bit of tooling to build with Fog to make it shippable
[22:58:59] EminenceHC: has joined #RubyOnRails
[23:00:11] roxtrongo: has joined #RubyOnRails
[23:00:13] slash_nick: (and a file watcher, to keep dev environment fast since sprockets is being bypassed)
[23:00:39] psyk: has joined #RubyOnRails
[23:01:05] Megamos: has joined #RubyOnRails
[23:01:22] willardg: has joined #RubyOnRails
[23:02:18] techandy1: thank you to everybody that helped me
[23:02:31] Megamos: has joined #RubyOnRails
[23:03:43] ebbflowgo: has joined #RubyOnRails
[23:04:54] Radar: teclator: np :)
[23:05:19] chipotle: has joined #RubyOnRails
[23:05:32] SteenJobs: has joined #RubyOnRails
[23:06:39] Radar: Whoops, wrong person
[23:06:46] Radar: techandy is gone. Sorry teclator!
[23:07:02] dtordable: found an interesting type for active records
[23:07:08] dideler: has joined #RubyOnRails
[23:07:15] dtordable: the enum type
[23:07:29] Radar: dtordable: https://bendyworks.com/rails-enum-sharp-knife/
[23:08:35] smathy: I still prefer other gems that let you store strings.
[23:09:28] czerasz: has joined #RubyOnRails
[23:09:31] dopie: Radar, trying to do TDD here...
[23:09:39] dopie: https://gist.github.com/staycreativedesign/e2821102def6ff8d5097
[23:09:53] dopie: My test fails because it can't find Test Company
[23:10:01] dopie: but Test Company is being set
[23:11:04] smathy: dopie, you only want Radar's help?
[23:11:23] dopie: not really but after reading his book
[23:11:27] smathy: dopie, profile[name] doesn't become `params[:profile_name]`
[23:11:41] alex88: has joined #RubyOnRails
[23:11:42] dtordable: Radar: cool article :)
[23:12:13] dopie: smatthy correct
[23:12:15] dopie: @company_name = params[:profile_name]
[23:12:21] dopie: it doesn't?
[23:12:37] matthewd: dopie: I don't understand your gist. How are the two views related? Where's @vendor coming from?
[23:13:05] matthewd: > it works with me running through it myself
[23:13:06] mary5030: has joined #RubyOnRails
[23:13:31] dopie: after a vendor is created, he has to create a profile, but not he vendor page he has to add Company name
[23:13:37] matthewd: You've manually clicked through that process, with this code, and it ended up on a page containing "Test Company"?
[23:14:36] matthewd: Oh, are we missing a vendor controller?
[23:15:36] willardg: has joined #RubyOnRails
[23:16:01] mbusch: has joined #RubyOnRails
[23:16:47] riotjones: has joined #RubyOnRails
[23:17:08] VeryBewitching: When using the JSON column in Postgres with ActiveRecord, is there a way to ensure the keys are symbolized globally when a record is retrieved with that column?
[23:17:10] matthewd: Is the problem just that have_content() doesn't look inside inputs?
[23:17:39] smathy: dopie, no it doesn't, take a look at the Parameters: line in your log.
[23:19:06] zpe: has joined #RubyOnRails
[23:19:07] mbusch: Max from Germany here - I am planning on finalising a release of my software and just wondered if I should wait for 4.2.5 to be released. Is it going to happen tonight?
[23:19:24] dopie: https://gist.github.com/staycreativedesign/5773ee67fc296a9c21e8
[23:19:36] smathy: mbusch, probably it will.
[23:20:03] dopie: smathy, there it is
[23:20:06] Palsson_: has joined #RubyOnRails
[23:20:13] rhizome: the question is whether you've adequately prepared for 4.2.6
[23:20:20] dopie: Parameters: {"profile_name"=>"This is the Test Company", "vendor_id"=>"33"}
[23:20:49] smathy: dopie, that's not coming from the form you're showing in the other gist.
[23:20:56] dopie: hmmm wait
[23:20:58] mbusch: rhizome: yes, fortunately we have - and we are eagerly waiting for mysql 0.4.0 as it might fix a few issues with an on-premise deployment at a customers of ours.
[23:21:16] rhizome: no mysql2?
[23:21:24] mbusch: mysql2, yes, sorry.
[23:21:57] matthewd: VeryBewitching: Blind guess, but it's possible something like `def my_json_column; super.tap(&:symbolize_keys!); end` might do the job?
[23:22:15] shmambo: has joined #RubyOnRails
[23:22:20] VeryBewitching: matthewd: Let me try that out, one sec..
[23:22:31] Radar: mbusch: It will be released tomorrow.
[23:22:36] matthewd: mbusch: https://twitter.com/rafaelfranca/status/664570513478565888
[23:22:42] Radar: mbusch: If you're super eager to use it, then use the Rails 4.2.5.rc2 gem.
[23:23:13] mbusch: thanks for the link, did not saw that before.
[23:23:40] mbusch: no, it's my very personal policy not to bring release candidates into our production release ;-)
[23:23:42] matthewd: Yeah, it looks like there'll be literally nothing changed since rc2: https://github.com/rails/rails/commits/4-2-5
[23:24:01] Radar: Release Candidates ARE going to be the release.
[23:24:03] VeryBewitching: matthewd: That works well, thanks for that. :D
[23:24:15] mbusch: huh ... indeed.
[23:24:16] Radar: As matthewd pointed out, there is no difference between Rails 4.2.5.rc2 and Rails 4.2.5.
[23:24:58] mbusch: Thank you for your feedback, guys.
[23:25:10] Ropeney: has joined #RubyOnRails
[23:25:34] dopie: smathy, there is 2 forms... the vendor new form which has profile[name]
[23:25:42] alb12: has joined #RubyOnRails
[23:25:45] Radar: mbusch: !rule14
[23:25:45] helpa: mbusch: We're not all guys here - while you probably didn't mean to be exclusive, not everybody feels that way. Maybe consider using "folks", "y'all" or "everyone" instead?
[23:26:21] Radar: not everyone is conscious of it
[23:26:22] mbusch: much appreciated, folks ;-)
[23:26:26] dopie: and th eprofile
[23:26:37] Radar: dopie: Is all the code in one gist yet?
[23:26:44] mbusch: I am from Germany ... I probably should be, as this is a nearly everyday discussion over here.
[23:26:51] dopie: Yes.. I'm not sure what other code he is looking for
[23:27:03] dopie: i got controllers, views
[23:27:40] TPBallbag: has joined #RubyOnRails
[23:27:44] Radar: https://gist.github.com/staycreativedesign/5773ee67fc296a9c21e8
[23:27:46] Radar: This is the gist that I see.
[23:27:55] alb12_: has joined #RubyOnRails
[23:28:04] dopie: https://gist.github.com/staycreativedesign/e2821102def6ff8d5097
[23:28:08] rakm: has joined #RubyOnRails
[23:28:15] Radar: Ok, there's another one.
[23:28:27] Radar: Show us the output of log/test.log from when that test runs please
[23:28:30] Radar: Edit that same gist
[23:28:50] djbkd: has joined #RubyOnRails
[23:30:33] Megamos: has joined #RubyOnRails
[23:30:34] wkoszek: Is "devise" the best thing for user management for Ruby? Looking for the lowest effort approach to get user/admin management solved, and preferably with FB/Twitter/G+ integration.
[23:30:43] Radar: wkoszek: Sure.
[23:30:44] matthewd: dopie: You've confirmed it's not just have_content not matching input attributes?
[23:30:57] Radar: wkoszek: Did you read Chapters 6 and 7 of Rails 4 in Action which cover the user/admin part at least?
[23:31:02] Radar: wkoszek: And then did you know about the omniauth gem?
[23:31:03] dopie: i assigned it another thing on the page
[23:31:04] dopie: and it worked
[23:31:21] mghaig: has joined #RubyOnRails
[23:31:30] matthewd: ACTION is confused
[23:31:33] tenderlove: has joined #RubyOnRails
[23:31:41] Radar: test.log ?
[23:31:47] matthewd: Doesn't that mean that *is* the problem?
[23:31:56] exadeci: has joined #RubyOnRails
[23:32:04] dopie: I know its going to the next page
[23:32:10] dopie: but its not getting the attribute I want it to test
[23:32:26] Radar: dopie: Looks to me like you're typing in here instead of showing your logs.
[23:32:37] Radar: I can help you with that if you'd like.
[23:32:44] wkoszek: Radar: Funny you metnioned it, since Rails 4 in Action is something I just saw on the bookshelf this weekend. I'll order it.
[23:32:49] matthewd: Radar: I asked a question
[23:32:54] Radar: wkoszek: :) It's the book that sevenseacat and I wrote.
[23:33:04] Radar: matthewd: Sorry, yes you did.
[23:33:08] wkoszek: Radar: Aha!
[23:33:15] dopie: tail -f log/test.log
[23:33:20] wkoszek: I didn't know poets hang out on this channel.
[23:33:24] annlewis: has joined #RubyOnRails
[23:33:31] Radar: dopie: Yeah, and then run your test and then copy all that new content into a new file on that Gist.
[23:33:36] Radar: We'll decipher it from there.
[23:34:13] wkoszek: Radar: It looked very interesting. I spent at least 10min looking through it.
[23:34:26] Radar: wkoszek: Which bookshelf did you see it on? A book store?
[23:35:00] wkoszek: Radar: I visited NYC this weekend and saw it there.
[23:35:15] Radar: wkoszek: nice :) Do you remember where exactly?
[23:35:23] Radar: I'm always interested to know who's stocking it
[23:35:37] Radar: quazimodo: good morning
[23:35:39] wkoszek: Radar: Will ask my gf and let you know.
[23:35:42] Radar: wkoszek: thanks :)
[23:35:53] nocontrol: has joined #RubyOnRails
[23:36:04] wkoszek: Radar: Might have been Broadway street, but I don't remember the store's name.
[23:36:05] ur5us: has joined #RubyOnRails
[23:36:19] Radar: wkoszek: There's a lot along broadway. hoping your gf can narrow it down :P
[23:36:45] Radar: wkoszek: It's on Amazon for $39.80 atm: http://www.amazon.com/Rails-Action-Revised/dp/1617291099
[23:36:51] Radar: Well, that's what it shows up as for me.
[23:37:17] matthewd: dopie: Humour me for a moment... stick `<%= @company_name %>` into profile#new.html.erb
[23:38:09] dopie: inside the form? or does it matter?
[23:38:17] matthewd: Doesn't matter
[23:38:27] quazimodo: redirect_to "#{SSO_APP}/users/sign_out", method: :delete doesn't work D:
[23:38:34] quazimodo: ACTION is saddness
[23:39:05] matthewd: quazimodo: Yeah... HTTP can't do that
[23:39:09] dopie: it passed
[23:39:21] wkoszek: ACTION notes this bookstore had a pretty good ollections of great tech literature.
[23:39:32] quazimodo: matthewd: :(
[23:39:33] matthewd: dopie: Right, so.. your problem is that your assertion is "wrong"
[23:39:58] quazimodo: recon there's a way to get a delete call happening on the sso app in the context of the current user?
[23:39:58] smathy: ACTION imagines the chaos that redirecting to non-GETs would create
[23:40:10] dopie: so what would my assertion in this situation be?
[23:40:18] wkoszek: Radar: The Strand, 828 Broadway, New York, NY 10003
[23:40:31] wkoszek: Radar: You're in NYC ?
[23:40:54] matthewd: dopie: I think it might be something like have_field('foo', value: "Test Company")
[23:42:21] matthewd: quazimodo: Well, you're trying to XSS the other app... so it depends how much it wants to cooperate :)
[23:42:30] gambl0re: has joined #RubyOnRails
[23:42:56] quazimodo: i suppose i need to get my child app to make an api call to the main app with the users id to get that app to sign it out
[23:43:10] matthewd: As an SSO provider, I would expect it to provide a suitable mechanism
[23:43:42] Maletor: has joined #RubyOnRails
[23:48:29] Radar: wkoszek: No, but I know people who are and who might want to buy the book.
[23:48:46] StaticVoid: Trying to use l18n to show 'pretty' field names (labels) : https://gist.github.com/RobvanB/0ba71cada13311b2632a
[23:48:52] unreal: has joined #RubyOnRails
[23:48:59] StaticVoid: Can't get it to work, I'm sure I'm doing something wrong
[23:49:10] Radar: wkoszek: I'm about a gazillion miles away: down in Melbourne, Australia
[23:49:27] ebbflowgo: has joined #RubyOnRails
[23:50:06] wkoszek: Radar: I see. Is it available in the e-form?
[23:50:25] wkoszek: Radar: I see your 1st book was via LeanPub
[23:50:29] Radar: wkoszek: Yeah, there's an insert in the front cover that if you rip open will give you info on how to get the ebook
[23:50:39] Radar: wkoszek: MTWR was the 2nd book I wrote, in between Rails 3 in Action and Rails 4 in Action.
[23:50:40] smathy: StaticVoid, !gist-usage - for next time
[23:50:40] helpa: StaticVoid: How to use Gist properly: https://github.com/radar/guides/blob/master/using-gist.markdown
[23:51:11] wkoszek: Radar: I'm in the middle of Guy Kawasaki's APE book wrt. self-publishing.
[23:51:45] Radar: wkoszek: Oh nice :)
[23:52:18] StaticVoid: smathy: thanks - reading up on it now
[23:52:55] robbyoconnor: has joined #RubyOnRails
[23:53:00] czerasz: has joined #RubyOnRails
[23:53:31] Lytol: has joined #RubyOnRails
[23:53:51] nertzy: has joined #RubyOnRails
[23:54:06] smathy: StaticVoid, your YAML file looks fine, did you restart your app? If so, did you restart spring?
[23:54:20] smathy: StaticVoid, it's meant to be updated dynamically, but sometimes spring gets stuck.
[23:54:37] dopie: smathy, Radar , matthewd thank you.... i tried it your way matthewd but was unsuccessful so i did
[23:54:40] dopie: find_field('Company Name').value.should eq 'Test Company'
[23:55:14] pwnd_nsfw: has joined #RubyOnRails
[23:56:21] StaticVoid: smathy: I killed the rails server process and restarted it (before I posted here)
[23:56:27] TheNet: has joined #RubyOnRails
[23:56:56] flip_digits: has joined #RubyOnRails
[23:58:16] simplyianm: has joined #RubyOnRails
[23:58:46] StaticVoid: smathy: hang on.. id10T error I think
[23:59:01] RegulationD: has joined #RubyOnRails
[23:59:09] njero: has joined #RubyOnRails