« Back to channel list

#RubyOnRails - 27 September 2015

« Back 1 day Forward 1 day »
[00:00:49] subshad: has joined #RubyOnRails
[00:03:10] nettoweb: has joined #RubyOnRails
[00:04:53] one_zero: has joined #RubyOnRails
[00:04:54] lipoqil: has joined #RubyOnRails
[00:06:30] Scripore: has joined #RubyOnRails
[00:12:55] acti0nman: has joined #RubyOnRails
[00:16:47] bronson: has joined #RubyOnRails
[00:19:01] SteenJobs: has joined #RubyOnRails
[00:19:40] VeryBewitching: has joined #RubyOnRails
[00:22:23] ariedler: has joined #RubyOnRails
[00:26:43] FrankD: has joined #RubyOnRails
[00:26:47] FrankD: has joined #RubyOnRails
[00:27:17] jun_: has joined #RubyOnRails
[00:28:14] maokomioko: has joined #RubyOnRails
[00:29:16] subshad: has joined #RubyOnRails
[00:29:57] scoot: has joined #RubyOnRails
[00:30:02] jun_: has joined #RubyOnRails
[00:34:37] ericjphillips: has joined #RubyOnRails
[00:35:01] annlewis: has joined #RubyOnRails
[00:37:40] RegulationD: has joined #RubyOnRails
[00:43:34] simkessy: has joined #RubyOnRails
[00:45:01] das3in: has joined #RubyOnRails
[00:46:48] das3in: Here's a gist: https://gist.github.com/das3in/cac1a1fd8c55448176da I'm getting "undefined method question_name" when trying to render this [nested] form.
[00:47:40] kayloos: has joined #RubyOnRails
[00:47:53] pwnd_nsfw: because ff is a form builder
[00:47:54] pwnd_nsfw: not your model
[00:48:12] pwnd_nsfw: You want the label to be something that probably doesn't exist yet
[00:48:14] frigidco1e: has left #RubyOnRails: ()
[00:48:28] das3in: It exists, I made it in the rails console (why I posted that too)
[00:48:41] pwnd_nsfw: Ok, well ff still holds
[00:49:00] baweaver: has joined #RubyOnRails
[00:49:19] das3in: What do you mean still holds?
[00:49:31] blackmesa: has joined #RubyOnRails
[00:49:36] das3in: I'm just confused 'cause it works exactly as intended in the Rails.c
[00:49:48] pwnd_nsfw: still your form builder and not the model
[00:50:30] pwnd_nsfw: can't call question_name on a form builder
[00:50:35] das3in: So what's the better way to get what I'm trying to achieve?
[00:51:07] pwnd_nsfw: Not make the label what the field input is supposed to be?
[00:51:11] pwnd_nsfw: like, why would you do that
[00:51:26] targaf: has joined #RubyOnRails
[00:51:55] sandstrom: has joined #RubyOnRails
[00:52:14] das3in: As a placeholder. I'm going to end up nesting further. I'm going to end up looping through the questions and the form inputs are actually going to be for the 'answers' model
[00:52:26] das3in: test* not placeholder
[00:52:46] pwnd_nsfw: Then you wouldn't do it on the label
[00:53:16] pwnd_nsfw: if there's already a question in database, it'll put the text there automatically
[00:53:37] pwnd_nsfw: if there isn't, you can add placeholders to textfields by xx.text_field :derp, placeholder: 'This is the placeholder'
[00:53:56] Cervajz: has joined #RubyOnRails
[00:54:57] chills42: has joined #RubyOnRails
[00:55:04] rickmasta: has joined #RubyOnRails
[00:55:43] mices: is there a column naming convention for forgein key id in rails where every table has an id field
[00:56:12] das3in: Ok so I'm moved out of the form. Just trying to print the question names (not in a form at all) @questions.each do |question| - getting undefined method `each' for #<Question:0x007fbb1b1c88a0>
[00:56:24] das3in: So the problem is in my controller
[00:56:25] huck5: I'm still trying to set up a HABTM relationships between a Strain and Effect, so that I don't create multiple Effects for each association with a Strain. Additionally, multiple Effects with the same State/Adjustment combination can not be created (each Effect is unique). When I'm saving my Strain with an existing Effect I get an error saying that the Effect can not be created (because it's state/adjustment are not unique). But I don't w
[00:56:25] huck5: ant it to be created, since it exists. I just want the association to be added. My intended behaviour is that: When an Effect exists - Simply add the assocation to the HABTM join table for Effect/Strain. Should I just be using a has_many_through instead? Or how, from in my controller, can I access the effects_strains (join) table? https://gist.github.com/Huck5/6be050ff0c9a54492e82#file-strains_controller-rb-L31
[00:56:29] pwnd_nsfw: mices, that's something you find in a beginner's tutorial
[00:56:46] pwnd_nsfw: huck5, you're still at this? XD
[00:56:51] huck5: :'( yes..
[00:57:04] ellisTAA: has joined #RubyOnRails
[00:57:07] huck5: I started again in an attempt to simplify things :P.
[00:57:09] pwnd_nsfw: das3in, what does your question model look like
[00:57:12] stardiviner: has joined #RubyOnRails
[00:57:32] pwnd_nsfw: Also, @questions seems to not be an array of things
[00:57:52] pwnd_nsfw: Show me exam model too, while you're at it das3in
[00:57:54] ellisTAA: has left #RubyOnRails: ()
[00:58:35] huck5: pwnd_nsfw, I added some validates_uniqueness_of parameters, which helped a bunch of things. But now, when an Effect exists, it still seems to be trying to create a new one. So my logic now is to iterate over the Strain's effects and, if the effect exists, manually create the association and remove it from the Strain's collection. I'm just not sure how to access the habtm join-table from inside my controller.
[00:58:36] pwnd_nsfw: huck5, find_or_create_by
[00:59:26] huck5: pwnd_nsfw, i read something about that. So then I can just iterate over the Strain.effects collection, call find_or_create_by, and then remove the effect from the Strain's collection? I shall give that a try anyway.
[01:00:40] das3in: pwnd_nsfw gist updated. The models seem like they're fine 'cause they're wokring in the console properly
[01:01:08] pwnd_nsfw: huck5, would you happen to have all of this code on github, per chance?
[01:01:58] huck5: pwnd_nsfw, you betcha! Just need to push my recent changes.
[01:02:22] pwnd_nsfw: das3in, @questions = @exam.questions.build will give you one question
[01:03:21] baweaver: So, fun thing I just found out you can do with ActiveRecord
[01:03:23] pwnd_nsfw: not the collection, where as @exam.questions would
[01:03:34] pwnd_nsfw: sup baweaver
[01:04:01] pwnd_nsfw: das3in, pm me the link to your github when you push. I'm going to go take a shower real quick.
[01:04:03] ellisTAA: has joined #RubyOnRails
[01:04:15] baweaver: Model.where('name LIKE :name OR age > :age AND created_at > :date', {name: baweaver, age: 20, date: 5.days.ago})
[01:04:33] baweaver: http://apidock.com/rails/ActiveRecord/Base
[01:04:46] chills42_: has joined #RubyOnRails
[01:04:55] baweaver: well, quotes around the name, but you get the point
[01:04:55] pwnd_nsfw: baweaver, does that work? I mean... should it be name: 'baweaver' ? :P
[01:05:00] PhlowHome: has left #RubyOnRails: ()
[01:05:08] baweaver: Much handier than 3+ ?s
[01:05:12] pwnd_nsfw: Its like prepared statements
[01:05:25] pwnd_nsfw: Easier to read, I'd say
[01:05:26] baweaver: that, and you have full SQL goodness in there
[01:05:53] ellisTAA: can someone comment on my user schema, i???m wondering if i have to change password field to hashed_password in order to use bcrypt ...
[01:05:59] baweaver: you can also use params.to_h.slice(:what, :i, :want) as the interpolation conditions
[01:06:00] w09x: has joined #RubyOnRails
[01:06:19] baweaver: or expand that to defaults.merge(params...) to have a defaulted search constructor.
[01:06:36] baweaver: doing another article on aggregates through has_many and other relationships
[01:06:44] baweaver: as I see a ton of code that's not aware you can do that.
[01:06:58] RockLee: has joined #RubyOnRails
[01:07:08] baweaver: Such as you want all Articles with 5+ Comments
[01:07:29] bkulbida: has joined #RubyOnRails
[01:07:40] das3in: https://github.com/das3in/pelorus
[01:07:46] das3in: eating dinner brb
[01:08:05] baweaver: or you want an article with many tags where Tag is (key: String, value: String)
[01:08:18] baweaver: that one is particularly nasty to get
[01:08:29] baweaver: either by subqueries or multiple anonymous inner joins
[01:09:15] das3in_: has joined #RubyOnRails
[01:13:40] scoot: has joined #RubyOnRails
[01:14:32] baweaver: What I would give though for something like SQL IN except ALL
[01:16:22] baweaver: Such as Article.where('tags = ((key = :k1, value = :v1), (key = :k2, value = :v2))', {k1: 'Name', v1: 'Foo', k2: 'Version', v2: '1'})
[01:16:54] baweaver: Make the key the type instead
[01:17:11] woods: has joined #RubyOnRails
[01:17:20] baweaver: Is this making any sense or am I babbling to myself? (Which is fine, I tend to do that.)
[01:17:43] bronson: has joined #RubyOnRails
[01:18:20] baweaver: ....would it be evil to make tags a STI interface and dynamically generate tag classes?
[01:18:20] woods: hello all
[01:19:52] baweaver: Anyways, I'll probably be playing with this a bit.
[01:20:42] iateadonut: has joined #RubyOnRails
[01:21:17] superlou: has joined #RubyOnRails
[01:23:48] ellisTAA: how can i create a new user with strong params, without storing the plain password before it gets encrypted?
[01:26:30] yashinbasement: has joined #RubyOnRails
[01:31:18] Maletor: has joined #RubyOnRails
[01:33:50] pwnd_nsfw: EllisTAA, of course
[01:34:22] pwnd_nsfw: encrypted_password:string in the database "has_secure_password" in the model
[01:35:50] annlewis: has joined #RubyOnRails
[01:35:54] ellisTAA: pwnd_nsfw: could u take a look at my code and help me figure out why im getting this error message https://gist.github.com/ellismarte/c7290a39751367b7c508#file-error-txt-L1
[01:36:08] Pathfinder_: has joined #RubyOnRails
[01:36:30] ellisTAA: i think its saying i need to change the field in schema from password to password hash?
[01:36:34] pwnd_nsfw: Ok, so, a lot of wrong going on lol
[01:36:52] pwnd_nsfw: You can literally change all of the contents of your User model to "has_secure_password"
[01:36:57] pwnd_nsfw: this method handles everything for you
[01:37:08] ellisTAA: you???re saying i don???t need bcrypt?
[01:37:21] pwnd_nsfw: in your database, rename "password" to "encrypted_password"
[01:37:25] pwnd_nsfw: you don't need to include it, no
[01:37:41] pwnd_nsfw: I think you need it in your gem file though
[01:38:09] ellisTAA: do i need those password methods in my model?
[01:38:16] pwnd_nsfw: No, literally
[01:38:20] pwnd_nsfw: class .....
[01:38:23] pwnd_nsfw: has_secure_password
[01:38:52] pwnd_nsfw: and in your controller, you don't need to assign password to anything
[01:38:59] pwnd_nsfw: @user User.new(user_params)
[01:39:01] ellisTAA: let me update the gist real quick
[01:39:04] pwnd_nsfw: if @user.save
[01:39:08] pwnd_nsfw: # it saved yey
[01:39:14] pwnd_nsfw: # it didn't boooo
[01:39:36] ellisTAA: so this is it https://gist.github.com/ellismarte/c7290a39751367b7c508
[01:39:53] pwnd_nsfw: Make sure bcrypt is in your gem file
[01:39:56] ellisTAA: what happened to the complicated bcrypt shit?
[01:40:04] pwnd_nsfw: ummm, they made it uncomplicated?
[01:40:11] pwnd_nsfw: why keep complicated things complicated
[01:40:13] pwnd_nsfw: that seems silly
[01:40:37] ellisTAA: wow that???s awesome
[01:40:43] ellisTAA: what if i want to add salt?
[01:40:48] pwnd_nsfw: Salt is already
[01:40:54] pwnd_nsfw: part of the encryption
[01:41:02] pwnd_nsfw: it's all stored in encryped_password
[01:41:04] ahmgeek: has joined #RubyOnRails
[01:41:12] pwnd_nsfw: as one string, but you can parse it
[01:41:26] pwnd_nsfw: I think there's a method to return the salt.
[01:41:43] ahmgeek: hey buddies, how My fields_for wont work on a form_for inside ajaxed modal ?
[01:42:05] pwnd_nsfw: oh shit, I lied. EllisTAA, it's supposed to be password_digest
[01:42:09] pwnd_nsfw: not encrypted_password
[01:42:17] pwnd_nsfw: that's devise !
[01:44:02] ellisTAA: it didn???t encrypt it ???
[01:44:21] pwnd_nsfw: ur a dam liar!
[01:44:30] pwnd_nsfw: Umm, lets see.. no errors at all?
[01:44:45] ellisTAA: https://gist.github.com/ellismarte/c7290a39751367b7c508
[01:44:54] pwnd_nsfw: ahmgeek, who the fuck knows. No one has seen any code lol
[01:45:08] pwnd_nsfw: EllisTAA, in your controller
[01:45:10] pwnd_nsfw: it's still :password
[01:45:17] ahmgeek: :D , damn, such a savag.
[01:45:57] pwnd_nsfw: EllisTAA, because it takes in the values from the form (which should be :password), and gives it to the model, then the model does all the converting to hash etc, stores it correctly blah blah
[01:46:48] ellisTAA: so you???re saying strong params should be called password?
[01:46:58] pwnd_nsfw: ye, 'cause it's the field name from the form
[01:47:45] ahmgeek: https://gist.github.com/ahmgeek/c084db99a9b77d94f1ac
[01:47:49] ahmgeek: here's the code.
[01:47:58] ellisTAA: pwnd_nsfw: it worked
[01:48:10] ahmgeek: any how, I am trying to get this inside a show template for another controller.
[01:48:21] ahmgeek: I've initialized the @contributuion in that show action.
[01:49:22] pwnd_nsfw: ahmgeek, no errors or anything? What happens?
[01:50:12] ahmgeek: it was throwing an error about template is missing, due to it's a contribution Controller, but I am just using it in my Story controller. in the Show action specifically.
[01:50:20] ahmgeek: I made a dump template.
[01:50:28] ahmgeek: it worked, now it's just not rendering.
[01:50:58] ahmgeek: however, it render at the Story.new template.
[01:51:23] ahmgeek: the template of the Parent Model/Controller AKA Story.
[01:51:58] pwnd_nsfw: What's the Contributions controller look like?
[01:52:05] pwnd_nsfw: 'cause that's where this form is being sent to
[01:52:55] ahmgeek: https://gist.github.com/ahmgeek/062f4d1560b8fedd2288 don't Panic.
[01:53:24] ahmgeek: yep, I guess I must initiate the posts fields in the new ?
[01:53:56] ahmgeek: no I am not
[01:55:01] ahmgeek: it's the same as Story controller. just trimmed it a little to exclude the Story part.
[01:56:38] stannard: has joined #RubyOnRails
[01:57:54] pwnd_nsfw: Your controllers are chunky af
[01:59:09] ahmgeek: any ideas though ?
[02:00:12] voltalio: has joined #RubyOnRails
[02:00:58] pwnd_nsfw: I feel like I have the wrong controller lol
[02:01:33] ahmgeek: I needed to put Post.new
[02:01:40] ahmgeek: to get the fields for showing up.
[02:01:45] ahmgeek: but, is it will matter ?
[02:01:54] ahmgeek: and why it worked before :(
[02:01:55] pwnd_nsfw: or @contribution.posts.build
[02:02:17] ahmgeek: why it worked on the other controller though ?
[02:03:00] pwnd_nsfw: I don't know why you're posting one model's data to another model's controller
[02:05:21] ahmgeek: Story model have many contributions, contribution has many ( posts, videos, etc..) when I start a story, I make a contribution at first, then in the Show action of the story I may make another contribution, which is also in another model
[02:05:30] ahmgeek: makes sense ? or I am fucked up ?
[02:06:11] ahmgeek: which is also in another controller *
[02:07:26] pwnd_nsfw: I believe you need a rethink of your architecture.
[02:08:17] pwnd_nsfw: Perhaps nested routes
[02:08:27] ahmgeek: :D ok, after the delivery, and after what I'v learned so far as a Noob, gonna reas a book about rails too. enough thinking with ASP.NET mind.
[02:08:27] pwnd_nsfw: and move some of that code to a model, jebus
[02:08:39] pwnd_nsfw: oh lawd haha
[02:08:53] pwnd_nsfw: Rails 4 in Action is a p sexy book
[02:09:34] ahmgeek: gonna read that bitch, another one please, one book is only for kids, I need more :mussle:
[02:10:03] pwnd_nsfw: Like, to get started with a good foundation, that's the only book you need
[02:10:13] pwnd_nsfw: then maybe Crafting Rails 4 Applications for more advanced
[02:10:20] ahmgeek: thanks mate. your twitter handler please.
[02:10:26] pwnd_nsfw: @sirunclecid
[02:10:39] ahmgeek: gonna give you a big fuckin hug
[02:10:54] pwnd_nsfw: Does twitter have a button for that? :P
[02:11:43] ahmgeek: it's just a virtual hug mate :D. I don't feel like I need to hug another man physically, however, it's a built in function here on Egypt.
[02:11:56] mices: if the path to my image is app/assets/images/press_releases/1.png how do i build an <%image_tag
[02:12:54] pwnd_nsfw: mices, http://stackoverflow.com/questions/21502608/rails-4-asset-pipeline-image-subdirectories
[02:14:43] mices: i'm just trying to build the tag
[02:15:05] mices: it already finds the images in app/assets/images
[02:15:14] mices: i just added the subdirectory press_releases
[02:15:36] mices: so i want it to start looking in press_releases ...
[02:15:58] pwnd_nsfw: I'm going to ignorantly say that's not how Rails handles it
[02:16:16] mices: i'm just trying to build an image tag in my view
[02:16:38] pwnd_nsfw: just reference the file name like regular
[02:16:51] mices: if i put <%= image_tag ("logo.png") %> my logo displays
[02:17:07] pwnd_nsfw: Sounds great lol
[02:17:08] PhlowAlso: has left #RubyOnRails: ()
[02:17:15] mices: i'm inserting a variable, the only thing in the database is the 1
[02:17:31] mices: so the 1 is coming from the database as press_release.image_url
[02:17:40] mices: and available to the view as that
[02:17:59] seank_: has joined #RubyOnRails
[02:18:40] pwnd_nsfw: "Images can also be organized into subdirectories if required, and then can be accessed by specifying the directory's name in the tag:"
[02:18:52] pwnd_nsfw: <%= image_tag "icons/rails.png" %>
[02:19:05] pwnd_nsfw: So, like...
[02:19:10] pwnd_nsfw: what's the issue mices
[02:19:14] mices: ok i wanna do that but substitute a var for "rails"
[02:20:17] pwnd_nsfw: string concatenation?..
[02:20:30] pwnd_nsfw: image_url wouild return what
[02:20:37] pwnd_nsfw: as a sample..
[02:20:45] pwnd_nsfw: would it return "my_image.derp"?
[02:23:52] awoods: has joined #RubyOnRails
[02:24:28] charliesome: has joined #RubyOnRails
[02:24:58] pontiki: has joined #RubyOnRails
[02:26:29] mices: image_url="press_releases/"+@press_release.image_url+".png"
[02:26:55] mices: <%= image_tag("image_url") %>
[02:27:18] pwnd_nsfw: so just put fuckin'
[02:27:21] pwnd_nsfw: image_url without quotes
[02:30:40] nettoweb: has joined #RubyOnRails
[02:31:31] that1guy: has joined #RubyOnRails
[02:35:14] CheckYourSix: has joined #RubyOnRails
[02:35:47] that1guy: has left #RubyOnRails: ()
[02:35:49] that1guy: has joined #RubyOnRails
[02:36:44] annlewis: has joined #RubyOnRails
[02:38:34] RegulationD: has joined #RubyOnRails
[02:41:30] that1guy: has left #RubyOnRails: ()
[02:41:47] that1guy: has joined #RubyOnRails
[02:42:08] Cervajz: has joined #RubyOnRails
[02:44:29] smathy: has joined #RubyOnRails
[02:45:40] that1guy: has left #RubyOnRails: ()
[02:45:41] that1guy: has joined #RubyOnRails
[02:52:23] charliesome: has joined #RubyOnRails
[02:55:05] SteenJobs: has joined #RubyOnRails
[02:56:05] dikaio: has joined #RubyOnRails
[02:58:16] willard: has joined #RubyOnRails
[02:58:50] charliesome: has joined #RubyOnRails
[02:59:33] dikaio: has joined #RubyOnRails
[03:00:49] michaeldeol: has joined #RubyOnRails
[03:01:04] mrtomme: has joined #RubyOnRails
[03:03:52] willardg: has joined #RubyOnRails
[03:04:56] willardg: has left #RubyOnRails: ()
[03:05:02] willardg: has joined #RubyOnRails
[03:05:39] ngr: has joined #RubyOnRails
[03:05:52] Tempesta: has joined #RubyOnRails
[03:06:08] willardg: I'm looking for some help with devise
[03:08:26] dikaio: has joined #RubyOnRails
[03:09:56] braincrash: has joined #RubyOnRails
[03:10:26] nya: has joined #RubyOnRails
[03:10:34] jenrzzz: has joined #RubyOnRails
[03:11:15] willardg: I have devise set up, but I also have a user model and controller. I'm missing data when I try to render user info on the profile page.
[03:11:19] willardg: https://github.com/Willardgmoore/Dating-app
[03:12:59] roxtrongo: has joined #RubyOnRails
[03:18:52] willardg: dikaio any thoughts?
[03:19:33] bronson: has joined #RubyOnRails
[03:19:38] Joufflu: has joined #RubyOnRails
[03:20:05] Joufflu: has joined #RubyOnRails
[03:20:27] willardg: has left #RubyOnRails: ("Textual IRC Client: www.textualapp.com")
[03:20:28] willardg: has joined #RubyOnRails
[03:20:54] Joufflu: has joined #RubyOnRails
[03:21:11] willardg: has joined #RubyOnRails
[03:21:29] mices: <% if press_release.image_url > " " %>
[03:24:55] ngr: has joined #RubyOnRails
[03:27:01] jun_: has joined #RubyOnRails
[03:27:18] fedexo: has joined #RubyOnRails
[03:29:03] argami: has joined #RubyOnRails
[03:29:34] montagesoftware: has joined #RubyOnRails
[03:31:23] youngbaks: has joined #RubyOnRails
[03:33:54] baweaver: has joined #RubyOnRails
[03:35:47] thejamespinto: has joined #RubyOnRails
[03:35:59] rboyd: has joined #RubyOnRails
[03:37:02] tw1sted: has joined #RubyOnRails
[03:37:19] annlewis: has joined #RubyOnRails
[03:40:30] The_Phoenix: has joined #RubyOnRails
[03:47:33] willardg: has joined #RubyOnRails
[03:48:14] rickmasta: has joined #RubyOnRails
[03:48:32] linocisco: has joined #RubyOnRails
[03:50:46] rushed: has joined #RubyOnRails
[03:51:31] FCser: has joined #RubyOnRails
[03:56:35] montagesoftware: has joined #RubyOnRails
[03:56:43] linocisco: who is using vagrant ?
[03:57:04] ghostlines: has joined #RubyOnRails
[03:59:26] stardiviner: has joined #RubyOnRails
[03:59:48] thejamespinto: has joined #RubyOnRails
[04:10:05] fcser_: has joined #RubyOnRails
[04:11:47] bruno-: has joined #RubyOnRails
[04:13:04] linocisco: is rubyon rails nothing without internet?
[04:13:57] linocisco: what is typical use of rubyonrails?
[04:14:18] mikebonar: has joined #RubyOnRails
[04:14:39] mikebonar: has left #RubyOnRails: ()
[04:15:47] rushed: has joined #RubyOnRails
[04:18:14] argami: has left #RubyOnRails: ()
[04:20:25] bronson: has joined #RubyOnRails
[04:25:16] nahtnam: has joined #RubyOnRails
[04:30:19] Cervajz: has joined #RubyOnRails
[04:33:23] rhizome: dynamic web sites
[04:34:42] mikebonar: has joined #RubyOnRails
[04:34:54] mikebonar: has left #RubyOnRails: ()
[04:38:12] annlewis: has joined #RubyOnRails
[04:39:23] RegulationD: has joined #RubyOnRails
[04:39:59] roxtrongo: has joined #RubyOnRails
[04:41:36] webdestroya: has joined #RubyOnRails
[04:43:41] willardg: has joined #RubyOnRails
[04:47:42] melonstorm: has joined #RubyOnRails
[04:47:50] craysiii: has joined #RubyOnRails
[04:50:52] rushed: has joined #RubyOnRails
[04:52:00] noobda: has joined #RubyOnRails
[04:54:35] qejk: has joined #RubyOnRails
[04:54:42] danlucraft: has joined #RubyOnRails
[04:56:24] nyandoge: has joined #RubyOnRails
[05:02:00] nahtnam: has joined #RubyOnRails
[05:06:07] raunicolae: has joined #RubyOnRails
[05:07:03] alex88: has joined #RubyOnRails
[05:09:22] mices: is there a gem to build an apk from your website?
[05:10:32] djbkd: has joined #RubyOnRails
[05:12:33] wldcordeiro: has joined #RubyOnRails
[05:15:42] tw1sted: has joined #RubyOnRails
[05:15:55] rhizome: you may be looking for ruboto
[05:16:09] anyway: has joined #RubyOnRails
[05:16:51] beauby: has joined #RubyOnRails
[05:21:22] bronson: has joined #RubyOnRails
[05:22:35] rickmasta: has joined #RubyOnRails
[05:24:00] Gustavo: has joined #RubyOnRails
[05:24:30] yardenbar: has joined #RubyOnRails
[05:31:26] maz-dev: has joined #RubyOnRails
[05:31:45] armyriad: has joined #RubyOnRails
[05:38:52] annlewis: has joined #RubyOnRails
[05:49:34] Cervajz: has joined #RubyOnRails
[05:51:35] Cervajz_: has joined #RubyOnRails
[06:00:21] abuzze: has joined #RubyOnRails
[06:02:06] amortimer1: has joined #RubyOnRails
[06:02:55] _fortis: has joined #RubyOnRails
[06:05:15] raunico3: has joined #RubyOnRails
[06:05:33] jun_: has joined #RubyOnRails
[06:07:59] alex88: has joined #RubyOnRails
[06:10:13] sanjayu: has joined #RubyOnRails
[06:18:14] sarink: has joined #RubyOnRails
[06:18:52] dionysus69: has joined #RubyOnRails
[06:18:53] Cervajz: has joined #RubyOnRails
[06:22:15] bronson: has joined #RubyOnRails
[06:22:36] `based_pdev`: has joined #RubyOnRails
[06:23:23] dionysus69: is it possible to send get request of a checkbox group by avoiding a separate button for submission? I want to send get requests when user simply checks or unchecks the fields
[06:26:21] Gustavo: has joined #RubyOnRails
[06:36:39] blackmesa: has joined #RubyOnRails
[06:38:31] lyuben_: has joined #RubyOnRails
[06:39:19] lyuben_: has joined #RubyOnRails
[06:39:37] annlewis: has joined #RubyOnRails
[06:40:18] RegulationD: has joined #RubyOnRails
[06:40:32] Glyphik: has joined #RubyOnRails
[06:45:44] TomyLobo: has joined #RubyOnRails
[06:47:14] pawnbox: has joined #RubyOnRails
[06:50:22] ereslibre: has joined #RubyOnRails
[06:53:29] eliasbagley: has joined #RubyOnRails
[06:54:43] dionysus69: has joined #RubyOnRails
[06:55:42] youngbaks: has joined #RubyOnRails
[06:56:27] rhizome: javascript
[06:56:43] n008f4g_: has joined #RubyOnRails
[06:57:07] lyuben_: has joined #RubyOnRails
[06:57:19] Cervajz: has joined #RubyOnRails
[06:57:48] Cervajz__: has joined #RubyOnRails
[07:02:16] closures999: has joined #RubyOnRails
[07:06:40] charliesome: has joined #RubyOnRails
[07:08:47] alex88: has joined #RubyOnRails
[07:09:02] bmalum: has joined #RubyOnRails
[07:09:55] charliesome: has joined #RubyOnRails
[07:14:47] arup_r: has joined #RubyOnRails
[07:16:12] `based_pdev`: has joined #RubyOnRails
[07:17:45] rromanch_: has joined #RubyOnRails
[07:18:18] srinidhi: has joined #RubyOnRails
[07:20:25] udiudi: has joined #RubyOnRails
[07:21:44] yottanami: has joined #RubyOnRails
[07:23:09] bronson: has joined #RubyOnRails
[07:23:16] yottanami: I have group :production { gem 'pg' } in my gem file but when I am trying to bundle install in development it will try to install pg
[07:23:19] yottanami: How should I fix it?
[07:25:08] cih: has joined #RubyOnRails
[07:25:31] yfeldblum: has joined #RubyOnRails
[07:26:51] armyriad: has joined #RubyOnRails
[07:28:16] bruno-: has joined #RubyOnRails
[07:30:02] udiudi: has joined #RubyOnRails
[07:30:46] rhizome: eh, i've had weird stuff trying to use sqlite for tests. i never chased it down at all, i just used the same adapter for everybody
[07:30:57] pontiki: yottanami: try this: `bundle install --without production`
[07:36:26] scoot: has joined #RubyOnRails
[07:37:02] codenapper: has joined #RubyOnRails
[07:40:34] annlewis: has joined #RubyOnRails
[07:41:23] arup_r: pontiki: just out of curiosity.. why `bundle install` installed it for development env while in the Gemfile it is in production group... ?
[07:41:34] DoubleMalt: has joined #RubyOnRails
[07:47:06] qwertme: has joined #RubyOnRails
[07:48:41] arup_r: yottanami: It solved the issue ?
[07:48:59] yottanami: arup_r, Hey dude
[07:49:06] yottanami: arup_r, Yes it solved
[07:49:15] arup_r: Just curios.. :) Ok cool
[07:49:26] yottanami: I am trying to deploy my project using Capistrano
[07:49:37] yottanami: many errors :D
[07:49:50] arup_r: No idea why it happened.. and why need to tell bundle explicitly this..
[07:50:02] arup_r: any body here care to explain please ?
[07:50:33] arup_r: yottanami: I had passed a very annoying time with cap earlier to set it up properly... :(
[07:50:46] arup_r: rhinon: 0/
[07:50:57] arup_r: rhizome: 0/
[07:56:02] alex88: has joined #RubyOnRails
[08:00:39] blackmesa: has joined #RubyOnRails
[08:03:17] blackmes1: has joined #RubyOnRails
[08:06:13] rakm: has joined #RubyOnRails
[08:12:36] darutoko: has joined #RubyOnRails
[08:12:44] naftilos76: has joined #RubyOnRails
[08:13:44] Hates_: has joined #RubyOnRails
[08:22:59] raj___: has joined #RubyOnRails
[08:23:55] Gustavo: has joined #RubyOnRails
[08:24:07] bronson: has joined #RubyOnRails
[08:27:49] ereslibre: has joined #RubyOnRails
[08:30:49] codenapp_: has joined #RubyOnRails
[08:33:46] shinnya: has joined #RubyOnRails
[08:33:50] maokomioko: has joined #RubyOnRails
[08:38:16] raj___: has joined #RubyOnRails
[08:38:43] Hates_: has joined #RubyOnRails
[08:41:13] RegulationD: has joined #RubyOnRails
[08:41:18] annlewis: has joined #RubyOnRails
[08:46:10] scoot: has joined #RubyOnRails
[08:47:48] ruurd: has joined #RubyOnRails
[08:48:18] Cervajz: has joined #RubyOnRails
[08:51:56] rajeshp: has joined #RubyOnRails
[08:55:10] r0x0rZ: has joined #RubyOnRails
[08:56:58] r0x0rZ: so.. I'm still a newbie to Rails but I have to ask if I understand this correctly. When using program `bundle` to perform `bundle exec rake test` am I basicly running `rake test` with relation to bundle/gems in my app directory?
[08:57:20] r0x0rZ: basically I want to know the difference between `rake test` and `bundle exec rake test`
[08:58:31] Hates_: has joined #RubyOnRails
[08:58:44] jhass: r0x0rZ: bundle exec makes sure only gems listed in your Gemfile (well, Gemfile.lock actually) can be loaded using `require`
[08:59:18] r0x0rZ: jhass: ok
[08:59:19] jhass: it does so by restricting the Ruby internal $LOAD_PATH to only those
[08:59:40] cih: has joined #RubyOnRails
[08:59:41] r0x0rZ: $LOAD_PATH is ruby global var pointing to gem source?
[09:00:00] jhass: to an array of paths in which require looks for files
[09:00:01] dionysus69: what action should I have here? https://gist.github.com/webzorg/a1c75a012a0c58762736 the submit isnt doing anything :\
[09:00:07] r0x0rZ: jhass: thanks
[09:01:06] jhass: r0x0rZ: and if we want to be precise actually requireing bundler/setup does that and bundle exec is essentially a "shortcut" to ruby -rbundler/setup ...
[09:01:53] roxtrongo: has joined #RubyOnRails
[09:02:11] jhass: dionysus69: <%= bottles_path %> I guess, or better yet use `form_for`
[09:02:28] jhass: dionysus69: http://guides.rubyonrails.org/form_helpers.html
[09:02:46] dionysus69: jhass: oh I ll try that, oh wait, how should I use form for in this case :\
[09:03:28] jhass: http://guides.rubyonrails.org/form_helpers.html#binding-a-form-to-an-object
[09:03:42] habitullence: has joined #RubyOnRails
[09:04:00] dionysus69: hmm thanks! form_tag should be the one I guess in this case, form for needs to use resource right? in this case I am not using form based on resource
[09:04:02] Rezmond: has joined #RubyOnRails
[09:04:35] jhass: I guess...
[09:06:26] dionysus69: <%= check_box_tag(:pet_dog) %>
[09:06:26] dionysus69: <%= label_tag(:pet_dog, "I own a dog") %> how do I combine these two so checkbox gets generated within label?
[09:07:12] justusjonas74: has joined #RubyOnRails
[09:08:24] jhass: http://api.rubyonrails.org/classes/ActionView/Helpers/FormTagHelper.html#method-i-label_tag says it accepts a block
[09:09:57] marr: has joined #RubyOnRails
[09:10:32] dionysus69: cool! thanks for help, a lil old on form knowledge :)
[09:11:25] habitullence: Good morning :)
[09:12:01] habitullence: Just wondering how you guys do provisioning? I'd usually use puppet but it seems like overkill for some things
[09:14:32] Lincee: has joined #RubyOnRails
[09:19:31] finnnnnnnnnnn: has joined #RubyOnRails
[09:20:24] raj___: has joined #RubyOnRails
[09:20:26] ruurd: has joined #RubyOnRails
[09:24:30] bruno-: has joined #RubyOnRails
[09:25:16] kalusn: has joined #RubyOnRails
[09:29:23] FailBit: habitullence: puppet
[09:30:23] michael_mbp: has joined #RubyOnRails
[09:30:45] FailBit: https://mobile.twitter.com/SmegmaKing/status/609478899836260352
[09:31:45] sevenseacat: has joined #RubyOnRails
[09:32:41] ruurd: has joined #RubyOnRails
[09:33:58] habitullence: hi FailBit, that's handy - don't want to learn something new for no reason. I'm going to add to install instructions for the gem first and then I'll throw in some puppet manifests later :)
[09:34:03] Lightsword: has joined #RubyOnRails
[09:39:15] maz-dev: has joined #RubyOnRails
[09:41:55] annlewis: has joined #RubyOnRails
[09:49:01] blackmes1: has joined #RubyOnRails
[09:53:54] sandstrom: has joined #RubyOnRails
[09:54:35] arup_r: has joined #RubyOnRails
[09:54:48] rajeshp: has joined #RubyOnRails
[10:00:05] linocisco: has joined #RubyOnRails
[10:01:30] frmendes: has joined #RubyOnRails
[10:01:37] linocisco: http://pastebin.com/Guyz5Qc2
[10:02:35] yaw: has joined #RubyOnRails
[10:02:45] linocisco: http://pastie.org/private/ubuwi21vz6quawfer276a
[10:07:47] srinidhi: has joined #RubyOnRails
[10:15:38] pyemkey: has joined #RubyOnRails
[10:20:45] stardiviner: has joined #RubyOnRails
[10:21:52] youngbaks: has joined #RubyOnRails
[10:23:11] thsig: has joined #RubyOnRails
[10:23:45] charliesome: has joined #RubyOnRails
[10:24:01] da3mian: has joined #RubyOnRails
[10:26:01] bronson: has joined #RubyOnRails
[10:26:09] bruno-: has joined #RubyOnRails
[10:26:36] jhass: linocisco: gem install bundler
[10:26:57] jhass: linocisco: also you really really really shouldn't work as root
[10:27:07] pyemkey: Hello. Who can explain me difference between putting javascript plugin inside application.js and separate file? https://gist.github.com/pyemkey/604a71470b91361323ae
[10:27:38] srinidhi: has joined #RubyOnRails
[10:27:48] jhass: where exactly did you put people.js?
[10:27:56] FailBit: the require directive inserts everything into the file
[10:32:48] pyemkey: jhass: people.js is inside app/assets/javascripts
[10:32:55] ruurd: has joined #RubyOnRails
[10:33:37] jhass: pyemkey: try stopping rails s, bin/spring stop; rake tmp:cache:clear
[10:35:07] pyemkey: jhass: doesn't work
[10:35:23] sevenseacat: so is it not working, or do you just want to know the difference?
[10:35:34] sevenseacat: because in this case, the only difference is where they are included in the output file
[10:36:05] sininen: has joined #RubyOnRails
[10:36:36] jhass: pyemkey: how do you assert "doesn't work"
[10:36:45] pyemkey: sevenseacat: I cloned https://github.com/EricLondon/Rails-4-AJAX-modal-form-render-JS-response-as-table-row and I had to move code from people.js to applications.js
[10:37:00] sevenseacat: that doesnt answer the question
[10:37:36] jhass: maybe the comments kill it?
[10:37:42] jhass: I guess you didn't copy them over too
[10:39:31] sevenseacat: well yeah, there's coffeescript comments in a js file in the original repo, which doesnt work
[10:40:13] pyemkey: sevenseacat: There must be something more ;) As I said when I move all code from people.js to application.js application works right. When I leave this in separate file and call require people.js it doesn't work.
[10:40:23] charliesome: has joined #RubyOnRails
[10:40:24] sevenseacat: define 'doesnt work'
[10:40:26] kalusn: has joined #RubyOnRails
[10:40:32] sevenseacat: you dont have to call require people.js
[10:40:38] sevenseacat: thats probably the problem, thats not valid.
[10:41:24] sevenseacat: if you have a problem with the code as is in that repo, file a bug with the author of it
[10:41:40] sevenseacat: if you have a problem with your own code, we can help you with your code, but you havent shown us any with a require people.js
[10:41:50] sevenseacat: nor have you given us a specific problem other than 'doesnt work;
[10:42:21] RegulationD: has joined #RubyOnRails
[10:42:40] jhass: pyemkey: did you even consider my suggestion yet?
[10:42:40] annlewis: has joined #RubyOnRails
[10:43:53] pyemkey: Actually require_tree . should work
[10:43:53] pyemkey: jhass: Comments are not a problem in this case
[10:44:10] AzaToth: has joined #RubyOnRails
[10:44:13] dionysus69: has joined #RubyOnRails
[10:44:21] jhass: pyemkey: I take that as a no, hf then
[10:47:07] stamina: has joined #RubyOnRails
[10:49:07] maokomioko: has joined #RubyOnRails
[10:49:47] rakm: has joined #RubyOnRails
[10:55:02] Gustavo: has joined #RubyOnRails
[10:57:16] pyemkey: I've come here, because I thought that #rubyonrails channel is the one where I can get some kind of explanation about described problem. I know how sprockets 'require' works. I try to understand why moving content of file in this case "people.js" makes difference. I suppose that (function($){})(jQuery)); cause a problem. My English don't help me communicate with You. I'm not feeling comfortable in writing. Day after day
[10:57:16] pyemkey: I'm trying to improve my english skills. As you probably know it's not easy.
[10:58:02] rakm: has joined #RubyOnRails
[10:59:59] voker57: has joined #RubyOnRails
[11:00:25] blackmes1: has joined #RubyOnRails
[11:03:30] jhass: pyemkey: clear terms. people.js contains invalid comments for a .js file, they're only valid in for example a .coffee file
[11:03:51] jhass: pyemkey: you most likely (though you've been certainly very vague about it) didn't copy these invalid comments over
[11:08:49] youngbaks: has joined #RubyOnRails
[11:09:31] liquid-silence: has joined #RubyOnRails
[11:14:16] blackmes1: has joined #RubyOnRails
[11:15:39] dionysus69: how do I pass in autocomplete: off option to this ?? <%= check_box_tag(:wine_type, "eu") %>
[11:16:55] sevenseacat: how can you autocomplete a checkbox?
[11:17:22] dionysus69: by using check_box_tag
[11:17:31] sevenseacat: it wasnt a yes/no question
[11:17:44] dionysus69: I tried passing it in with 10 different ways
[11:17:55] youngbaks: has joined #RubyOnRails
[11:18:05] dionysus69: that is for when you reload page the value doesnt persist, it gets reset
[11:18:14] sevenseacat: thats not what autocomplete is for
[11:18:57] dionysus69: so your point is that rails check_box helper doesn't have that option because no one assumed it would ever be needed?
[11:19:08] sevenseacat: its not ever needed, autocompleting a checkbox doesnt make sense
[11:19:23] sevenseacat: you're looking for setting whether or not it's checked
[11:19:33] sevenseacat: and there is an option for that
[11:19:58] dionysus69: ok I guess its not a necessary feature anyways :) i was just curious if i was making a syntax error or it was that method didnt support such thing :D
[11:20:14] sevenseacat: ...you're not listening to what I'm saying
[11:20:15] dionysus69: there is an option for that???
[11:20:19] sevenseacat: I'm telling you how to do what you want to do
[11:20:34] dionysus69: so how do I pass in that option?
[11:20:41] hive-mind: has joined #RubyOnRails
[11:20:43] dionysus69: as I said I tried 10 different ways :S
[11:20:53] sevenseacat: http://api.rubyonrails.org/classes/ActionView/Helpers/FormTagHelper.html#method-i-check_box_tag there's a checked option
[11:21:41] dionysus69: true stands for checked right?
[11:21:49] raj___: has joined #RubyOnRails
[11:21:55] youngbaks: has joined #RubyOnRails
[11:21:57] pyemkey: jhass: You are right I were very vague about comments. It was my fault, but unfortunetaly this one didn't help. I made mistake, because there was 2 'people' files. One with coffee extension and one with .js extension. There was a conflict which was a reason why people.js was skipped.
[11:22:52] jhass: the example you linked doesn't have a .coffee file
[11:23:09] sevenseacat: none of the code you showed us did
[11:23:20] pyemkey: sevenseacat: I'm working about create more specific question. I'm aware that "doesn't work" looks like lazy/
[11:23:43] jhass: not lazy, it's simply useless
[11:25:59] abuzze: has joined #RubyOnRails
[11:26:18] maz-dev: has joined #RubyOnRails
[11:26:26] pyemkey: jhass: Yes, there is no .coffee file. I've tried to recreate this repo. First, I tried to use first time coffee instead of javascript. Then I left coffee script, because I had problem with translating js into coffee. Then I create javascript file and I forgot about deleting coffee. This case show me that I should link my git repo instead of someone else. Still learning ;)
[11:26:50] pyemkey: Have a nice day :)
[11:26:52] bronson: has joined #RubyOnRails
[11:28:12] Kerber0s: has joined #RubyOnRails
[11:29:39] dionysus69: i have links in file 2 and they work, I am confused about what the form action should be, any suggestions how to achieve same effect with form that the links do ? https://gist.github.com/webzorg/68ccffd1269c90d72ccc
[11:31:11] moeabdol1: has joined #RubyOnRails
[11:31:24] jhass: dionysus69: run `rake routes`
[11:31:37] jhass: see the name for your route, use <name>_path
[11:32:43] dionysus69: it is bottles_path, I tried that option too but when I click on search-submit button, nothing happens
[11:33:30] jhass: check your browsers inspector, check the network tab, check the error console
[11:33:39] jhass: confirm really "nothing" happens
[11:34:14] jhass: also your names are probably meant to be wine_type[]
[11:34:19] iateadonut: has joined #RubyOnRails
[11:34:50] dionysus69: omg yes thats why probably let me try that
[11:35:50] jhass: also give http://guides.rubyonrails.org/form_helpers.html#understanding-parameter-naming-conventions a read
[11:37:02] dionysus69: still nothing submit button seems to be dead
[11:37:28] jhass: did you do what I suggested above?
[11:37:48] jhass: nothing happens is an insufficient observation for about 70% to 80% of the cases
[11:38:04] toydestroyer: has joined #RubyOnRails
[11:41:01] dionysus69: hmm well nothing shows up in nertwork on console tabs when I click search
[11:42:45] dionysus69: it doesnt send any get request even though the form structure seems correct :s
[11:43:26] annlewis: has joined #RubyOnRails
[11:43:48] pawnbox: has joined #RubyOnRails
[11:45:38] sanjayu: has joined #RubyOnRails
[11:45:38] toydestroyer: has joined #RubyOnRails
[11:46:34] Kallis: has joined #RubyOnRails
[11:46:44] netzfisch: has joined #RubyOnRails
[11:48:25] abuzze: has joined #RubyOnRails
[11:51:42] pwnd_nsfw: has joined #RubyOnRails
[11:51:53] w0rd-driven: has joined #RubyOnRails
[11:52:58] jhass: how can I look at the problem locally?
[11:54:57] tk: has joined #RubyOnRails
[11:58:52] ruurd: has joined #RubyOnRails
[11:59:19] jhass: I don't see any obvious mistake so I suppose it's in the way you test or something you didn't show
[11:59:37] jhass: also what you've shown is insufficient to actually try it out on my own
[11:59:47] pwnd_nsfw: May I see the code as well?
[11:59:59] helpa: Check your logs. Namely everything in the log folder of your rails app and the error and access logs from Apache or whatever else you're using.
[12:00:29] jhass: http://logs.ryanbigg.com/RubyOnRails
[12:01:18] pwnd_nsfw: YOu know, 'cause waiting for a slow web page to load is more efficient
[12:02:10] pwnd_nsfw: Wow, me from yesterday is still on the page heh
[12:02:27] dionysus69: jhass: try this out :) https://gist.github.com/webzorg/341db3fbfd03dab73f63 it works on w3school and doesnt locally
[12:02:54] jhass: http://www.w3fools.com/
[12:03:35] jhass: so you still didn't change it to wine_type[] ...
[12:03:58] dionysus69: I did but then I changed it back, the submit button for some reason has 0 action
[12:04:17] dionysus69: it doesnt submit anything its like it doesnt get clicked
[12:04:26] jhass: anyway, do a sample app that shows the problem and push it to github
[12:06:08] privacyid01: has joined #RubyOnRails
[12:06:43] maz-dev: has joined #RubyOnRails
[12:06:56] dionysus69: ok thanks :) i ll brb so far
[12:07:12] privacyid01: hi anyone know how to use this https://github.com/sgruhier/jquery-addresspicker in rails 4? if yes please teach me how
[12:07:31] cih: has joined #RubyOnRails
[12:07:58] clevershadow5: has joined #RubyOnRails
[12:08:56] Scripore: has joined #RubyOnRails
[12:09:11] FailBit: rails itself has little to do with js things other than the asset pipeline
[12:09:25] mostlybadfly: has joined #RubyOnRails
[12:09:26] FailBit: (ofc there's ujs and the like, but that's pretty minor)
[12:11:17] privacyid01: then how to use it in my rails application?
[12:12:26] FailBit: stick it in vendor/assets/ and require it in application.js
[12:12:31] privacyid01: http://stackoverflow.com/questions/32807662/how-to-use-jquery-addresspicker-in-rails-4-2-1
[12:12:56] privacyid01: I have do that but I get error it's seems JS load order error
[12:13:44] FailBit: 'google is not defined'
[12:14:13] yottanami: I am trying to deploy with capistrano but I got this error Specified 'postgresql' for database adapter, but the gem is not loaded. Add `gem 'pg'` to your Gemfile
[12:14:23] yottanami: But I have this line in my gem file
[12:14:31] yottanami: group :production do
[12:15:15] yottanami: Does it means bundl can not install production group?
[12:17:29] Cache_Money: has joined #RubyOnRails
[12:24:27] thsig: has joined #RubyOnRails
[12:24:59] konsolebox: has joined #RubyOnRails
[12:25:28] acti0nman: has joined #RubyOnRails
[12:27:48] bronson: has joined #RubyOnRails
[12:28:22] ericjphillips: has joined #RubyOnRails
[12:29:18] alex88_: has joined #RubyOnRails
[12:31:14] Hates_: has joined #RubyOnRails
[12:35:13] Hates__: has joined #RubyOnRails
[12:35:26] kitsuneyo: has joined #RubyOnRails
[12:35:46] pyreal: has joined #RubyOnRails
[12:36:19] meoblast001: has joined #RubyOnRails
[12:41:07] BlackCoyote: has joined #RubyOnRails
[12:42:54] RegulationD: has joined #RubyOnRails
[12:43:30] railsForDaiz: has joined #RubyOnRails
[12:44:12] annlewis: has joined #RubyOnRails
[12:44:19] kitsuneyo: has joined #RubyOnRails
[12:46:38] argami: has joined #RubyOnRails
[12:48:45] Gustavo: has joined #RubyOnRails
[12:49:13] yaw: has joined #RubyOnRails
[12:49:42] marr: has joined #RubyOnRails
[12:51:08] superlou: has joined #RubyOnRails
[12:52:12] konsolebox: has joined #RubyOnRails
[12:57:28] raunico3: has left #RubyOnRails: ()
[13:08:03] Lincee: has joined #RubyOnRails
[13:18:35] Hates_: has joined #RubyOnRails
[13:19:51] maokomioko: has joined #RubyOnRails
[13:23:14] Scripore: has joined #RubyOnRails
[13:24:50] sanjayu: has joined #RubyOnRails
[13:27:18] maz-dev: has joined #RubyOnRails
[13:28:39] bronson: has joined #RubyOnRails
[13:29:17] lxsameer: has joined #RubyOnRails
[13:30:20] apg: has joined #RubyOnRails
[13:30:53] Scripore: has joined #RubyOnRails
[13:31:23] habitullence: has joined #RubyOnRails
[13:33:03] exadeci: has joined #RubyOnRails
[13:35:28] apg: has joined #RubyOnRails
[13:37:25] apg: has joined #RubyOnRails
[13:40:17] ruurd: has joined #RubyOnRails
[13:41:15] Guest37829: has joined #RubyOnRails
[13:41:19] FailBit: none of my newrelic charts are loading
[13:41:32] FailBit: fucking love newrelic. it's the greatest software ever with zero faults and a completely sane price
[13:43:29] Guest37829: has joined #RubyOnRails
[13:44:59] annlewis: has joined #RubyOnRails
[13:46:28] Guest37829: has joined #RubyOnRails
[13:47:01] dopamean_: has joined #RubyOnRails
[13:47:11] blackmes1: has joined #RubyOnRails
[13:48:52] bmalum: has joined #RubyOnRails
[13:50:22] willardg: has joined #RubyOnRails
[13:51:46] sininen: has joined #RubyOnRails
[13:51:58] apg_: has joined #RubyOnRails
[13:54:27] netzfisch: has joined #RubyOnRails
[13:57:12] inc0d3r: has joined #RubyOnRails
[13:58:46] cornerma1: has joined #RubyOnRails
[14:04:45] naftilos76: has joined #RubyOnRails
[14:04:50] atzorvas: has joined #RubyOnRails
[14:04:55] apg_: has joined #RubyOnRails
[14:05:42] ericjphillips: has joined #RubyOnRails
[14:07:52] apg_: has joined #RubyOnRails
[14:08:23] quazimodo: has joined #RubyOnRails
[14:10:58] apg_: has joined #RubyOnRails
[14:11:06] FailBit: Quality Software(tm)
[14:11:19] FailBit: new relic is a piece of shit
[14:11:23] FailBit: but there's nothing better out there
[14:12:22] mary5030: has joined #RubyOnRails
[14:13:13] habitullence: has joined #RubyOnRails
[14:13:26] sevenseacat: skylight might want a word with you
[14:13:37] FailBit: their pricing does not agree with our traffic volume
[14:13:51] RegulationD: has joined #RubyOnRails
[14:14:30] apg_: has joined #RubyOnRails
[14:14:38] stamina: has joined #RubyOnRails
[14:14:47] FCser: has joined #RubyOnRails
[14:16:30] ruurd: has joined #RubyOnRails
[14:16:46] roxtrongo: has joined #RubyOnRails
[14:19:44] apg_: has joined #RubyOnRails
[14:20:04] rromanch_: has joined #RubyOnRails
[14:21:32] apg_: has joined #RubyOnRails
[14:24:04] apg_: has joined #RubyOnRails
[14:24:56] voltalio: has joined #RubyOnRails
[14:25:27] thsig: has joined #RubyOnRails
[14:25:46] argami: has joined #RubyOnRails
[14:26:10] apg: has joined #RubyOnRails
[14:26:23] Lincee: has joined #RubyOnRails
[14:29:34] bronson: has joined #RubyOnRails
[14:30:21] mices: how do i change the color of flash notice
[14:32:13] roxtrongo: has joined #RubyOnRails
[14:32:59] The_Phoenix: has joined #RubyOnRails
[14:33:09] Haz_: has joined #RubyOnRails
[14:34:14] mices: lmgtfm nm
[14:35:26] arup_r: has joined #RubyOnRails
[14:37:20] Gustavo: has joined #RubyOnRails
[14:37:55] zpe: has joined #RubyOnRails
[14:38:21] Haz_: anyone used devise_token_auth gem ??
[14:41:17] cih: has joined #RubyOnRails
[14:41:28] mary5030: has joined #RubyOnRails
[14:42:30] argami: has joined #RubyOnRails
[14:42:38] willardg: has joined #RubyOnRails
[14:43:30] zpe: has joined #RubyOnRails
[14:44:07] mices: actually i haven't found a simple answer on google
[14:44:16] rushed: has joined #RubyOnRails
[14:44:25] FCser: has joined #RubyOnRails
[14:44:33] mices: i wanna change the color of flash notices app-wide
[14:45:18] ruurd: has joined #RubyOnRails
[14:45:29] zpe_: has joined #RubyOnRails
[14:45:44] annlewis: has joined #RubyOnRails
[14:46:02] bmalum: has joined #RubyOnRails
[14:46:31] Haz_: any rails expert around...?
[14:47:18] Papierkorb: Haz_: Don't ask to ask, just ask.
[14:47:19] sevenseacat: mices: write some css
[14:48:09] mices: i tried .alert and .alert-success
[14:48:13] ruurd: has joined #RubyOnRails
[14:48:17] mices: nothing changed
[14:48:24] sevenseacat: mices: !debug
[14:48:24] helpa: mices: You have not provided enough information to debug your problem. Please provide this information: https://gist.github.com/radar/5384431
[14:48:48] Haz_: anyone used devise_token_auth gem?
[14:48:58] willardg: has joined #RubyOnRails
[14:49:08] Haz_: Error: wrong number of arguments (1 for 0)
[14:49:20] Haz_: at set_user_by_token
[14:49:23] fcser_: has joined #RubyOnRails
[14:50:02] raj___: has joined #RubyOnRails
[14:51:48] pwnd_nsfw: mices, make sure you have the CSS for it, even..
[14:52:50] railsForDaiz: Has anyone tried using mongoid gem with their rails app. I have already installed mongoldb using brew and i have started the mongoldb server. However if i try and save any records on to the db i keep getting this error message
[14:52:50] railsForDaiz: NoMethodError: undefined method `convert_key' for #<Mongo::Options::Redacted:0x007fc0cad05538>
[14:52:54] railsForDaiz: NoMethodError: undefined method `convert_key' for {"database"=>"mongoid_test_development"}:Mongo::Options::Redacted
[14:52:54] railsForDaiz: Anyone had the same problem?
[14:53:02] Balzrael: has joined #RubyOnRails
[14:55:59] willardg: has joined #RubyOnRails
[14:56:31] arup_r: Haz_: Gist of the error please
[14:57:17] mices: sevenseacat: https://gist.github.com/mices/03dd75bd48491b76c6aa
[14:58:16] sevenseacat: https://gist.github.com/mices/03dd75bd48491b76c6aa#file-application-css-L64-L68 you don't have alert and alert-success elements in your code - they should be classes
[14:58:37] sevenseacat: assuming they're classes in your HTML, you didn't show any of that
[14:59:02] mices: i guess you're right let me look
[14:59:55] mices: yea they're class #notice
[15:00:18] sevenseacat: no, #notice is an ID
[15:00:31] mary5030: has joined #RubyOnRails
[15:00:54] mices: that's what i meant, sorry
[15:01:10] mices: but that id doesn't appear in my application.css
[15:01:20] sevenseacat: it doesnt have to
[15:01:27] sevenseacat: you only put styles in for things you want to style
[15:01:36] mary5030: has joined #RubyOnRails
[15:02:49] grotewold: has joined #RubyOnRails
[15:04:40] blackhuey: has joined #RubyOnRails
[15:04:56] sarink: has joined #RubyOnRails
[15:05:41] FailBit: railsForDaiz: mongo - using brew? wat?
[15:05:57] apg: has joined #RubyOnRails
[15:05:57] apg: has joined #RubyOnRails
[15:06:18] railsForDaiz: @FailBit installed mongodb
[15:06:35] FailBit: you don't install mongo using brew
[15:06:39] FailBit: install it systemwide
[15:06:53] FailBit: brew is pm for macs
[15:07:02] FailBit: I was thinking of node
[15:07:14] FailBit: also I don't like homebrew, but w/e
[15:07:17] apg: has joined #RubyOnRails
[15:07:25] FailBit: you've started mongod?
[15:07:49] FailBit: your config/mongoid.yml is set up?
[15:08:14] railsForDaiz: i just ran rails g mongoid:config
[15:08:48] FailBit: can moped get a connection?
[15:09:00] railsForDaiz: ran rail g Student scaffolding name email
[15:09:07] railsForDaiz: cannot even save a record
[15:09:23] apg: has joined #RubyOnRails
[15:09:34] railsForDaiz: what is moped
[15:09:57] FailBit: pretty sure rails scaffolds do not work with mongoid
[15:10:25] railsForDaiz: i checked the model and include Mongoid::Document
[15:10:52] bruno-_: has joined #RubyOnRails
[15:10:53] FailBit: what mongoid version and mongo version
[15:11:18] railsForDaiz: mongoid 5.0.0 and mongo 3.0.6
[15:12:22] FailBit: can you gist the full stack trace of your error
[15:13:32] apg: has joined #RubyOnRails
[15:13:46] ruurd: has joined #RubyOnRails
[15:13:57] maz-dev_: has joined #RubyOnRails
[15:14:15] railsForDaiz: https://gist.github.com/sawmebabe/72699379284cd8db60bf
[15:14:37] krz: has joined #RubyOnRails
[15:14:49] FailBit: apparently that's not using moped
[15:15:26] apg: has joined #RubyOnRails
[15:16:29] apg: has joined #RubyOnRails
[15:20:18] railsForDaiz: FailBit Thanks..btw do you happen to know any alternative to Mongo?
[15:21:39] pwnd_nsfw: Not using Mongo?
[15:22:09] Macaveli: has joined #RubyOnRails
[15:22:46] Papierkorb: there are like a billion other DBMS's out there
[15:23:11] grotewold: has joined #RubyOnRails
[15:23:46] railsForDaiz: Any recommendation for a decent one or a easy one to implement for large scale data like Mongo?
[15:23:46] pwnd_nsfw: A billion and one, exactly
[15:24:09] Papierkorb: railsForDaiz: Define "large scale data".
[15:24:33] grotewold: has joined #RubyOnRails
[15:25:24] FailBit: you haven't watched "MongoDB is web scale" yet
[15:25:24] Papierkorb: So like a thousand documents? Great, go with a CSV file.
[15:25:37] FailBit: please watch that video before using mongodb
[15:25:46] grotewold: has joined #RubyOnRails
[15:25:55] FailBit: https://www.youtube.com/watch?v=b2F-DItXtZs
[15:26:22] pwnd_nsfw: lmao FailBit
[15:26:54] pwnd_nsfw: "does it scale"
[15:27:53] srinidhi: has joined #RubyOnRails
[15:30:28] bronson: has joined #RubyOnRails
[15:30:51] ariedler: has joined #RubyOnRails
[15:34:20] mikebonar: has joined #RubyOnRails
[15:34:33] bruno-: has joined #RubyOnRails
[15:34:39] pawnbox: has joined #RubyOnRails
[15:34:42] FailBit: I recommend postgres for rails
[15:35:21] pawnbox: has joined #RubyOnRails
[15:35:43] FailBit: also, joins are stupidly useful and the fact that mongo doesn't have them is horrifying
[15:37:18] apg: has joined #RubyOnRails
[15:38:05] yardenbar: has joined #RubyOnRails
[15:38:17] umgrosscol: has joined #RubyOnRails
[15:39:12] railsForDaiz: Thanks FailBit
[15:40:25] Scient: "large scale data like Mongo"
[15:40:47] Scient: whatever blogs you are reading or advice you are getting - stop
[15:42:46] atmosx: has joined #RubyOnRails
[15:44:04] arup_r: has joined #RubyOnRails
[15:46:12] ruurd: has joined #RubyOnRails
[15:46:31] annlewis: has joined #RubyOnRails
[15:46:50] FailBit: railsForDaiz: mongo does not scale well
[15:46:50] sadaf2606: has joined #RubyOnRails
[15:47:00] FailBit: not even with a single node
[15:47:13] FailBit: fuck, elasticsearch does it better
[15:48:27] mikebonar: has left #RubyOnRails: ("Part & Quit baby!")
[15:48:42] habitullence: has joined #RubyOnRails
[15:50:02] jun_: has joined #RubyOnRails
[15:50:41] umgrosscol: FailBit, for a docstore? or for queries?
[15:51:15] umgrosscol: FailBit, Solr scales pretty well for query. The infrastructure can get a bit... involved though.
[15:51:59] FailBit: I don't like solr either
[15:53:30] grotewold: has joined #RubyOnRails
[15:53:39] rajeshp: has joined #RubyOnRails
[15:55:03] srinidhi: has joined #RubyOnRails
[15:55:05] Peteykun: has joined #RubyOnRails
[15:55:11] yaw: has joined #RubyOnRails
[15:57:56] Pazician: has joined #RubyOnRails
[15:59:10] bruno-: has joined #RubyOnRails
[15:59:20] argami: has joined #RubyOnRails
[16:00:36] uris: has joined #RubyOnRails
[16:05:59] habitullence: Does anyone know how you would change database on a per migration basis?
[16:06:09] Cervajz: has joined #RubyOnRails
[16:06:25] FailBit: you have 2?
[16:07:36] habitullence: hi FailBit, yep
[16:07:43] Cervajz: has joined #RubyOnRails
[16:07:59] habitullence: It's a long story, basically the other ones a temp db for compiling something
[16:08:12] habitullence: It looks like this does the job http://www.databasically.com/2010/09/24/running-rails-migrations-in-other-databases/
[16:08:22] dikaio: has joined #RubyOnRails
[16:08:33] habitullence: Just wonder if I have to put it back at the end of migration :S
[16:09:10] Cervajz__: has joined #RubyOnRails
[16:09:32] srinidhi1: has joined #RubyOnRails
[16:09:59] srinidhi: has joined #RubyOnRails
[16:11:13] Cervajz_: has joined #RubyOnRails
[16:12:05] mary5030: has joined #RubyOnRails
[16:14:40] RegulationD: has joined #RubyOnRails
[16:15:30] FailBit: http://www.msn.com/en-ca/news/offbeat/dreams-squashed-when-massive-zucchini-vanishes-from-canadas-largest-urban-farm/ar-AAeQjrz?ocid=spartanntp&pfr=1
[16:16:11] raj___: has joined #RubyOnRails
[16:17:16] Cervajz: has joined #RubyOnRails
[16:19:20] thsig: has joined #RubyOnRails
[16:20:56] jun_: has joined #RubyOnRails
[16:21:14] kitsuneyo: has joined #RubyOnRails
[16:21:51] artto: has joined #RubyOnRails
[16:22:14] Cervajz_: has joined #RubyOnRails
[16:23:28] pwnd_nsfw: FailBit, NOOOOOOO
[16:23:41] pwnd_nsfw: the play on words
[16:23:44] FailBit: it's like they can't resist the pun
[16:23:51] grotewold: has joined #RubyOnRails
[16:24:07] pwnd_nsfw: Quite the vegetable
[16:24:12] FailBit: also, :canada:
[16:24:25] FailBit: nobody else but canadian news would cover that :V
[16:24:56] pwnd_nsfw: You'd find that in some bumfuk nowhere newspaper in the US too
[16:25:14] grotewold: has joined #RubyOnRails
[16:25:53] thsig: has joined #RubyOnRails
[16:26:26] drptbl: has joined #RubyOnRails
[16:26:29] grotewold: has joined #RubyOnRails
[16:27:11] voltalio: has joined #RubyOnRails
[16:27:26] Glyphik: has joined #RubyOnRails
[16:27:47] grotewold: has joined #RubyOnRails
[16:28:01] cih: has joined #RubyOnRails
[16:28:12] bruno-: has joined #RubyOnRails
[16:28:26] rajeshp: has joined #RubyOnRails
[16:28:51] thsig: has joined #RubyOnRails
[16:29:02] grotewold: has joined #RubyOnRails
[16:29:51] comm64x: has joined #RubyOnRails
[16:31:23] maz-dev: has joined #RubyOnRails
[16:31:25] bronson: has joined #RubyOnRails
[16:32:22] pontiki: has joined #RubyOnRails
[16:32:35] comm64x: has left #RubyOnRails: ()
[16:33:07] comm64x: has joined #RubyOnRails
[16:33:12] comm64x: I have a django project that I'm trying to convert into a rails project. I know, I know, its not worth it, so I've heard. But, I'm doing it more for a mental exercise than anything. If anyone in here has experience with both frameworks that would be awesome but if not thats okay. My main question is in rails models can your models be organized as modules or must they be single classes?
[16:34:01] ruurd: has joined #RubyOnRails
[16:34:39] adam12: comm64x: you can namespace into modules, but be very careful. shit can break fast.
[16:37:14] comm64x: the only reason why I'd consider straying from the norm is because this particular django project has multiple models and each model has multiple classes, so my first thought would be either split all the classes into individual models and then maybe refactor to reduce the number of models --or-- group rails model classes into a module. Any ideas on a better way?
[16:37:18] Palsson: has joined #RubyOnRails
[16:37:47] sandstrom: has joined #RubyOnRails
[16:41:07] comm64x: Maybe I'm looking at this the wrong way. Maybe instead of trying to squeeze django into a rails framework I should be looking into a different way to convert this application. I've never converted an app from one app/language to another so this is all terra nova to me. Does anybody know a better way of converting applications? I've thought just emulate the functionality and features first, then I coul
[16:41:13] comm64x: d go back and compare the two codebases to see how they match up but idk?
[16:42:25] arup_r: adam12: why shit break fast ? I didn't get you
[16:42:31] kayloos: has joined #RubyOnRails
[16:43:43] bruno-: has joined #RubyOnRails
[16:44:49] FCser: has joined #RubyOnRails
[16:45:33] rushed: has joined #RubyOnRails
[16:46:38] thsig: has joined #RubyOnRails
[16:46:50] acti0nman: has joined #RubyOnRails
[16:47:18] annlewis: has joined #RubyOnRails
[16:51:30] hendricius: has joined #RubyOnRails
[16:52:06] hendricius: has joined #RubyOnRails
[16:52:26] Marco_: has joined #RubyOnRails
[16:52:32] pwnd_nsfw: comm64x, a really good way to learn different languages is to port things from languages you already know
[16:52:38] pwnd_nsfw: especially if they're you're own projects
[16:54:43] pawnbox: has joined #RubyOnRails
[16:58:33] pawnbox: has joined #RubyOnRails
[16:58:39] voltalio: has joined #RubyOnRails
[16:59:44] Scriptonaut: has joined #RubyOnRails
[16:59:46] raj___: has joined #RubyOnRails
[16:59:57] chambyt: has joined #RubyOnRails
[17:00:43] Scriptonaut: Hey guys, I'm curious, what do you guys prefer, angular or ember (or something else), when working on a rails app. At the moment I'm using a custom module system I wrote, along with jQuery.
[17:01:07] Scriptonaut: I'm looking to move to a more robust library though
[17:02:16] comm64x: pwnd_nsfw: I know a bit of python and ruby, I'm mostly trying to figure out a way to implement the django project in rails while staying as close to the original code as I can. In rails I've only seen models as a single class, but in django I see models having multiple classes. I was looking for a best practice maybe or so to implement whats going on in the django model in a rails model
[17:02:30] yaw: has joined #RubyOnRails
[17:02:33] drptbl: has joined #RubyOnRails
[17:04:13] moeabdol1: has joined #RubyOnRails
[17:04:48] Gustavo: has joined #RubyOnRails
[17:05:02] rickmasta: has joined #RubyOnRails
[17:05:16] warshrike: has joined #RubyOnRails
[17:05:30] beauby: has joined #RubyOnRails
[17:05:55] artto: has joined #RubyOnRails
[17:06:43] iateadonut: has left #RubyOnRails: ()
[17:07:55] yfeldblum: has joined #RubyOnRails
[17:08:00] warshrike: Brothers! I seek aid. I made this model with validations but they don't work http://codepaste.net/f9aoyb
[17:09:52] pwnd_nsfw: comm64x, in what way are these models in django? they inheret from a main class?
[17:09:55] pwnd_nsfw: do you have an example?
[17:12:02] drptbl: has joined #RubyOnRails
[17:12:07] artto: has joined #RubyOnRails
[17:13:16] mrmylanman: has joined #RubyOnRails
[17:14:29] artto: has joined #RubyOnRails
[17:14:49] comm64x: the model directory has 14 files. The majority of those files inherit from a main class called AbstractMongoRecord but there are quite a few model files that stand alongside, for lack of a better term, the abstract model
[17:14:51] warshrike: has joined #RubyOnRails
[17:15:03] voltalio: has joined #RubyOnRails
[17:15:46] tubbo: comm64x: what do each of the multiple classes do?
[17:16:21] warshrike: I asked a question but got disconnected. Could some soul give me the last 20~ posts in case someone replied to me
[17:16:32] tubbo: it's quite common to see people in rails using POROs (plain old ruby objects, usually classes) to abstract away functionality from the main data model class
[17:16:34] warshrike: I'm the guy with vaidations not working btw
[17:16:46] rushed: warshrike: http://logs.ryanbigg.com/RubyOnRails
[17:17:26] tubbo: warshrike: it's not *that* busy in here haha
[17:18:06] tubbo: warshrike: anyway we can't really know why the validations aren't working as expected unless you gist the error(s) you're getting and the params you're attempting to create the model with
[17:18:10] comm64x: tubbo: what are you referring to when you say 'multiple classes'
[17:18:33] tubbo: comm64x: well, you said the models were broken up into multiple classes. what does each class do?
[17:18:38] warshrike: Okay I'll come with a better gist
[17:18:53] tubbo: warshrike: use gist.github.com because it lets you put multiple files in the same gist
[17:19:41] comm64x: no, no the models are individual files within the django model directory, but each model file has many classes.
[17:20:35] armyriad: has joined #RubyOnRails
[17:21:04] pwnd_nsfw: maybe... WHY is there multiple classes?
[17:21:31] tubbo: comm64x: well first of all, it's a code smell (to me anyway) to have multiple objects defined within the same file. instead, you should put each class, no matter how small it is, in its own file.
[17:21:31] blackmes1: has joined #RubyOnRails
[17:21:39] tubbo: way easier to grep for in a project, doesn't look like code is "hiding" anywhere
[17:22:03] tubbo: files in ruby, fwiw, are less meaningful than the objects themselves.
[17:22:53] pwnd_nsfw: is that a common practice comm64x ?
[17:23:15] Zackio: has joined #RubyOnRails
[17:23:22] comm64x: what I'm thinking is the 'main' model in the django project is the file called abstract. Most of the other model files inherit from abstract.
[17:23:49] comm64x: tubbo: yes I understand what you are saying
[17:24:27] comm64x: pwnd_nsfw: I guess having multiple classes in a model file is normal in django
[17:24:28] sandstrom: has joined #RubyOnRails
[17:24:43] comm64x: I have more experience with RoR than with django
[17:24:57] warshrike: has joined #RubyOnRails
[17:25:04] wildlander: has joined #RubyOnRails
[17:25:11] Palsson: has joined #RubyOnRails
[17:25:27] pwnd_nsfw: whats' your motivation for making the project basically keep the same code?
[17:25:29] warshrike: Ok here https://gist.github.com/ali-arslan/03014bfcc1d90521a025
[17:25:51] warshrike: Now I made with the output. Any idea what the issue might be
[17:26:12] comm64x: pwnd_nsfw: not necessarily keep the same code as much as keep the same functionality but implemented in RoR
[17:26:14] mrmylanman: has joined #RubyOnRails
[17:26:24] warshrike: Unrelated, does anyone know how to make gists without revealing github name?
[17:26:27] Flowrhent: has joined #RubyOnRails
[17:26:34] tubbo: warshrike: why does that matter?
[17:26:48] pwnd_nsfw: don't login?
[17:26:55] warshrike: Why does what matter tubbo?
[17:27:01] comm64x: I'm just as disoriented when I look at the django code to be honest...I miss my ruby home lol
[17:27:12] kaduribeiro: has joined #RubyOnRails
[17:27:25] tubbo: warshrike: why does it matter that you want to keep anonymous
[17:27:43] warshrike: it doesn't in this case. but sometimes....
[17:27:54] warshrike: if you get my drift
[17:27:56] tubbo: warshrike: not sure what this is for here https://gist.github.com/ali-arslan/03014bfcc1d90521a025#file-gistfile1-txt-L2
[17:28:17] tubbo: warshrike: well yeah, you just don't log in to github...it allows you to post anonymous gists
[17:28:18] pwnd_nsfw: tubbo, for rails 3 support
[17:28:29] warshrike: the attr_accesor is for later use.
[17:28:40] dikaio: has joined #RubyOnRails
[17:28:41] kaduribeiro: has joined #RubyOnRails
[17:28:47] warshrike: Don't I need it to expose variables?
[17:29:05] warshrike: *anymore in rails 4
[17:29:31] kaduribeiro: has joined #RubyOnRails
[17:29:37] zpe: has joined #RubyOnRails
[17:29:47] pwnd_nsfw: You don't need attr accessor in rails 4
[17:29:53] pwnd_nsfw: because you use strong params
[17:30:14] warshrike: Oh. I'll google on them.
[17:30:36] RegulationD: has joined #RubyOnRails
[17:30:37] warshrike: so any idea why validations don't work
[17:30:50] pwnd_nsfw: What doesn't work about them...
[17:31:50] warshrike: the output at the end of the gist. if I make an invalid student object. why does it say true to obj.valid?
[17:32:04] pwnd_nsfw: well for starters
[17:32:13] pwnd_nsfw: kanppp is different than khanppp
[17:32:23] bronson: has joined #RubyOnRails
[17:32:24] pwnd_nsfw: Could be as simple as that...
[17:32:42] warshrike: yeah. thats a wrong copy paste unfortunately...
[17:32:49] raj___: has joined #RubyOnRails
[17:33:10] warshrike: confirmed again still doesnt work.
[17:33:14] comm64x: in the abstract.py model all the methods are actions that would be done to the data. Oh and I probably should have mentioned this earlier...the existing python/django codebase isn't mine, it's an open source project that I'm wanting to implement in RoR
[17:34:07] waseem_: has joined #RubyOnRails
[17:34:21] Macaveli: has joined #RubyOnRails
[17:35:11] pwnd_nsfw: warshrike, have you restarted the console since you've made updates? I know it's silly, but your example should work..
[17:35:29] warshrike: No I haven't. Do I need to?
[17:35:39] pwnd_nsfw: warshrike, give it a try...
[17:35:43] monq: has joined #RubyOnRails
[17:36:28] comm64x: maybe this is a mongo vs activerecord thing
[17:37:46] apg: has joined #RubyOnRails
[17:37:55] Gustavo: has joined #RubyOnRails
[17:38:28] voltalio: has joined #RubyOnRails
[17:38:52] apg: has joined #RubyOnRails
[17:39:24] pwnd_nsfw: warshrike, yes? no?
[17:40:40] warshrike: it work now. Wow that was dumb hahaa
[17:41:31] pwnd_nsfw: Being someone who used to do PC repair, half of the problems were solved just by restarting the machine....
[17:41:44] tejasmanohar: has joined #RubyOnRails
[17:42:31] warshrike: Hahaa. No kidding turning it off and on again seems like a universal cure
[17:42:47] warshrike: One morre thing, when I use associations like belongs_to and has_many, are they just activerecords deep or do they actually set up relations in the underlying sql?
[17:43:11] yaymukund: has joined #RubyOnRails
[17:43:16] Scriptonaut: just activerecord, you have to put the foreign keys in there yourself
[17:43:19] kaduribeiro: warshrike The commands on console won't have updated?
[17:43:28] voltalio: has joined #RubyOnRails
[17:43:44] kaduribeiro: the `reload!` command haven't worked?
[17:44:00] youngbaks: has joined #RubyOnRails
[17:44:10] rushed: has joined #RubyOnRails
[17:44:31] pwnd_nsfw: reload! probably would've worked
[17:44:43] pwnd_nsfw: I have a habit of restarting
[17:45:04] warshrike: didnt try thate
[17:45:07] pwnd_nsfw: Also, with your relations... in your migration you use references
[17:45:20] pwnd_nsfw: which will set up foreign key, indexes, etc
[17:45:35] benlieb: has joined #RubyOnRails
[17:46:02] dionysus69: has joined #RubyOnRails
[17:46:21] jun_: has joined #RubyOnRails
[17:46:52] jun_: has joined #RubyOnRails
[17:47:44] pwnd_nfsw: has joined #RubyOnRails
[17:48:04] annlewis: has joined #RubyOnRails
[17:51:00] dionysus69: jhass: hey if you are here I figured out why my submit didn't work before!
[17:51:22] dionysus69: but I can't seem to think of a fix anyway
[17:51:49] benlieb: anybody have any ideas why a record created during a capybara test is visible at the debug prompt, but not showing in my ember app?
[17:53:08] willardg: has joined #RubyOnRails
[17:53:19] pwnd_nfsw: benlieb, 'cause different environments?
[17:53:25] arBmind: has joined #RubyOnRails
[17:53:56] yaw: has joined #RubyOnRails
[17:55:10] comm64x: no this couldnt be mongo vs activerecord because mongodb is the database and activerecord is the orm.
[17:55:10] benlieb: figured it out: let(:paper)
[17:55:25] benlieb: lazy loading
[17:55:47] FailBit: comm64x: you can't use AR as the ORM for mongodb
[17:55:55] FailBit: you are sadly confused
[17:56:32] Cervajz: has joined #RubyOnRails
[17:56:38] dionysus69: if i put btn-group class div inside form, then form refuses to get submited, anyone familiar with this situation?
[17:56:40] FailBit: I believe the only currently viable ORM for mongodb is Mongoid
[17:57:25] pwnd_nfsw: dionysus69, code?
[17:58:22] dionysus69: pwnd_nfsw: https://gist.github.com/webzorg/ca41cffd08d5da9b3c32 the only difference is that the div block is missing
[17:58:30] Coldblackice: has joined #RubyOnRails
[17:58:32] comm64x: FailBit: yeah I was thinking earlier my issue was one of mongodb vs activerecord. I have since corrected myself.
[17:58:40] warshrike: pwnd_nfsw, you said to use references in migration. That only seems to set up foreign keys i.e. it helps with belongs_to but not with has_many or so it seems
[17:59:28] comm64x: django is just so all over the place compared to rails...doing this is going to be a real PITA
[17:59:56] pwnd_nfsw: warshrike, should have index: true at the end, I think
[18:00:14] warshrike: what should have that?
[18:01:04] pwnd_nfsw: you you use migration generator, dicks:references will generate t.references :dicks, index: true, foreign_key: true
[18:01:14] blackmes1: has joined #RubyOnRails
[18:01:17] pwnd_nfsw: dionysus69, could it be the data attribute in the div?
[18:01:49] dionysus69: pwnd_nfsw: hmm dunno will remove it and try
[18:02:15] comm64x: FailBit: Moreover, I want the db in rails to be rethinkdb. So I'm trying to convert a django-mongodb application to a rails-activerecord-rethinkdb application. I'm a sucker for punishment I guess but it's all good, as long as I'm rewiring some more neural pathways lol
[18:02:57] dionysus69: pwnd_nfsw: but that one is kind of necessary for the point here because I dont want the checkboxes to appear on the buttons
[18:03:19] dionysus69: pwnd_nfsw: so what this whole thing is doing is that buttons act as checkboxes they get activated or deactivated
[18:03:37] pwnd_nfsw: dionysus69, so.. something with js is fukin' up.
[18:03:37] warshrike: Also, if someone wanted to do some sql level changes directly, we'd have to modify the sqllite.sql file?
[18:03:40] pwnd_nfsw: But I don't really know
[18:03:53] pwnd_nfsw: warshrike, or use migrations like a normal human
[18:03:55] rubyonrails289: has joined #RubyOnRails
[18:04:19] pwnd_nfsw: If I understood you correctly
[18:04:19] dionysus69: pwnd_nfsw: ok thanks :) at least you pointed me to right direction, I didn't see that as a problem :\
[18:04:33] warshrike: are migrations really powerful enough to do what dirty sql can?
[18:04:35] pwnd_nfsw: dionysus69, it's my guess anyways. lol
[18:04:51] rushed: warshrike: a) yes b) you can use execute so also yes
[18:04:52] pwnd_nfsw: You can use pure SQL in active record
[18:05:36] anantnfc: has joined #RubyOnRails
[18:05:36] pwnd_nfsw: it's hard to study when it sounds like a 4 year old is being killed in my living room
[18:05:39] warshrike: yeah find_by_sql i guess
[18:05:46] pwnd_nfsw: Sometimes I wish it were so
[18:05:55] ruurd: has joined #RubyOnRails
[18:09:01] warshrike: and one last question, does adding references to a migration cause any changes to active record level stuff (I'd previously been under the impression that it would create a belongs_to in the model)?
[18:09:50] rushed: warshrike: migrations change the database, they don't impact models
[18:09:53] apg: has joined #RubyOnRails
[18:10:28] Joufflu: has joined #RubyOnRails
[18:10:28] Macaveli: has joined #RubyOnRails
[18:12:02] apg: has joined #RubyOnRails
[18:12:10] warshrike: Thanks. Makes sense.
[18:14:00] Palsson: has joined #RubyOnRails
[18:14:07] willardg: has joined #RubyOnRails
[18:14:10] havenwood: has joined #RubyOnRails
[18:14:15] Lincee: has joined #RubyOnRails
[18:15:18] rickmasta: has joined #RubyOnRails
[18:15:30] comm64x: here's a project idea, what do you think about implementing django in ruby? Create a whole new framework. Not Rails. Not Django. Best of both worlds. Think it could be done? We'll never know if no one tries. This sounds like a job for the commodore! lol
[18:17:44] ruurd: has joined #RubyOnRails
[18:17:55] rushed: comm64x: you're in the wrong channel for "Not Rails" :)
[18:18:05] blackmes1: has joined #RubyOnRails
[18:18:18] dikaio: comm64x what would be the best from both?
[18:18:43] Lincee: heh #DjangoOnRuby
[18:19:35] argami_: has joined #RubyOnRails
[18:20:06] comm64x: dikaio: well, I've been reading some articles that compare the two frameworks and they both seem to be about on par. Rails has much cleaner, better organized code, and django I guess is more substantial they say
[18:20:37] rushed: comm64x: please, tell us more random stuff you read on the internet~
[18:21:11] comm64x: These articles were fairly technical unbiased comparisons
[18:21:40] thsig: has joined #RubyOnRails
[18:21:54] Papierkorb: comm64x: Both also support the GIGO principle
[18:22:29] comm64x: I just happened to see some areas where each framework would benefit by meshing with the other. It could become the love-child of Rails and Django hahaha
[18:22:49] scoot: has joined #RubyOnRails
[18:23:12] comm64x: research and development
[18:23:40] Lincee: and you'd name it Commodore on Steriods ?
[18:24:23] Papierkorb: Lincee: rjango.js
[18:24:31] framling: has joined #RubyOnRails
[18:24:48] comm64x: I don't know what you would call such a chimera. It's too early in the development cycle for that :)
[18:24:49] Lincee: go for it i say :)
[18:25:01] sandstrom: has joined #RubyOnRails
[18:25:07] comm64x: how would you pronounce rjango.js lol
[18:25:11] KnownSyntax: has joined #RubyOnRails
[18:26:11] thsig: has joined #RubyOnRails
[18:26:37] jun_: has joined #RubyOnRails
[18:26:54] mikebonar: has joined #RubyOnRails
[18:27:30] brnpcn: has joined #RubyOnRails
[18:28:25] Lincee: "ar jango dot jee es" ?
[18:28:58] Lincee: or name it r.js
[18:29:09] Papierkorb: you pronounce .js 'jee es'?
[18:29:29] Lincee: well thats what i think.. but im dutch so ;-)
[18:29:40] Lincee: pardon me if you dont spell it that way ;-)
[18:29:49] Pazician: has joined #RubyOnRails
[18:30:12] Papierkorb: I also think each time when I have to do JS if it wouldn't help to begin believing in a higher entity, but no reason to call it jees'
[18:30:30] apg: has joined #RubyOnRails
[18:31:01] Lincee: heh, i think of praying to higher entity and i havent even started learning rails yet!
[18:31:03] ktchup: has joined #RubyOnRails
[18:31:21] scoot: has joined #RubyOnRails
[18:31:35] scoot: has joined #RubyOnRails
[18:32:14] Lincee: i did buy "Building dynamic websites with ruby on rails" though.. from packt!
[18:33:18] Lincee: not sure why.. since i buy most books online but alas! i suppose its nice to have some "real" books to show
[18:33:19] jun_: has joined #RubyOnRails
[18:33:25] bronson: has joined #RubyOnRails
[18:33:57] ericjphillips: has joined #RubyOnRails
[18:33:59] moeabdol: has joined #RubyOnRails
[18:34:48] raj___: has joined #RubyOnRails
[18:35:11] mosez: has joined #RubyOnRails
[18:39:31] thsig: has joined #RubyOnRails
[18:42:57] grotewold: has joined #RubyOnRails
[18:43:54] zpe: has joined #RubyOnRails
[18:44:06] cih: has joined #RubyOnRails
[18:44:07] lxsameer: has joined #RubyOnRails
[18:44:31] deavid: has joined #RubyOnRails
[18:46:06] arup_r: Lincee: do you have minitest cookbook ?
[18:47:00] naftilos76: has joined #RubyOnRails
[18:47:15] Lincee: whats that?
[18:48:03] arup_r: It is also a good book on testing
[18:48:27] Pavstermeister: has joined #RubyOnRails
[18:48:50] annlewis: has joined #RubyOnRails
[18:52:24] Lightsword: has joined #RubyOnRails
[18:52:40] Lincee: oh, one day.. when im got at ror, i'll read the more advanced topics :)
[18:53:19] netzfisch: has joined #RubyOnRails
[18:54:38] dideler: has joined #RubyOnRails
[18:55:19] chills42: has joined #RubyOnRails
[18:55:23] thejamespinto: has joined #RubyOnRails
[18:55:41] drptbl: has joined #RubyOnRails
[18:56:37] apg: has joined #RubyOnRails
[18:58:21] Pumukel: has joined #RubyOnRails
[18:58:37] jamo: I cannot seem to figure out how to accomplish this; I want to execute a query in db where I want to calculate time between two date fields and get that as one field in the result/object - Say I have Submission which has field created_at and processed_at and I want to know time it took to get processed (processed_at - created_at).
[18:59:26] Gustavo: has joined #RubyOnRails
[19:01:06] rushed: Jamo: processed_at - created_at doesn't give you want you're looking for?
[19:01:12] FailBit: I don't think you can do that with SQL, can you?
[19:01:12] brnpcn: has joined #RubyOnRails
[19:01:22] FailBit: but you can easily pluck the fields and calculate it yourself
[19:01:35] arup_r: FailBit: possible in SQL too
[19:01:45] smathy: has joined #RubyOnRails
[19:02:05] jamo: I know it's possible elegantly in sql; but can't seem to figure out how exaclty write it in to the query
[19:02:20] rushed: Jamo: what do you expect back?
[19:02:29] FailBit: http://www.sqlines.com/postgresql/how-to/datediff
[19:02:41] FailBit: also, the query depends on your database
[19:02:53] FailBit: different databases derive different dialects
[19:03:32] jamo: rushed: basically what I need/would like to get is id and time in seconds; the time should be rather small (less than a few minutes)
[19:03:43] jamo: and I'm using postgres
[19:04:00] rushed: Jamo: what form do you want your results to take?
[19:04:29] rushed: Jamo: array of timespans, hash (of what to what), model objects w/ an additional property, etc, etc
[19:04:43] neohunter: has joined #RubyOnRails
[19:04:44] jamo: model object with additional property
[19:05:00] neohunter: Rails 2.3 How I can use a helper method in console?
[19:05:02] ruurd: has joined #RubyOnRails
[19:05:04] jamo: or well I eventually just want to plot it
[19:05:10] rushed: neohunter: stop using Rails 2.3
[19:08:14] rushed: Jamo: Submission.select('*, processed_at - created_at as delay')
[19:08:26] sandstrom: has joined #RubyOnRails
[19:10:08] jamo: rushed: thanks, I was definitely trying to make to too hard
[19:11:52] grotewold: has joined #RubyOnRails
[19:13:07] codenapper: has joined #RubyOnRails
[19:15:18] rhizome: has joined #RubyOnRails
[19:17:02] scoot: has joined #RubyOnRails
[19:20:18] SteenJobs: has joined #RubyOnRails
[19:20:22] natevick: has joined #RubyOnRails
[19:22:47] chipotle: has joined #RubyOnRails
[19:24:05] corioliss: has joined #RubyOnRails
[19:24:52] beauby: has joined #RubyOnRails
[19:25:43] brnpcn: has joined #RubyOnRails
[19:27:39] scoot: has joined #RubyOnRails
[19:27:53] willardg: has joined #RubyOnRails
[19:30:16] scoot: has joined #RubyOnRails
[19:31:28] RegulationD: has joined #RubyOnRails
[19:34:17] bronson: has joined #RubyOnRails
[19:38:56] Tempesta: has joined #RubyOnRails
[19:39:15] SteenJobs: has joined #RubyOnRails
[19:41:12] thsig: has joined #RubyOnRails
[19:42:29] Pumukel: has joined #RubyOnRails
[19:43:30] roxtrongo: has joined #RubyOnRails
[19:43:48] yaymukund: has joined #RubyOnRails
[19:44:57] Cervajz: has joined #RubyOnRails
[19:45:44] cihad: has joined #RubyOnRails
[19:48:11] cih: has joined #RubyOnRails
[19:49:12] finnnnnnnnnnn: has joined #RubyOnRails
[19:49:21] comm64x: has left #RubyOnRails: ()
[19:49:46] annlewis: has joined #RubyOnRails
[19:51:05] Scripore: has joined #RubyOnRails
[19:54:06] hoodow: has joined #RubyOnRails
[19:55:41] crdpink2: has joined #RubyOnRails
[19:58:01] SteenJobs: has joined #RubyOnRails
[19:58:57] youngbaks: has joined #RubyOnRails
[19:59:59] apg: has joined #RubyOnRails
[20:01:09] Tempesta: has joined #RubyOnRails
[20:01:55] apg: has joined #RubyOnRails
[20:02:06] arup_: has joined #RubyOnRails
[20:02:36] thejamespinto_: has joined #RubyOnRails
[20:04:29] arup_r: has joined #RubyOnRails
[20:11:21] FrankD: has joined #RubyOnRails
[20:16:49] havenwood: has joined #RubyOnRails
[20:18:51] cih: has joined #RubyOnRails
[20:20:11] DoubleMalt: has joined #RubyOnRails
[20:21:01] livcd: anyone developing with rails on docker ?
[20:21:03] Voyage: has joined #RubyOnRails
[20:21:05] Voyage: is it u.save! or u.save!: or u.save:?
[20:21:19] FailBit: you don't seem to know ruby
[20:23:46] smathy: has joined #RubyOnRails
[20:23:47] djbkd: has joined #RubyOnRails
[20:26:47] doge__: has joined #RubyOnRails
[20:27:23] rubyonrails205: has joined #RubyOnRails
[20:28:26] tsujp: has joined #RubyOnRails
[20:30:36] helpa: livcd: Don't ask "does anyone use <thing>?". It's better to just state your problem and if anyone has used <thing> they will most likely answer.
[20:31:41] livcd: slash_nick: then my q would be what's how is your workflow with docker :3
[20:34:03] willardg: has joined #RubyOnRails
[20:34:46] maz-dev: has joined #RubyOnRails
[20:35:09] bronson: has joined #RubyOnRails
[20:35:11] ruurd: has joined #RubyOnRails
[20:42:18] slash_nick: livcd: we use docker and rails where i work (among other things). we use docker and ansible playbooks together. something like http://www.ansible.com/docker... i wasn't the dev to create our workflow, but i'm willing to bet it's based on some blog post somewhere, somehow
[20:42:42] livcd: slash_nick: what kind of base image you use for these containers ?
[20:43:52] slash_nick: livcd: no telling... sorry. i imagine we have a base image that includes a working ruby/rails environment.
[20:43:59] idd2d: has joined #RubyOnRails
[20:44:18] Voyage: need help in gitlab
[20:44:18] Voyage: I forgot admin email and password.
[20:44:37] livcd: slash_nick: can't you check docker images ?
[20:44:39] slash_nick: livcd: our builds create containers... deployment pulls the containers
[20:47:01] slash_nick: livcd: can't do much of anything from this machine at this location. :)
[20:47:23] RegulationD: has joined #RubyOnRails
[20:48:39] slash_nick: livcd: but this isn't a one off problem... tons of folks use docker with rails and have written about it. are you just going for a simple deployment process, or something more involved like continuous deployment?
[20:49:12] ericjphillips: has joined #RubyOnRails
[20:49:25] mary5030: has joined #RubyOnRails
[20:49:25] livcd: slash_nick: sure they do but there is like 1000 other companion tools people work with. I am just trying to get as many opinions as I can
[20:50:33] annlewis: has joined #RubyOnRails
[20:50:41] jun_: has joined #RubyOnRails
[20:50:44] ruurd: has joined #RubyOnRails
[20:51:02] slash_nick: ah... honestly docker/ansible work together really well... while i didn't design our deployment processes, it's been a pleasure working with the ansible scripts as the person developing and deploying our rails app
[20:51:21] livcd: i'll think about that
[20:51:36] livcd: slash_nick: do you use docker compose to get your app running ?
[20:53:34] slash_nick: livcd: `docker run --restart=always`
[20:54:03] lyuben_: has joined #RubyOnRails
[20:54:24] slash_nick: livcd: gotta do some work while i have some free time... good luck
[20:54:33] rickmasta: has joined #RubyOnRails
[20:55:32] livcd: slash_nick: thanks gl to you as well
[20:59:17] agit0: has joined #RubyOnRails
[20:59:34] yaymukund: has joined #RubyOnRails
[21:01:44] yaw: has joined #RubyOnRails
[21:02:55] gambl0re: has joined #RubyOnRails
[21:02:59] mary5030: has joined #RubyOnRails
[21:04:00] FailBit: http://eev.ee/blog/2013/01/09/cvs-and-file-extensions/
[21:04:21] gambl0re: has joined #RubyOnRails
[21:04:27] FailBit: pdf clearly generated from LaTeX: Instant boner. Are you sure you???re in comp sci and not math? Maybe you want a LISP shop.
[21:04:42] JEEB: has joined #RubyOnRails
[21:05:35] gabeodess: has joined #RubyOnRails
[21:05:38] angelixd: has joined #RubyOnRails
[21:06:27] DefV: has joined #RubyOnRails
[21:06:53] gabeodess: I???m trying to define a function on an attribute of my class that then makes reference to the parent class. Here???s an example of what I???m trying to do: https://gist.github.com/gabeodess/ba38e67aa7f27e2eaead
[21:07:26] gabeodess: the problem is the ???user??? reference doesn???t work. Is there a way to access the parent instance for something like this?
[21:08:03] rhizome: what is ".<<" supposed to do?
[21:08:39] gabeodess: rhizome: it is supposed to add the val to the array and then save the user.
[21:09:02] gabeodess: rhizome: in reality, addresses is an attribute in the table, not an instance method
[21:09:07] rhizome: why not use an association?
[21:09:38] gabeodess: rhizome: I???m playing with jsonb, thought maybe I don???t need a whole new table for this solution.
[21:10:04] maloik: has joined #RubyOnRails
[21:11:04] hololeap: has joined #RubyOnRails
[21:11:07] blackmesa: has joined #RubyOnRails
[21:11:57] VeryBewitching: has joined #RubyOnRails
[21:12:55] hololeap: i have a database that has the following structure: City belongs_to Subregion; Subregion belongs_to Region; ... each table has a "name" column. i want to be able to do something like `City.where(region_name: 'US')` ... any ideas how i could do this?
[21:13:26] bruno-: has joined #RubyOnRails
[21:13:50] gabeodess: hololeap: City.joins(:region).where(:regions => {:name => ???US???})
[21:14:32] hololeap: gabeodess: sweet, thanks
[21:15:32] thsig: has joined #RubyOnRails
[21:15:55] benlieb: has joined #RubyOnRails
[21:19:10] roxtrongo: has joined #RubyOnRails
[21:20:54] roxtrongo: has joined #RubyOnRails
[21:21:11] CanTonic: has joined #RubyOnRails
[21:21:19] smathy: has joined #RubyOnRails
[21:27:04] Voyage: has left #RubyOnRails: ("Leaving")
[21:29:49] ruurd: has joined #RubyOnRails
[21:33:54] smathy: has joined #RubyOnRails
[21:36:03] bronson: has joined #RubyOnRails
[21:37:35] meoblast001: has joined #RubyOnRails
[21:38:38] FailBit: http://eev.ee/blog/2011/12/04/fuck-passwords/#fuck-banks
[21:39:13] northfurr: has joined #RubyOnRails
[21:43:02] michaeldeol: has joined #RubyOnRails
[21:44:50] montagesoftware: has joined #RubyOnRails
[21:46:42] ahmgeek: has joined #RubyOnRails
[21:46:45] Pazician: has joined #RubyOnRails
[21:47:46] ahmgeek: hey guys, I have a model called contribution and model user, contribution belongs to user and user has_many :contributions, through: :collaborations I can make something like contribution.user_id in local development
[21:47:51] ahmgeek: but not on production
[21:47:59] ahmgeek: it always throw an error.
[21:48:09] ahmgeek: no method contribution.user_id
[21:49:17] rhizome: did you migrate?
[21:50:13] ahmgeek: yeah, I did. it uses mydb_production so when I reset it or rake db:setup it works. also I saw the column there from psql.
[21:50:28] nahtnam: has joined #RubyOnRails
[21:51:09] annlewis: has joined #RubyOnRails
[21:54:44] Gustavo: has joined #RubyOnRails
[21:57:38] tejasmanohar_: has joined #RubyOnRails
[21:57:55] pawnbox: has joined #RubyOnRails
[22:02:27] Gustavo: has joined #RubyOnRails
[22:05:22] argami_: has joined #RubyOnRails
[22:06:49] dikaio: has joined #RubyOnRails
[22:11:31] sadaf2605: has joined #RubyOnRails
[22:14:31] lxsameer: hey people, does any one has any coding standard or something similar to help a team of rails developers perform better ? any suggestion ?
[22:15:28] SteenJobs: has joined #RubyOnRails
[22:15:54] rushed: lxsameer: what aspect of your performance would you like to improve?
[22:16:44] lxsameer: rushed: generally I really like my team to perform better job at team play and coding
[22:17:28] mary5030: has joined #RubyOnRails
[22:17:52] fumduq: has joined #RubyOnRails
[22:17:54] rushed: lxsameer: a gem that throws out messages based on static analysis is unlikely to help you with that :)
[22:18:24] dopamean_: has joined #RubyOnRails
[22:18:47] Netun0: has joined #RubyOnRails
[22:19:10] argami: has joined #RubyOnRails
[22:19:22] Scripore: has joined #RubyOnRails
[22:19:34] lxsameer: rushed: yeah, I look for things like code standards or a list of good habits which allow my teammate to work better with each other, for example in our team junior devs mostly do nothing, because they can't keep up with seniors
[22:21:52] gabeodess: has joined #RubyOnRails
[22:22:36] rhizome: sounds like a management/people problem
[22:25:30] cornerman: has joined #RubyOnRails
[22:28:33] roxtrongo: has joined #RubyOnRails
[22:29:21] mary5030: has joined #RubyOnRails
[22:29:37] ahmgeek: lxsameer, what's you company name ?
[22:30:08] lxsameer: ahmgeek: Yellowen
[22:31:11] ahmgeek: gonna come work with you guys :)) give me the link.
[22:32:29] lxsameer: ahmgeek: :))))
[22:32:36] lxsameer: ahmgeek: yellowen.com
[22:34:21] mices: has joined #RubyOnRails
[22:34:22] baweaver: has joined #RubyOnRails
[22:34:27] ahmgeek: Sameer Rahmani hola hola, Egypt say hi.
[22:34:54] pjammer: has joined #RubyOnRails
[22:35:12] ngscheurich: has joined #RubyOnRails
[22:37:01] bronson: has joined #RubyOnRails
[22:37:24] lxsameer: ahmgeek: hi bro
[22:37:42] most_: has joined #RubyOnRails
[22:39:12] lipoqil: lxsameer: Check this: https://playbook.thoughtbot.com and this https://github.com/railsbp/rails_best_practices
[22:39:23] most_: how can i sync assets like stylesheets and js upon deployment to heroku if i want the assets to be loaded from an s3 bucket?
[22:39:41] lxsameer: lipoqil: I read the first one, thanks buddy
[22:39:46] most_: without using the asset_sync gem
[22:48:12] RegulationD: has joined #RubyOnRails
[22:51:37] annlewis: has joined #RubyOnRails
[23:01:34] CanTonic: has joined #RubyOnRails
[23:05:21] FrankD: has joined #RubyOnRails
[23:05:29] SteenJobs: has joined #RubyOnRails
[23:09:44] Trynemjoel: has joined #RubyOnRails
[23:10:51] yfeldblum: has joined #RubyOnRails
[23:16:43] Trynemjoel: has joined #RubyOnRails
[23:16:51] michaeldeol: has joined #RubyOnRails
[23:17:11] roxtrongo: has joined #RubyOnRails
[23:18:52] blackhuey: has joined #RubyOnRails
[23:20:58] Kallis: has joined #RubyOnRails
[23:22:40] roxtrongo: has joined #RubyOnRails
[23:23:05] tomoyuki28jp: has joined #RubyOnRails
[23:23:34] tomoyuki28jp: Is there any gem which can draw a graph like this? http://www.asymco.com/wp-content/uploads/2011/05/Screen-shot-2011-05-13-at-5-13-11.57.24-AM.png
[23:23:59] montagesoftware_: has joined #RubyOnRails
[23:24:24] pwnd_nfsw: https://www.ruby-toolbox.com/categories/graphing
[23:24:26] pwnd_nfsw: yeay google
[23:24:53] donkey-hotei: has joined #RubyOnRails
[23:24:53] tomoyuki28jp: pwnd_nfsw: Actually I've already looked into it.
[23:24:53] montagesoftware: has joined #RubyOnRails
[23:25:28] sarink: has joined #RubyOnRails
[23:26:19] qejk: has joined #RubyOnRails
[23:26:45] tomoyuki28jp: I know libraries like chartkick support area chart, but can I draw multiple series of area charts into one graph?
[23:27:12] tomoyuki28jp: pwnd_nfsw: What makes you to feel like I'm a liar?
[23:27:40] pwnd_nfsw: It's a joke, I don't really think you're a liar
[23:28:09] tomoyuki28jp: pwnd_nfsw: I see.
[23:28:29] pwnd_nfsw: huehue, sense of huemor
[23:29:45] workmad3: tomoyuki28jp: https://developers.google.com/chart/interactive/docs/gallery/areachart#stacking-areas
[23:30:21] yaymukund: has joined #RubyOnRails
[23:30:21] jun_: has joined #RubyOnRails
[23:30:27] tomoyuki28jp: workmad3: thanks!
[23:31:27] tomoyuki28jp: Googlecharts send graph data to a google server each time, right?
[23:31:59] tomoyuki28jp: (It's acceptable in my case though.)
[23:32:00] FailBit: it pisses me off that I can't remember the XML declaration at all
[23:32:10] FailBit: and I've had to write it 10 times today
[23:32:34] Rodya_: has joined #RubyOnRails
[23:32:39] donkey-hotei: has joined #RubyOnRails
[23:33:10] donkey-hotei: hello -- I am looking for a simple method of creating an array of strings from within a view and then passing that array as a query parameter
[23:33:34] FailBit: well aren't you doing something unique
[23:33:57] donkey-hotei: web devs have probably been doing shit like that for years
[23:34:28] donkey-hotei: i know that rails uses ?array=[] syntax for passing in arrays
[23:35:01] superlou: has joined #RubyOnRails
[23:35:08] donkey-hotei: FailBit: have you done this?
[23:38:06] bronson: has joined #RubyOnRails
[23:39:04] pjammer: has joined #RubyOnRails
[23:40:35] quazimodo: has joined #RubyOnRails
[23:40:40] FelipeBHZ: has joined #RubyOnRails
[23:46:43] smathy: has joined #RubyOnRails
[23:51:52] smathy: has joined #RubyOnRails
[23:53:58] Ropeney: has joined #RubyOnRails
[23:56:07] pwnd_nfsw: donkey_hotei, I'd just do it through a form
[23:56:12] pwnd_nfsw: 'cause like... dirty urls
[23:56:41] pwnd_nfsw: Also, probably easier to read being form data as opposed to being a URL.
[23:56:51] IceyEC: has joined #RubyOnRails
[23:57:08] jun_: has joined #RubyOnRails
[23:58:53] Aeyrix: FailBit: Does your booru run on stock ruby
[23:58:57] Aeyrix: or Rubinus?
[23:59:03] thejamespinto: has joined #RubyOnRails
[23:59:28] FailBit: lead admin said he wanted to try JRuby, I told him to go fuck himself
[23:59:42] FailBit: we have a bunch of native deps
[23:59:48] FailBit: the booru won't function without MRI