« Back to channel list

#RubyOnRails - 09 June 2017

« Back 1 day Forward 1 day »
[00:05:48] Rodya_: has joined #RubyOnRails
[00:20:07] byteflame: has joined #RubyOnRails
[00:23:11] brent__: has joined #RubyOnRails
[00:28:56] psylone: has joined #RubyOnRails
[01:03:53] sevenseacat: has joined #RubyOnRails
[01:04:58] HoierM: has joined #RubyOnRails
[01:06:35] Rodya_: has joined #RubyOnRails
[01:08:32] brent__: has joined #RubyOnRails
[01:22:39] irishfromua: has joined #RubyOnRails
[01:23:43] duderonomy: has joined #RubyOnRails
[01:24:23] byteflame: has joined #RubyOnRails
[01:28:12] Orbixx: has joined #RubyOnRails
[01:31:30] chouhoulis: has joined #RubyOnRails
[01:35:03] zzj: has joined #RubyOnRails
[01:36:31] quazimodo: has joined #RubyOnRails
[01:37:57] byteflame: has joined #RubyOnRails
[01:48:17] SteenJobs: has joined #RubyOnRails
[01:54:58] ascarter: has joined #RubyOnRails
[01:56:25] Technodrome: has joined #RubyOnRails
[01:58:40] urkle: has joined #RubyOnRails
[02:00:58] tanuki: has joined #RubyOnRails
[02:07:21] Rodya_: has joined #RubyOnRails
[02:10:19] byteflame: has joined #RubyOnRails
[02:19:09] xx00__: has joined #RubyOnRails
[02:32:09] psylone: has joined #RubyOnRails
[03:00:24] sandstrom: has joined #RubyOnRails
[03:08:11] Rodya_: has joined #RubyOnRails
[03:08:35] ascarter: has joined #RubyOnRails
[03:23:53] xx00__: has joined #RubyOnRails
[03:34:50] felltir: has joined #RubyOnRails
[03:36:48] irishfromua: has joined #RubyOnRails
[03:51:00] Jameser: has joined #RubyOnRails
[03:53:20] xploshioon: has joined #RubyOnRails
[03:55:08] xploshioon: hello people how can I add format pdf to this link? I tried different ways but nothing <%= link_to lot_report_path(@lot.id, params.permit(:borough, :block, :receiving, :transferring, :adjacents)), :class => "btn btn-info btn-circle btn-lg", :target => "_blank" do %>
[03:56:07] xploshioon: at the begining, at the end, sometimes it does take the format, but not the params and viceversa
[03:56:09] Radar: xploshioOn: lot_report_path(@lot.id, params.permit(:borough, :block, :receiving, :transferring, :adjacents).merge(format: :pdf))
[03:56:50] ascarter: has joined #RubyOnRails
[03:57:44] xploshioon: @Radar, that adds a format param to the get params but don't create the url like report.pdf
[03:57:58] Radar: xploshioOn: What does it do instead?
[03:58:50] xploshioon: it creates a link like http://localhost:3000/lots/9084/report?receving=asd&block=123...
[03:59:02] Radar: Does format appear anywhere in that URL?
[03:59:06] xploshioon: it creates a link like http://localhost:3000/lots/9084/report?receving=asd&block=123&format=pdf...
[03:59:11] Radar: There it is.
[03:59:22] Radar: How is the lot_report_path generated in your routes file?
[03:59:43] xploshioon: but i don't need it as param, I need it in the url, like the format to respond with a pdf file
[03:59:56] xploshioon: http://localhost:3000/lots/9084/report.pdf?receving=asd&block=123...
[03:59:59] xploshioon: like that one
[04:00:09] Radar: xploshioOn: Please answer my question.
[04:00:54] ascarter_: has joined #RubyOnRails
[04:01:51] xploshioon: like this https://gist.github.com/xploshioOn/e5cba989ead3944a40c95d374010af33
[04:01:58] Radar: thank you.
[04:02:06] Radar: Why not just get :report ?
[04:02:50] Radar: Either way, it should allow you to specify a format on the end of the URL I would think
[04:04:27] xploshioon: if I add it manually it works
[04:04:53] xploshioon: but need to generate the button to open the report with those get params
[04:08:28] xploshioon: if I remove the params and let just the format it works
[04:08:53] xploshioon: the button open reports.pdf
[04:09:00] Rodya_: has joined #RubyOnRails
[04:09:03] xploshioon: but obviously without the params
[04:12:52] xploshioon: lot_report_path(@lot, {format: :pdf}.merge(params.permit(:name, :adjacents....
[04:12:56] xploshioon: that did the trick
[04:13:24] xploshioon: but why this works and in the other way don't? and, it's a bad way to do this?
[04:13:36] xall: has joined #RubyOnRails
[04:16:35] Radar: xploshioOn: that doesn't make sense.
[04:18:52] xploshioon: @radar, i know, that's why I am asking, really weird
[04:20:45] xploshioon: created 2 buttons in the same view with both and the same behaviour, I don't know why
[04:26:29] mikecmpbll: has joined #RubyOnRails
[04:30:05] fschuindt1: has joined #RubyOnRails
[04:30:48] ascarter: has joined #RubyOnRails
[04:45:53] patarr: has joined #RubyOnRails
[04:52:13] ascarter: has joined #RubyOnRails
[04:59:24] mikecmpbll: has joined #RubyOnRails
[05:09:52] Rodya_: has joined #RubyOnRails
[05:10:28] armyriad: has joined #RubyOnRails
[05:19:46] arBmind: has joined #RubyOnRails
[05:31:26] ur5us: has joined #RubyOnRails
[05:44:45] Technodrome: has joined #RubyOnRails
[05:46:01] alfiemax: has joined #RubyOnRails
[05:46:32] psylone: has joined #RubyOnRails
[05:46:33] alfiemax: can anyone help me connect my rails app with RDS
[05:52:02] Radar: alfiemax: what have you tried so far?
[05:52:42] alfiemax: i've created the rds instance
[05:53:03] alfiemax: tried setting the dev config to the rds instance
[05:53:13] alfiemax: but when connecting i'm getting a permission error
[05:53:20] alfiemax: psql: could not connect to server: Connection timed out
[05:53:47] alfiemax: Is the server running on host "this-is-the-host.us-west-2.rds.amazonaws.com" (172.31.8.231) and accepting
[05:53:51] alfiemax: TCP/IP connections on port 5432?
[05:54:43] alfiemax: i think it has something to do with the security groups.. but when i checked the set security group, it shows inbound & outbound allows "All Traffic"
[05:56:01] alfiemax: @radar and now i have no clue what to do next?
[05:56:11] Radar: alfiemax: I don't know either :D
[05:59:14] dionysus69: has joined #RubyOnRails
[06:09:39] S1kx: has joined #RubyOnRails
[06:10:19] alfiemax: got it working... :)
[06:10:43] Rodya_: has joined #RubyOnRails
[06:10:59] sevenseacat: see, prayer worked.
[06:11:08] alfiemax: yea.. always does :)
[06:14:32] alfiemax: just curious, does rake db:drop, db:create work on rds?
[06:14:51] alfiemax: i'm waiting to try it out... but my migrations are still running... :D
[06:14:51] sevenseacat: easy way to find out
[06:15:12] alfiemax: sevenseacat: :D
[06:26:05] alfiemax: yes, it works
[06:27:06] harfangk: has joined #RubyOnRails
[06:27:39] conta: has joined #RubyOnRails
[06:33:47] weathermaker: has joined #RubyOnRails
[06:35:02] roshanavand: has joined #RubyOnRails
[06:40:06] Tempesta: has joined #RubyOnRails
[06:44:35] dionysus69: has joined #RubyOnRails
[06:46:44] patarr: has joined #RubyOnRails
[06:48:23] pwnd_nsfw: Why would rubyonrails.org give me "refused to connect" in chrome
[06:48:30] pwnd_nsfw: This has happened before, but I forget the remedy
[06:48:45] sandstrom: has joined #RubyOnRails
[06:49:13] pwnd_nsfw: Not working in IE either
[06:50:50] roshanavand1: has joined #RubyOnRails
[07:00:09] Radar: pwnd_nsfw: proxiy
[07:00:28] pwnd_nsfw: Not using one that I'm aware of
[07:00:44] pwnd_nsfw: Could it be a router setting?
[07:00:54] felltir: has joined #RubyOnRails
[07:01:19] shortCircuit__: has joined #RubyOnRails
[07:01:44] pwnd_nsfw: I can visit the site without the subdomain
[07:01:46] pwnd_nsfw: sup shortCircuit__
[07:01:56] shortCircuit__: needed to ask a question. doesn't rails escape html tags and stuff to prevent xss
[07:02:14] shortCircuit__: pwnd :D nice nick
[07:02:17] Radar: shortCircuit__: shure
[07:02:20] Radar: shortCircuit__: what's up
[07:02:30] pwnd_nsfw: Wel, I have no idea what had happened, but it works now.....
[07:02:36] pwnd_nsfw: Thanks shortCircuit__ lol
[07:03:28] shortCircuit__: Radar nothing much. things in life change very fast. I have been tossed from golang to nginx and lua and then again rails .. :D
[07:05:10] pwnd_nsfw: I think he may've missed the part where you actually asked a question lel
[07:05:26] Radar: mmm but still a relevant answer
[07:05:28] sevenseacat: it escapes output by default, yes.
[07:05:33] Pumukel: has joined #RubyOnRails
[07:05:40] Radar: there's a question hiding (cowering?) behind is real question
[07:06:26] shortCircuit__: having an issue where people are able to write some script tags in email. and then when a verifcation link is sent (not in gmail though) they get some html tags attached to it. I am wondering how :D
[07:06:54] nesoi: has joined #RubyOnRails
[07:07:11] sevenseacat: you're bypassing the escaping maybe? who knows
[07:07:35] pwnd_nsfw: Ah, when I disable HTTPS Everywhere, visit http://rubyonrails.org, then click on the API link
[07:07:37] pwnd_nsfw: It works...
[07:07:46] pwnd_nsfw: But that still puzzles me why it affects IE
[07:08:16] shortCircuit__: possibly. just got the codebase. need to look.
[07:08:27] sevenseacat: good lord, why are you asking us before you even look
[07:08:52] pwnd_nsfw: That's like texting someone "I have the address and GPS, can you tell me the directions?"
[07:09:02] shortCircuit__: don't get mad please
[07:09:05] sevenseacat: you're confirming something alright
[07:10:05] Pumukel: has joined #RubyOnRails
[07:10:33] shortCircuit__: I piss people off pretty fast :D .. example ^
[07:10:58] sevenseacat: I don't think that's something to be proud of.
[07:11:10] urkle: has joined #RubyOnRails
[07:11:20] Rodya_: has joined #RubyOnRails
[07:11:53] pwnd_nsfw: Not necessarily. Can't say I'm pissed off, but I also didn't waste my time answering someone who had all of the tools in front of them and decided to not use them
[07:11:58] shortCircuit__: I agree. But I really don;t know why. Like there are some people, people really don't get mad at. In real world I just avoid people.
[07:13:45] djinni`: has joined #RubyOnRails
[07:14:16] dustinm`: has joined #RubyOnRails
[07:22:15] arup_r: has joined #RubyOnRails
[07:24:31] byteflame: has joined #RubyOnRails
[07:26:38] dionysus69: is lib in autoload path by default in rails 5?
[07:26:55] dionysus69: cause I included a test file with a test module and I cant require it from a controller
[07:27:24] dionysus69: so I add it with this line I suppose in application.rb right ? config.eager_load_paths << Rails.root.join('lib')
[07:27:42] sevenseacat: yarr. thats not autoloading, thats eager loading. big difference.
[07:28:30] dionysus69: ok this :D I guess config.autoload_paths << Rails.root.join('lib')
[07:28:48] sevenseacat: no. in rails 5, you want eager loading.
[07:28:57] LightStalker: has joined #RubyOnRails
[07:29:05] universa1: requiring something from lib should just work. without any path-meddling iirc.
[07:29:14] dionysus69: eager loading is it loads something only if it is required or included somewhere?
[07:29:45] dionysus69: well, I require a module by module name from a controller and error says it doesnt exist
[07:29:52] helpa: We cannot help you with your problem if you don't show us your code. Please put it on http://gist.github.com and give us the URL so we can see it.
[07:32:19] dionysus69: https://gist.github.com/anonymous/76e28446bf7567492ebf00a779202d45
[07:33:01] universa1: https://gist.github.com/anonymous/76e28446bf7567492ebf00a779202d45#file-random-rb-L5
[07:33:04] universa1: what does it say?
[07:33:34] dionysus69: uninitialized constant?
[07:33:48] universa1: yes. and what does that mean?
[07:33:55] universa1: notice on which line you get that error
[07:34:05] universa1: and what is the uninatiliazed constant?
[07:34:08] dionysus69: dunno, it thinks the module i am requiring is a variable ? :D
[07:34:16] sevenseacat: thats vague af
[07:34:32] universa1: what is the argument to require ?
[07:34:45] dionysus69: oh wait it should be a string?
[07:34:50] dionysus69: didn't know it mattered
[07:35:49] dionysus69: now it complains about not being able to load file, so now the string becomes a filepath I assume
[07:36:10] dionysus69: thing is I am trying to require loaded module by it's name, not the file path
[07:36:24] universa1: read up on how require works...
[07:39:09] Arkentias: has joined #RubyOnRails
[07:39:30] dionysus69: well turns out I needed include instead of require
[07:42:55] quazimodo: has joined #RubyOnRails
[07:47:53] psylone: has joined #RubyOnRails
[07:48:19] bricker2: has joined #RubyOnRails
[07:50:43] arup_r: has joined #RubyOnRails
[08:03:58] rgr: has joined #RubyOnRails
[08:06:18] nachoman: has joined #RubyOnRails
[08:07:41] brent__: has joined #RubyOnRails
[08:09:17] ferr1: has joined #RubyOnRails
[08:11:17] roshanavand: has joined #RubyOnRails
[08:12:06] Rodya_: has joined #RubyOnRails
[08:17:49] mikecmpbll: has joined #RubyOnRails
[08:19:20] gambl0re: has joined #RubyOnRails
[08:34:58] dionysus69: which way should I go? when confirming email address account is already created. But I was thinking about confirming phonenumber before creating account. how would I track whose validation code it is by just a browser session? meaning, I will generate some random 4 digit code, send it via sms and then user has to enter it back, but I dont understand where to save that 4 digit number if the user account is not even created yet.
[08:35:20] dionysus69: so should I just let user create account and then force them to validate phone?
[08:36:13] universa1: create some "phone validation" model and save it there? link that to an account later on?
[08:36:53] dionysus69: hmm let me think about it for a second
[08:37:59] dionysus69: verified unverified db table fine, then user enters it and boolean tick goes up for verification, then before the user form submission I check if the phone number being submitted is verified.
[08:38:12] dionysus69: sounds about right ? :S
[08:41:22] universa1: so if i know a verified phone number i can create as many accounts as i want?
[08:44:35] marr: has joined #RubyOnRails
[08:46:29] dionysus69: once the account is created with a phone number I could remove the verified phone from the corresponding table
[08:47:08] dionysus69: and even if I didn't do that, I would have a validation on phone number uniqueness which i already have on devise table on db level even
[08:47:34] patarr: has joined #RubyOnRails
[08:48:20] arup_r: has joined #RubyOnRails
[08:49:55] mikecmpb_: has joined #RubyOnRails
[09:12:55] nachoman: has joined #RubyOnRails
[09:13:08] Rodya_: has joined #RubyOnRails
[09:26:12] Ergo: has joined #RubyOnRails
[09:27:22] dionysus69: how does one know when a gem dies?
[09:28:00] sevenseacat: define 'dies'
[09:28:14] dionysus69: when maintainer abandons it
[09:28:31] dionysus69: last time updated 3 months ago https://github.com/tigrish/devise-i18n/tree/master/rails
[09:28:34] lxsameer: has joined #RubyOnRails
[09:28:39] sevenseacat: that doesnt mean abandoned
[09:29:06] dionysus69: for example I updated devise-i18n gem translation on localeapp.com, who knows when it will go through the repo :S
[09:29:24] sevenseacat: look at recent activity, see if there are lots of open issues and pull requests not being actioned
[09:32:39] halogenandtoast: has joined #RubyOnRails
[09:33:23] halogenandtoast: On a scale of 1 to 10 (with 10 being the worst) how bad is adding "view_context_class.prefix_partial_path_with_controller_namespace = false" to a namespaced controller?
[09:33:28] halogenandtoast: Also is there a better way than that
[09:34:04] universa1: halogenandtoast: explicitly reference views? render "blub/new" instead of just render "new" ?
[09:34:05] quazimodo: has joined #RubyOnRails
[09:35:47] halogenandtoast: universa1: are you going to do that all the way down
[09:35:52] halogenandtoast: what if that partial references another partial
[09:36:01] universa1: halogenandtoast: yep.
[09:36:10] halogenandtoast: the main issue is actually using something like <%= render @items %>
[09:36:22] halogenandtoast: I know I can do <%= render "items/item", collection: @items %>
[09:36:25] halogenandtoast: but that's no fun
[09:37:07] universa1: halogenandtoast: well, i find the explicit paths to be better understandable. for myself in 6 months, and for anyone else now and later
[09:37:15] sevenseacat: +1 to explicit
[09:37:22] sevenseacat: there's enough magic in rails without hacking it to add more
[09:37:36] halogenandtoast: So how do you handle this explicit behavior with polymorphism
[09:37:53] halogenandtoast: These items are actually an activity feed, and therefor are different classes
[09:38:42] universa1: halogenandtoast: render partial: "blub/#{item.class.underscore}" for example, i think there is a better alternative with partial_name or alike
[09:40:03] halogenandtoast: <% @items.each do |item| %><%= render partial: item.to_partial_path, object: item %><% end %>
[09:41:04] psylone: has joined #RubyOnRails
[09:41:05] halogenandtoast: still not personally a fan of that
[09:42:13] halogenandtoast: I suppose I can pull out a custom view helper for it
[09:43:19] halogenandtoast: Thanks for letting me bounce that off you guys
[09:45:28] arup_r: has joined #RubyOnRails
[09:55:41] shortCircuit__: has joined #RubyOnRails
[10:00:15] shortCircuit__: so. I looked at the codebase. (couldnot produce the error though) but anyway. so from the android app or using an api, they send like <img src="javascript..."/> and then when it gets to database it becomes <img src=javascript:alert(0)> Tududu . and then I guess when it is rendered in some app like say an email client which doesn't sanitize. it shows alerts
[10:00:45] shortCircuit__: I am using rails-api .. so can;t use the actionview helpers sanitize method to sanitize before saving to database
[10:01:04] shortCircuit__: what alternative do I have? is there a owasp compliant gem?
[10:02:55] arup_r: can't we include ActionView::Helpers::SanitizeHelper ? :)
[10:04:00] arup_r: shortCircuit__: if not, try this https://github.com/rails/rails-html-sanitizer I think it is doable if the gem is installed in API app
[10:06:46] dionysus69: what's the benefit of using rolify vs just saying current_user.admin? (user model has admin attr) I have 3-4 roles in my app, I dont know whats the benefit if i get rolify, feels like i would just complicate stuff unnecessarily
[10:07:38] arup_r: yes same feeling here :)
[10:13:50] Rodya_: has joined #RubyOnRails
[10:21:27] arup_r: has joined #RubyOnRails
[10:23:41] byteflame: has joined #RubyOnRails
[10:37:35] rikkipitt: has joined #RubyOnRails
[10:41:41] shortCircuit__: {"name"=>"<img src=javascript:alert(0)> Manish Jaiswal", "phone"=>"+919836870432", "email"=>"amitava.ghosh+6@go-jek.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"} this is not escaped .. so bad. on my part as well
[10:43:02] shortCircuit__: what is the norm to handle unescaped json data?
[10:46:18] quazimodo: has joined #RubyOnRails
[10:48:29] patarr: has joined #RubyOnRails
[10:48:50] shilon: has joined #RubyOnRails
[10:55:05] psylone_: has joined #RubyOnRails
[11:03:36] ur5us: has joined #RubyOnRails
[11:14:35] Rodya_: has joined #RubyOnRails
[11:18:27] Fernando-Basso: has joined #RubyOnRails
[11:29:48] patarr: has joined #RubyOnRails
[11:35:39] Jameser: has joined #RubyOnRails
[11:47:08] rikkipitt: has joined #RubyOnRails
[11:47:53] rikkipitt: has joined #RubyOnRails
[11:48:43] rikkipitt: has joined #RubyOnRails
[11:49:28] rikkipitt: has joined #RubyOnRails
[11:50:18] rikkipitt: has joined #RubyOnRails
[11:51:28] rikkipitt: has joined #RubyOnRails
[11:55:01] dionysus69: devise redirects to /users path after failed registration attempt. I am trying to override the failed attempt but there's no mention of where it should redirect to. https://gist.github.com/anonymous/06540dc22f3ba4dc9d80de3fe9d96cd3
[11:59:23] dionysus69: by default it should stay on the same route... doesn't make sense
[12:01:49] HoierM: has joined #RubyOnRails
[12:05:47] aajjbb: has joined #RubyOnRails
[12:08:05] Tempesta: has joined #RubyOnRails
[12:09:44] ur5us: has joined #RubyOnRails
[12:14:44] rikkipitt: has joined #RubyOnRails
[12:15:10] h7br1x: has joined #RubyOnRails
[12:15:16] Rodya_: has joined #RubyOnRails
[12:17:43] h7br1x: Hey guys, I've got a devise routing question. I've setup a custom 'account' round for my devise registrations edit action. And when the form is free of error it submits and returns to foo.com/account no problems. But if there is an error in the form its redirects to foo.com/user/ID instead of the /account route. Any help fixing this?
[12:20:07] brendan-: has joined #RubyOnRails
[12:22:11] dtcristo: has joined #RubyOnRails
[12:23:49] byteflame: has joined #RubyOnRails
[12:26:05] pupsicle: has joined #RubyOnRails
[12:26:05] jhass: has joined #RubyOnRails
[12:26:09] urkle: has joined #RubyOnRails
[12:27:05] shortCircuit__: I have a question. in rails say, there is a file where they have defined, class Notification::EmailTemplate and there is another file where there is module Notification; class EmailUpdate < EmailTemplate; now my question is if I do `include Sanitizer` inside the former class, will rails be able to find the methods it in the later ?
[12:27:25] iskm: has left #RubyOnRails: ("Connection closed")
[12:30:40] nachoman: has joined #RubyOnRails
[12:39:36] shilon: has joined #RubyOnRails
[12:42:57] roshanavand: has joined #RubyOnRails
[12:51:17] nir0: has joined #RubyOnRails
[12:51:38] nir0: hello guys, got a problem with loosing distinct https://gist.github.com/nir0/e405323983d2503250213b8a2556497f
[12:55:15] nir0: updated gist
[12:55:18] mtkd: has joined #RubyOnRails
[12:55:40] urkle: has joined #RubyOnRails
[13:04:26] workmad3_: shortCircuit__: as long as both files are loaded, yes
[13:06:09] workmad3: nir0: yeah, I've noticed that before too... never found a good way to solve it :(
[13:11:07] jhass: has joined #RubyOnRails
[13:13:09] shortCircuit__: I have a module inside app/controllers/datacleaner.rb .. and I want to include it in app/response_formats/v1/regirstration_success.rb . like class V1:RegistrationSuccess; include ::DataCleaner wouldn't work, what is the correct way to do it. I can actually put it from app controller to lib/
[13:16:05] Rodya_: has joined #RubyOnRails
[13:17:53] jhass: has joined #RubyOnRails
[13:25:42] arup_r: has joined #RubyOnRails
[13:28:13] mostlybadfly: has joined #RubyOnRails
[13:29:58] DLSteve: has joined #RubyOnRails
[13:33:51] quazimodo: has joined #RubyOnRails
[13:34:33] xx00__: has joined #RubyOnRails
[13:50:52] chouhoulis: has joined #RubyOnRails
[13:51:26] Saukk: has joined #RubyOnRails
[13:52:06] Technodrome: has joined #RubyOnRails
[13:53:05] KeyJoo: has joined #RubyOnRails
[14:05:21] arup_r: has joined #RubyOnRails
[14:07:18] shilon: has joined #RubyOnRails
[14:07:40] Alex9: has joined #RubyOnRails
[14:07:59] Alex9: Has anyone used the Digital Ocean one click-install for rails?
[14:10:33] ur5us: has joined #RubyOnRails
[14:13:19] byteflame: has joined #RubyOnRails
[14:17:06] Rodya_: has joined #RubyOnRails
[14:17:49] dionysus69: just create your own one click bash installer once and you could reuse it
[14:18:48] sevenseacat: that simple, huh
[14:20:25] patarr: has joined #RubyOnRails
[14:22:02] jhass: has joined #RubyOnRails
[14:23:23] tbuehlmann: shortCircuit__: first: when the module is name DataCleaner, the file should be name data_cleaner.rb. second: what error do you see?
[14:26:11] nad97: has joined #RubyOnRails
[14:29:30] byteflame: has joined #RubyOnRails
[14:30:10] dionysus69: how do I prevent malicious users resending requests to send sms to verify phone number? since it costs money to send sms.. :S
[14:31:05] dionysus69: I have csfr token requirement which I send out along with ajax, but that could be intercepted and resent multiple times couldn't it?
[14:31:23] sevenseacat: or people could just press the submit button over and over.
[14:31:57] dionysus69: after they click it once then another box appears to enter verification code, and send sms button disappears :)
[14:32:02] dionysus69: not atm but that's the idea
[14:32:04] sevenseacat: so they reload the page.
[14:32:18] dionysus69: well ye that's another thing to think about too :D
[14:32:26] dionysus69: ok how do I prevent that :D?
[14:32:55] sevenseacat: do you want us to write the app for you too?
[14:35:31] dionysus69: I could make a 5 minute time tracker in database so only one sms can be sent to one number pre 5 minutes
[14:35:56] dionysus69: something tells me there could be a better way, that's why i am asking :P
[14:37:11] sevenseacat: well it seems that this is not functionality that should be open for the public to access
[14:37:29] sevenseacat: without some form of previous authentication
[14:38:12] sevenseacat: because spam would be a much bigger issue
[14:39:20] dionysus69: captcha ? :D
[14:39:57] shilon: has left #RubyOnRails: ()
[14:39:59] SteenJobs: has joined #RubyOnRails
[14:40:14] dionysus69: would be great if I let users authenticate first and then verify number but, I don't think that would be a good solution in this case :s since number is the main identifier of a user in the app
[14:40:51] sevenseacat: it shouldn't be
[14:41:03] sevenseacat: phone numbers can change. phone numbers can get reused. people can share them.
[14:41:45] chouhoulis: has joined #RubyOnRails
[14:42:18] arup_r: has joined #RubyOnRails
[14:42:36] lacrymology: has joined #RubyOnRails
[14:43:03] dionysus69: my client is asking that
[14:43:27] sevenseacat: thats fine. part of your job is to educate your clients abut the feasibility of what they want.
[14:45:01] dionysus69: ok thanks, I ll think of something :)
[14:47:09] nad97: hi everyone, ive been working on a form for a nested resource that I have in a namespace that has been giving me headaches... i keep getting a "uninitialized constant Admin::Order::AdminOrderDetail"
[14:47:22] nad97: which makes sense because the class is OrderDetail not AdminOrderDetail
[14:47:31] nad97: but im not sure how to express that
[14:47:32] sevenseacat: so what's referencing that constant?
[14:47:48] nad97: if i linked a gist would it help?
[14:48:09] nad97: https://gist.github.com/nickabb/4e42dfc0118b4e9e3346937a77550d91
[14:48:25] pLaTo0n: has joined #RubyOnRails
[14:48:31] nad97: its being referenced by "@admin_order.admin_order_details.build"
[14:48:34] sevenseacat: https://gist.github.com/nickabb/4e42dfc0118b4e9e3346937a77550d91#file-order-rb-L6
[14:48:44] sevenseacat: so what class is this expecting to be?
[14:49:21] nad97: shouldnt that direct to the OrderDetails class
[14:49:29] nad97: since it is also in the admin namespace?
[14:49:51] sevenseacat: it'll take the name that's there and constantize it, assuming AdminOrderDetails
[14:50:07] sevenseacat: just like the belongs_to :admin_customer is going to assume it's an object of class AdminCustomer
[14:50:52] sevenseacat: i don't think you should be repeating the admin prefix everywhere if its not adding any information
[14:51:31] nad97: i think that was a result of using g scaffold
[14:51:42] nad97: would it be safe for me to just remove it but leave the structure the same?
[14:51:48] sevenseacat: one of many reasons not to use it
[14:52:26] sevenseacat: if the association name doesn't match the association class name, you'll need to specify what class it should be
[14:52:42] sevenseacat: eg. has_many :order_details, class: Admin::OrderDetail
[14:53:16] sevenseacat: it *may* work without the class part because it's in the same module, but I wouldn't put money on it
[14:54:14] nad97: thank you
[14:54:52] nad97: also, is there a way to specify the name of the foreign key?
[14:55:23] sevenseacat: yep, with the foreign_key option (or association_foreign_key, depending which side you need to specify)
[14:55:34] nad97: when i make those adjustments, i get an "unknown attribute 'order_id' for Admin::OrderDetail." which makes sense because the attribute is actually "admin_order_id"
[14:55:50] sevenseacat: I keep this page bookmarked http://api.rubyonrails.org/classes/ActiveRecord/Associations/ClassMethods.html because there's so many different options for all the associations
[14:56:10] nad97: i will definitely do that
[14:56:35] nad97: im just starting out with rails so all of the stuff it just does for you is a little mind boggling
[14:56:39] nad97: thank you again!!
[14:56:42] sevenseacat: (actually i visit it so often i type 'cla' in my url bar and it autocompletes it for me lol)
[14:57:59] AzaToth: has joined #RubyOnRails
[14:59:24] Technodrome: has joined #RubyOnRails
[15:00:15] mtkd: has joined #RubyOnRails
[15:05:44] dionysus69: headers: { 'X_CSRF_TOKEN': AUTH_TOKEN, }, this is all it took to insert csrf token into ajax request, i just realized now that I don't understand how csrf token makes things any safer :\
[15:06:08] dionysus69: malicious user could go load up form copy csrf token and forge requests
[15:08:07] dionysus69: mm? you mean getting the csrf token ? that token only helps in a multi user authentication involved environment
[15:08:33] dionysus69: I am dealing with form which has no authentication just that token
[15:13:07] lacrymology: has joined #RubyOnRails
[15:13:59] dionysus69: ok I am off for now :)
[15:17:56] Rodya_: has joined #RubyOnRails
[15:19:05] Derperperd: has joined #RubyOnRails
[15:21:38] nahtnam: has joined #RubyOnRails
[15:23:42] adac: has joined #RubyOnRails
[15:24:16] adac: is there a way to set the initial connect timeout to the postgres db higher on rails s and rails c? If yes how?
[15:25:25] roychri: has joined #RubyOnRails
[15:26:58] hobodave: has joined #RubyOnRails
[15:28:04] brent__: has joined #RubyOnRails
[15:31:53] brent__: has joined #RubyOnRails
[15:31:56] ascarter: has joined #RubyOnRails
[15:32:28] ascarter_: has joined #RubyOnRails
[15:35:28] arup_r: has joined #RubyOnRails
[15:38:40] arBmind: has joined #RubyOnRails
[15:44:33] Technodrome: has joined #RubyOnRails
[15:53:42] mrgreenfur: has joined #RubyOnRails
[15:56:13] dblessing: has joined #RubyOnRails
[15:56:27] mrgreenfur: I keep getting *** ActiveModel::RangeError Exception: 5682012932 is out of range for ActiveModel::Type::Integer with limit 4 bytes on an attribute that is text in model and in DB.
[15:56:30] mrgreenfur: Anyone seen this before?
[15:57:04] mrgreenfur: found an int column…yikees
[15:58:24] irishfromua: has joined #RubyOnRails
[16:01:27] ascarter: has joined #RubyOnRails
[16:11:14] ur5us: has joined #RubyOnRails
[16:13:34] Technodrome: has joined #RubyOnRails
[16:17:34] Slogger: has joined #RubyOnRails
[16:18:28] Rodya_: has joined #RubyOnRails
[16:19:10] gusrub: has joined #RubyOnRails
[16:22:29] arup_r: has joined #RubyOnRails
[16:26:57] [Butch]: has joined #RubyOnRails
[16:41:44] weathermaker: has joined #RubyOnRails
[16:42:33] desnudopenguino: is there a way to convert html &lt; and &gt; characters to < and >? I tried .gsub('&gt;','>') but it's not working. I'm trying to parse the content of an html email
[16:43:34] arup_r: desnudopenguino: can you paste here the same string?
[16:44:12] desnudopenguino: sure give me a sec
[16:49:47] sandstrom: has joined #RubyOnRails
[16:50:23] hobodave: has joined #RubyOnRails
[16:51:51] sandstrom: has joined #RubyOnRails
[16:53:07] sandstrom: has joined #RubyOnRails
[16:53:52] desnudopenguino: https://ptpb.pw/wRdy
[16:54:26] sandstrom: has joined #RubyOnRails
[16:55:36] sandstrom: has joined #RubyOnRails
[16:56:48] arup_r: has joined #RubyOnRails
[16:56:57] sandstrom: has joined #RubyOnRails
[16:57:07] arup_r: desnudopenguino: u can try answers from https://stackoverflow.com/questions/1600526/how-do-i-encode-decode-html-entities-in-ruby
[16:58:17] sandstrom: has joined #RubyOnRails
[16:58:28] dblessing: has joined #RubyOnRails
[16:59:31] sandstrom: has joined #RubyOnRails
[17:00:52] sandstrom: has joined #RubyOnRails
[17:00:56] barhum2013: has joined #RubyOnRails
[17:02:07] sandstrom: has joined #RubyOnRails
[17:03:27] sandstrom: has joined #RubyOnRails
[17:04:45] sandstrom: has joined #RubyOnRails
[17:06:00] sandstrom: has joined #RubyOnRails
[17:07:21] sandstrom: has joined #RubyOnRails
[17:07:54] hahuang65: has joined #RubyOnRails
[17:08:37] sandstrom: has joined #RubyOnRails
[17:09:55] sandstrom: has joined #RubyOnRails
[17:11:13] sandstrom: has joined #RubyOnRails
[17:12:27] sandstrom: has joined #RubyOnRails
[17:13:42] sandstrom: has joined #RubyOnRails
[17:13:51] shilon: has joined #RubyOnRails
[17:14:51] kies: has joined #RubyOnRails
[17:15:02] sandstrom: has joined #RubyOnRails
[17:16:17] sandstrom: has joined #RubyOnRails
[17:17:40] sandstrom: has joined #RubyOnRails
[17:17:49] srinidhi: has joined #RubyOnRails
[17:18:15] xall: has joined #RubyOnRails
[17:18:57] sandstrom: has joined #RubyOnRails
[17:18:57] benlieb: has joined #RubyOnRails
[17:19:26] Rodya_: has joined #RubyOnRails
[17:19:55] cjhowe7: has joined #RubyOnRails
[17:20:10] sandstrom: has joined #RubyOnRails
[17:21:02] benlieb: I'm trying to use #merge inside a scope, but it only works after I use a method that returns an active relation. How do I use it alone? Can I call some method on an AR class to get a blank active relation?
[17:21:30] sandstrom: has joined #RubyOnRails
[17:22:45] sandstrom: has joined #RubyOnRails
[17:23:19] gusrub: has joined #RubyOnRails
[17:24:05] sandstrom: has joined #RubyOnRails
[17:24:48] Technodrome: has joined #RubyOnRails
[17:25:20] sandstrom: has joined #RubyOnRails
[17:25:49] mikecmpbll: has joined #RubyOnRails
[17:26:25] rgiscard: has joined #RubyOnRails
[17:26:40] sandstrom: has joined #RubyOnRails
[17:27:54] sandstrom: has joined #RubyOnRails
[17:28:39] gusrub: has joined #RubyOnRails
[17:29:15] sandstrom: has joined #RubyOnRails
[17:29:22] desnudopenguino: gyar now it is breaking converting ascii-8bit to utf-8
[17:30:12] DropsOfSerenity: has joined #RubyOnRails
[17:30:30] sandstrom: has joined #RubyOnRails
[17:31:16] knight33: has joined #RubyOnRails
[17:31:31] arup_r: has joined #RubyOnRails
[17:36:23] DropsOfSerenity: has joined #RubyOnRails
[17:39:48] sandstrom: has joined #RubyOnRails
[17:42:48] maxdoubt: has joined #RubyOnRails
[17:46:58] sunya7a: Is there an option to do link_to 'back', :back that will include page anchors?
[17:47:02] duderonomy: has joined #RubyOnRails
[17:50:14] defsdoor: has joined #RubyOnRails
[17:51:59] cjhowe7: has joined #RubyOnRails
[17:52:10] gusrub: has joined #RubyOnRails
[17:54:54] arup_r: sunya7a: Where you want to go back?
[17:55:15] arup_r: any other page or same page top
[17:58:43] rgr: has joined #RubyOnRails
[18:03:43] Skull0Inc: has joined #RubyOnRails
[18:04:13] desnudopenguino: the issue is with '\xA0' which looks like unicode space. hmmm
[18:10:42] maxdoubt: anybody intimately familiar with Warden… particularly, how to serialize a user into session (from within the User model) ?
[18:12:05] ur5us: has joined #RubyOnRails
[18:14:02] sunya7a: arup_r: i wanted to go to another page. I ended up solving it another way...thank you =)
[18:17:37] nertzy: has joined #RubyOnRails
[18:19:23] arup_r: has joined #RubyOnRails
[18:19:44] dblessing: has joined #RubyOnRails
[18:20:05] Rodya_: has joined #RubyOnRails
[18:23:01] Anubix: has joined #RubyOnRails
[18:23:45] nertzy: has joined #RubyOnRails
[18:24:14] psylone: has joined #RubyOnRails
[18:24:14] harfangk: has joined #RubyOnRails
[18:27:45] xx00__: has joined #RubyOnRails
[18:31:52] centrx: has joined #RubyOnRails
[18:39:36] lxsameer: has joined #RubyOnRails
[18:41:12] fschuindt1: has joined #RubyOnRails
[18:53:37] ascarter: has joined #RubyOnRails
[18:56:05] kies: has joined #RubyOnRails
[18:57:04] netzfisch: has joined #RubyOnRails
[19:06:15] psylone: has joined #RubyOnRails
[19:11:52] |PiP|: has joined #RubyOnRails
[19:12:17] arup_r: has joined #RubyOnRails
[19:14:08] |PiP|: my database has strings that are not properly UTF8 encoded for certain characters. Is there any way to have activerecord STRIP the incorrect characters from the string before models are initialized? I am getting random " UTF8 invalid bytesequence " when I am passing the strings to methods like "strip". Is there any way to have ActiveRecord preprocess the strings before they are set as
[19:14:08] |PiP|: properties on the model?
[19:18:01] dmarr: has joined #RubyOnRails
[19:19:00] centrx: |PiP|: maybe use "iconv"? I don't know, that's how we used to deal with some UTF8 nonsense
[19:19:22] Technodrome: has joined #RubyOnRails
[19:19:22] centrx: |PiP|: Another option is run a query on the database that simply removes the bad encoding characters
[19:19:50] [Butch]: has joined #RubyOnRails
[19:20:33] dmarr: hi im curious if people have solutions for 'slugify'ing a string. in js i use this http://stackoverflow.com/a/8992246/234277. I see the slugify gem but when I add slugify to my model, it has issues when I try to execture .slugify on my instance. NoMethodError: undefined method `slugify' for Slug (call 'Slug.connection' to establish a connection):Class
[19:20:46] Rodya_: has joined #RubyOnRails
[19:20:48] |PiP|: im looking for some sort of activerecord middleware, where i can apply a transformation on the data that is used to build the AR model.
[19:21:33] dmarr: my Slug class https://gist.github.com/fb15cd301b1e35468597450d6f702834
[19:23:16] nesoi: has joined #RubyOnRails
[19:23:17] cnk: has joined #RubyOnRails
[19:24:06] weathermaker: has joined #RubyOnRails
[19:24:49] centrx: dmarr: Did you try this: https://makandracards.com/makandra/31961-rails-has-a-built-in-slug-generator
[19:25:04] dmarr: centrx: no but thats perfect
[19:30:58] dmarr: is that the approach i'd take for saving a derived value to the db? https://stackoverflow.com/a/6296211
[19:31:56] dmarr: say i create a slug = Slug.new value="Maps & Directories", i'd want the .save to store the parameterized value, so would i use that after_create hook
[19:32:15] dmarr: or do i just not even store the parameterized value and only access it through api
[19:32:37] dmarr: *store the parameterized value into a separate field in the db
[19:32:52] hfp_work: has joined #RubyOnRails
[19:33:19] centrx: dmarr: Whether you need to save the value, or whether you can just generate it each time would depend on the use case
[19:33:45] centrx: dmarr: but if it is supposed to be an unchanging reference, not to be altered, I would store it in the database
[19:33:54] dmarr: its a simple api to store strings, which will be queried by a foreign key
[19:34:09] centrx: dmarr: and that link is a good way to store it in the db
[19:34:37] dmarr: yeah i'll assume its going to be unchanging, to remain on the safe side
[19:40:43] dmarr: seems like thats not doing it https://gist.github.com/marr/4114ae6eb1804ea0737c35612a1bfeab
[19:45:41] hahuang65: has joined #RubyOnRails
[19:45:52] tbuehlmann: dmarr: if you have an unique validation on the slug, I suggest you #generate_slug before_validation, not after_create
[19:46:16] yottanami: has joined #RubyOnRails
[19:46:31] tbuehlmann: (using self.slug= instead of update_attribute ofc)
[19:47:03] yottanami: Is it a wrong way for using select_tag `<%= select_tag 'doctor_id', options_from_collection_for_select(@doctors, "id", "user.profile.full_name") %>`
[19:47:34] yottanami: because I got `undefined method `user.profile.full_name' for #<DoctorProfile:0x005610c5905ac0>`
[19:48:19] dmarr: tbuehlmann: thank you
[19:48:30] dmarr: tbuehlmann: update_attribute did work somehwo
[19:48:52] tbuehlmann: you're sending two queries to the database instead of one then, right?
[19:49:21] Technodrome: has joined #RubyOnRails
[19:49:27] dmarr: it didn't appear to
[19:50:50] arup_r: has joined #RubyOnRails
[19:51:13] mtkd: has joined #RubyOnRails
[19:56:05] xx00__: has joined #RubyOnRails
[19:56:12] ascarter_: has joined #RubyOnRails
[20:04:38] Technodrome: has joined #RubyOnRails
[20:05:52] hobodave_: has joined #RubyOnRails
[20:05:58] netzfisch: has joined #RubyOnRails
[20:06:24] dionysus69: has joined #RubyOnRails
[20:12:08] cjhowe7: has joined #RubyOnRails
[20:21:33] Rodya_: has joined #RubyOnRails
[20:23:44] ekinmur: has joined #RubyOnRails
[20:31:16] netzfisch: has joined #RubyOnRails
[20:31:45] renegadeandy: has joined #RubyOnRails
[20:32:09] renegadeandy: Hi all. If I wanted to include a google javascript library like : <script src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&libraries=places"> : on a specific page - what is the 'rails' way to do this?
[20:34:20] arup_r: renegadeandy: I do use `content_for` helper.. Like adding the tag in the layout <%= yield :additional_js %> and then from view <%= content_for :additional_js do <script src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&libraries=places"> <% end %> :)
[20:41:43] renegadeandy: has joined #RubyOnRails
[20:41:49] renegadeandy: arup_r: Fantastic - loveit
[20:57:23] psylone: has joined #RubyOnRails
[21:01:38] sandstrom: has joined #RubyOnRails
[21:11:15] renegadeandy: has joined #RubyOnRails
[21:11:43] nesoi: has joined #RubyOnRails
[21:11:53] renegadeandy: arup_r: if I need my javascript to load for a specific page *after* the DOM, do I simply move my javascript include tags in the layout to the bottom of the DOM?
[21:13:12] arup_r: yes after <%= yield %>
[21:17:06] gusrub: has joined #RubyOnRails
[21:20:24] renegadeandy: arup_r: any harm in just moving : <%= javascript_include_tag "application" %> after yield?
[21:21:14] arup_r: Are you using turbolink?
[21:22:14] Rodya_: has joined #RubyOnRails
[21:22:37] renegadeandy: because - my js is tied up in 'application' so...
[21:22:43] renegadeandy: that would need to be my solution
[21:24:09] arup_r: ok why try to pull the application.js then ... keep it there
[21:24:47] arup_r: Your page specific JS you can just yield the way I said...
[21:25:26] arup_r: just make sure it is after dom, which it is meant to target.
[21:25:33] arup_r: ok.. I am leaving now..
[21:25:35] renegadeandy: so basically - remove the //= require journeys from the application.js , then at the bottom have another yield
[21:26:03] arup_r: yes if it is page specific, then no need to put it in application.js
[21:26:37] arup_r: just yield it where u need it
[21:37:19] renegadeandy: I am getting 'the asset journeys/journeys.js' is not in the asset pipeline. My manifest.js has : "//= link controllers/journeys/journeys.js" and i have app/assets/javascripts/journeys/journeys.js. I have also restarted the server. Can anybody spot my mistake?
[21:50:47] xx00__: has joined #RubyOnRails
[21:56:59] nachoman: has joined #RubyOnRails
[21:57:58] ResidentBiscuit: has joined #RubyOnRails
[22:00:29] psylone_: has joined #RubyOnRails
[22:03:41] dmarr: using the before_validation to create a parameterize'd value store, I don't want that to change when the record is updated. How would I prevent that from happening?
[22:04:29] HoierM: has joined #RubyOnRails
[22:04:52] dmarr: ie i only want slug generated during initial create: https://gist.github.com/marr/4114ae6eb1804ea0737c35612a1bfeab
[22:05:47] HoierM: has joined #RubyOnRails
[22:06:51] psylone: has joined #RubyOnRails
[22:11:17] desnudopenguino: man i feel like stabbing something in the face
[22:12:08] desnudopenguino: \xA0 characters are breaking encoding in an email body that I'm trying to parse to pull useful information out of.
[22:12:31] dmarr: I guess i'll just use before_create
[22:14:41] desnudopenguino: i'm using the mail gem, and am getting the mail.body.decoded content. That spits out. but if I try to load an HTMLEntities object with the text, it breaks
[22:15:11] sloggerkhan: has joined #RubyOnRails
[22:15:42] desnudopenguino: yelling about \xA0 breaking utf-8, so I tried force_encoding("UTF-8") with similar results
[22:16:24] desnudopenguino: I can use force_encoding("UTF-8") in byebug and it doesn't yell there so I don't know what's going on
[22:17:29] sloggerkhan: Is there a way to metaprogram methods in a module?
[22:19:32] desnudopenguino: ActionView::Template::Error ("\xA0" from ASCII-8BIT to UTF-8): is the error I'm getting
[22:19:51] Technodrome: has joined #RubyOnRails
[22:21:48] dmarr: in my controller, i'd like to be able to POST /slugs with value=3, but I am getting a 422 saying "slug" cant be blank. in my create method i have @slug = Slug.new(slug_params)
[22:22:08] dmarr: and slug_params def is params.permit(:value, :centre_id)
[22:23:03] Rodya_: has joined #RubyOnRails
[22:23:31] username1: has joined #RubyOnRails
[22:24:49] ascarter_: has joined #RubyOnRails
[22:28:19] dmarr: how do i avoid having to send slug: { } in the payload and just send the inner properties?
[22:29:39] dmarr: actually, i think im misunderstanding my issue.
[22:29:56] dmarr: Parameters: {"value"=>"Search2", "slug"=>{"value"=>"Search2"}} is shown in the log. and the error: Unpermitted Parameter: slug
[22:30:50] dmarr: its strange because im not sending that slug value in my POST
[22:34:31] centrx: has joined #RubyOnRails
[22:36:23] |PiP|: desnudopenguino: try string.scrub
[22:36:44] dmarr: figured it out. i had a before_create that was trying to set a slug but i guess it needs to create the record first /shrug
[22:37:07] dmarr: since i dont think i have access to params in before_create do I?
[22:37:47] desnudopenguino: |PiP|: thanks, I'll give it a shot. I think I may have figured out part of it (being from the email sender) but I want to make sure I take the issue into account
[22:39:57] DoubleMalt: has joined #RubyOnRails
[22:41:00] bpmedley: has joined #RubyOnRails
[22:45:17] apeiros: desnudopenguino: you misunderstand force_encoding
[22:45:29] apeiros: all it does is set the encoding flag on the string, nothing else
[22:45:57] apeiros: parse the mail as binary, then set the encoding of the parsed bits to the appropriate encoding (hopefully utf-8)
[22:46:20] apeiros: desnudopenguino: but really, why are you parsing emails yourself? others went through the trouble for you - see mail gem.
[22:47:01] apeiros: and no |PiP|, scrub is a terrible idea if you're actually dealing with binary data. you're just destroying information.
[22:47:14] desnudopenguino: apeiros: I'm using the mail gem
[22:47:29] apeiros: desnudopenguino: and the mail gem fails at parsing one of your mails?
[22:48:03] desnudopenguino: it lets me read them and do normal "mail" things, but I'm trying to pull specific pieces of data from the emails to load into a db
[22:48:26] apeiros: desnudopenguino: again, does the mail gem itself fail at any of those parts?
[22:48:32] apeiros: or rather, at any of those steps?
[22:49:19] apeiros: can you gist the raw mail?
[22:58:49] ascarter_: has joined #RubyOnRails
[22:59:58] renegadeandy: I am getting 'the asset journeys/journeys.js' is not in the asset pipeline. My manifest.js has : "//= link controllers/journeys/journeys.js" and i have app/assets/javascripts/journeys/journeys.js. I have also restarted the server. Can anybody spot my mistake?
[23:01:34] sloggerkhan: has joined #RubyOnRails
[23:01:45] desnudopenguino: apeiros: I have it loading the email properly I think, it is an html email. My issue now is trying to scrape the html to get the data I need
[23:02:10] apeiros: you mean after you destroyed it by using scrub? :)
[23:03:10] desnudopenguino: it is working without scrub
[23:04:56] desnudopenguino: i'm trying to load it into HTMLEntities using "HTMLEntities.new.decode mail.body.decoded" doesn't seem to throw an error
[23:05:10] desnudopenguino: i figured that might work better parsing it as a DOM instead of raw text
[23:05:35] cjhowe7: has joined #RubyOnRails
[23:05:42] apeiros: that's probably a good idea. so nokogiri or oga.
[23:06:04] desnudopenguino: nokogiri is what I have
[23:06:54] psylone_: has joined #RubyOnRails
[23:07:12] desnudopenguino: so now I will try to get these dom objects as best as I can. haha
[23:23:49] Rodya_: has joined #RubyOnRails
[23:24:04] manveru_: has joined #RubyOnRails
[23:25:19] helpa: has joined #RubyOnRails
[23:33:04] helpa-bot: has joined #RubyOnRails
[23:33:09] psylone: has joined #RubyOnRails
[23:34:46] helpa: has joined #RubyOnRails
[23:37:59] duderonomy: has joined #RubyOnRails
[23:41:20] helpa: has joined #RubyOnRails
[23:50:31] ResidentBiscuit: has joined #RubyOnRails
[23:52:26] ResidentBiscuit: has joined #RubyOnRails
[23:56:08] nesoi: hello, could anyone give me a hint? I'm trying to use this gem https://github.com/hakanensari/mws-orders it shows how to get the 1st order: orders.first but how do I get the second or any other orders from the results set?
[23:57:14] Technodrome: has joined #RubyOnRails