Page 1 of 3 | Next »
[10:58:59] ahmgeek: I have a role model that cancancan uses, I depend on it, the new gem creates a new table called strongbolt_roles, and module Strongbolt class Role in the gem I want to install.
[10:59:57] ahmgeek: I have conflicts in the role model, I want to solve it without changing lots of the code base or the other way around, in the gem.
[11:02:22] ahmgeek: yeah, so in my code I should make my role model somethung like Aurora::Role < ActiveRecord::Base ?
[23:11:28] ahmgeek: hey folks, I want to ask something regards background jobs, if I want to make a create! through sidekiq for instance and that create should return me an id I want to get that id back to the user to start using it as it's saved already.
[17:43:38] ahmgeek: if I have something like https://gist.github.com/adam12/7e6db5840980da918dde/6e0bf26582a45f117b43c8310cde922b432a9c9a#file-image-rb how can I make the :optimize_image takes parameters ?
[13:54:53] ahmgeek: if I want to create a ccompany website with a custom image slider testimonials etc.. what cms is flexible enough to use ?
[15:50:06] ahmgeek: hey folks, I have this https://gist.github.com/ahmgeek/5f8491723054054bffcf in a main form_for, so I only want to add 8 Images, the problem is where I want to edit this page, how can I bind images that got uploaded to this form ?
[17:45:52] ahmgeek: ok folks, here's the problem, this form is inside an outer form for the main contribution, so, it displays the images correctly, but I want to put some uploaders placeholders for the remaining images, the goal is only to upload 8 images.
[17:46:58] ahmgeek: then add an html code for the placeholders in case he wanted to upload more images that not exceed the 8ths
[12:36:22] ahmgeek: image uploading Gem ( dragonfly, paperclip) I am looking to replace the current dragonfly gem, but don't know what's the best there to use.
[12:38:32] ahmgeek: no, we want to switch for some reasons, one of them is doing some process to compress the images, dragonfly eat the cpu, and for doing processing, it will make it worse and using workers needs a good infrastructure first
[12:38:57] ahmgeek: I guess the folks used dragonfly because of the on the fly processing, without having a sight for the coming issues
[12:39:55] ahmgeek: I didn't asked about the popular :D I asked about the best, or at least the common one among most of you.
[00:35:20] ahmgeek: FailBit: I saw it here: http://api.rubyonrails.org/classes/ActionController/Redirecting.html
[00:37:37] ahmgeek: I always searched for any reasons or examples to write Proc or Lambdas in rails, I really didn't find any use cases for it so far, despite using it in rails itself, as I still new to rails
[02:32:25] ahmgeek: anyone have a solution for this guys ? https://github.com/manshar/manshar/pull/202
[13:32:57] ahmgeek: hey folks, I am into the first step in a new company, I haven't did any test in ruby before, they asked me to do a task with tests in two days, and to dig as much as I can in those two days in the tests world.
[13:50:24] ahmgeek: before I write tests I need to know a little history maybe, but the souce, I need a souce
[12:29:32] ahmgeek: get dragonfly image path to use with imageoptim ? the documentation seems to lack it
[04:27:39] ahmgeek: just wanted to give him a virtual HUG, here's free HUGS for all of you floks. *MAD HUGS*
[04:34:58] ahmgeek: http://english.stackexchange.com/questions/112941/how-to-say-hello-to-a-group-of-people learned about it from here.
[04:35:32] ahmgeek: I saw you folks, recommending rails 4 in action for learning rails, is there any intermediate book or another book along with it ?
[04:37:46] ahmgeek: rushed, not really, but I read the free chapters. I'll buy it though, but I needed to know if there's already such a books..
[10:03:11] ahmgeek: how can I catch if it checked or not from the page or I just work on the controller, and it will get it with request anyhow ?
[10:05:18] ahmgeek: no. I want to check box on the page, in the controller if it checked I'll share it on FB if not. then no sharing, no models at all here.
[10:05:42] ahmgeek: the problem is, I don't have a method for sharing within my model to use it with form_for.
[10:14:09] ahmgeek: it's something I was hoping to hook a checkbox to get a true or false then proceed
[10:15:25] ahmgeek: I have a story record, have some lots of things inside. story details year etc.. the sharing checkbox is an extra sauce.
[10:16:22] ahmgeek: I now want to make a chekbox to really share it on behalf of the true or false value.
[10:18:05] ahmgeek: here's the thing, when I open the chrome developers tool, to see the element, when I press it I don't see the value change.
[10:25:53] ahmgeek: well, I read the documentation examples not the method itself :( I guess it's my bad. let me try again.
[00:06:18] ahmgeek: folks, I am sending an invitation by mail to get users, so here's the invitation link, https://gist.github.com/ahmgeek/e353fa3d71cfb607c150 I want to store the params in the url in cookies, and after the login and signup make some processing in the home page. so, the Idea is I use omniauth fb only to login.
[15:09:55] ahmgeek: I have an facebook omniauth and devise login mechanism, just this way for login, no mails or passwords, the gig is, I want to invite people by mails, and whom gets such invitation got an extra params, these params I try to process
[15:15:23] ahmgeek: actually, no errors. here's what happen. when an invitation sent, the link is: http://localhost:3000/users/sign_in?uid=d9c99a9d-8909-4818-80e1-764260d370e7&story=61&userId=1
[15:15:51] ahmgeek: so, this link is redirect to a landing page, and the params got shown up. in the browser address field.
[15:16:13] ahmgeek: I want to save these params into a cookie, then when the call back from facebook happen,
[16:16:40] ahmgeek: tbuehlmann: yep, get another value from another param actually, send two forms for this action, so if the first is not nil, it's the first form, if nil, then it's the second, and it should grab the value from the second param
[16:20:07] ahmgeek: tbuehlmann: it's just like I want to assign a value if not nil, if nil assign another value.
[16:21:56] ahmgeek: will I was thinking that it's only a matter of || or |= for instance without using if or else.
[16:23:41] ahmgeek: well, thanks folks gonan test those. ishikawa91: I am sending to that action from two forms, so I just wanted to make sure to set the values for any forms if it was the caller.
[17:29:12] ahmgeek: smathy: https://gist.github.com/ahmgeek/544f4006aec6051d1e41 discard the puts, debugging purposes :D
[03:01:05] ahmgeek: ook, here's the response https://gist.github.com/ahmgeek/09e4adcd2b34dc570bf9#file-method-response-L1
[03:05:36] ahmgeek: appending every string element to the array, I also convert it to a string element in case it's not a string.
[03:06:10] ahmgeek: Radar: well, I am still trying to learn both rails and ruby :D so I do it in a little noobs way.
[15:33:53] ahmgeek: well, I was trying just to catch the array like this : params[:members][:friends_ids]
[15:48:02] ahmgeek: I do learn more :(, I've caught the error, I was do it like: params[:members][:friends_ids] if params[:members][:friends_ids] with put defining the state at the end of the if condition
[21:25:27] ahmgeek: hey dears, this is the only controller I have in order to authenticate useres through Facebook, no pass, no mails login, FB only, the problem is sometimes users find themselves posting things as another users !
[21:58:39] ahmgeek: I don't know, the problem isn't with posting things only, it's about sometimes, after I log in, and went to another page, I find myself as another account !!
[18:14:25] ahmgeek: guys, I have a little bit weird question, I am new to rails, but I want to master ruby, I want to write a cool things to show of for Recurse Center as I want to apply there. what projects (small scale) and effective to work on.
[18:14:49] ahmgeek: and is there any books that aims for building things with ruby not teaching the lang itself