« Back to channel list

#RubyOnRails - 03 October 2015

« Back 1 day Forward 1 day »
[00:01:14] stardiviner: has joined #RubyOnRails
[00:01:21] njero: has joined #RubyOnRails
[00:01:36] FailBit: if you know what I'm sayin'
[00:01:42] FailBit: ACTION makes horrible joke
[00:02:35] pwnd_nsfw: My joke was worse !
[00:02:40] pwnd_nsfw: these specs are lying to me
[00:02:40] kies: has joined #RubyOnRails
[00:04:27] rushed: has joined #RubyOnRails
[00:06:45] pwnd_nsfw: Is it an acceptable practice to just not give a shit about the specs if the code you're testing works through a manual test??????????????????????????????????????????????????
[00:07:52] ypl: has joined #RubyOnRails
[00:08:04] nya: has joined #RubyOnRails
[00:09:01] bricker: pwnd_nsfw: what
[00:09:16] bricker: pwnd_nsfw: what's not acceptable is delivering a feature late because the test was giving a false failure
[00:09:42] bricker: and you spent 4 days fixing it
[00:11:07] htmldrum: has joined #RubyOnRails
[00:11:11] pwnd_nsfw: This is something that is incredibly trivial too :(
[00:11:30] stannard: has joined #RubyOnRails
[00:12:08] Kallis: has joined #RubyOnRails
[00:14:52] herbst: has joined #RubyOnRails
[00:15:14] dikaio: has joined #RubyOnRails
[00:16:55] simkessy: sorry to interrupt, what do you guys use for testing?
[00:17:18] pwnd_nsfw: RSpec/capybara
[00:20:53] smathy: pwnd_nsfw, acceptable practice to just delete the failing specs.
[00:21:01] smathy: Fuck those assholes.
[00:21:22] pwnd_nsfw: I love fucking ass holes
[00:21:47] smathy: Anyway, this is what `pending` is for, no?
[00:22:28] smathy: simkessy, minitest/xunit.
[00:22:39] pwnd_nsfw: You're right, but... like... really, you'll laugh if I show you what's got me stuck.
[00:23:55] simkessy: smathy: I was doing some reading on the session store question I asked earlier. I came across this article that says storing sessions in the DB will cause issues as a site grows in popularity http://blog.remarkablelabs.com/2012/12/activerecord-sessionstore-gem-extraction-rails-4-countdown-to-2013
[00:24:07] pwnd_nsfw: And the same test works for a different controller...
[00:24:23] simkessy: Right now my site only has 4 active users (testing) and I'm already hitting a CookieOverflow...that's not normal right?
[00:24:24] bricker: I have definitely deleted tests before because they weren't passing. They were providing little value, or were already covered in another test, and after trying for 15-30m to get it working just decided it wasn't worth the time. You need to choose your battles.
[00:25:18] pwnd_nsfw: Well, this is to provide example for someone else learning as well
[00:25:39] bricker: simkessy: no, cookie overflow means you're storing too much data in the cookie
[00:25:53] Mattx: has joined #RubyOnRails
[00:26:00] FailBit: simkessy: don't store sessions in the database
[00:26:11] yaymukund: has joined #RubyOnRails
[00:26:22] Mattx: Is it possible to define a method with the same name as an attribute, and still be able to save the model?
[00:26:41] FailBit: Mattx: if it returns super(), yes
[00:26:45] bricker: pwnd_nsfw: spending this much time getting a test to pass is not a very good example ;) Tests are supposed to be quick and mindless to write
[00:26:59] pwnd_nsfw: Yeah no shit, especially for this example heh
[00:27:00] simkessy: smathy: how do I reduce what I'm storing in the cookie?
[00:27:12] simkessy: FailBit: yea, doesn't seem like the best idea
[00:27:17] Mattx: for instance, if I have a string attribute "list" with value "a,b,c", I would like to do myobj.list and receive ["a", "b", "c"]
[00:27:17] bricker: Mattx: or call self[:yourattribute]
[00:27:18] pwnd_nsfw: simkessy, you should leave it to only chocolate chips. NO RAISINS
[00:27:22] simkessy: looking for alternative or finding a way to reduce the cookie size
[00:27:40] Mattx: but then when I do myobj.save it crashes, doesn't it?
[00:27:48] Mattx: (it does)
[00:27:54] FailBit: simkessy literally wtf are you putting in your session that causes a cookie overflow
[00:28:05] bricker: Mattx: def list; self[:list].split(","); end
[00:28:26] bricker: Mattx: def list=(array); self[:list] = array.join(","); end
[00:28:39] Mattx: bricker, I know that would work TO READ the attribute, I can do read_attribute(:list) too
[00:28:46] simkessy: FailBit: I just installed Devise and Omniauth and let that handle login, I haven't done anything with cookies (ever actually). It's pretty new to me
[00:29:07] bricker: Mattx: and my second message writes it back
[00:29:09] Mattx: but when rails validates the attribute it expect a string, not an array
[00:29:29] FailBit: simkessy: devise on its own should not cause a cookie overflow. never heard of omniauth but I suspect that's the issue
[00:29:53] Mattx: rails ends up calling the method with the attribute name to validate it, not the attribute itself
[00:30:09] Mattx: bricker, does it make sense?
[00:30:28] FailBit: Mattx: .. that's not quite how it works
[00:30:29] bricker: Mattx: no. It sounds like you want to use `serialize :list, Array` anyways, which handles all of this for you.
[00:30:45] FailBit: there's no "internal dict" of all attribute values, at least that I know of
[00:30:54] simkessy: FailBit: yea it's what i use for google and facebook login
[00:30:58] bricker: FailBit: yeah there is, model.attributes
[00:31:13] simkessy: ill take a look at their github and see if they have anything regarding cookies
[00:31:29] FailBit: bricker: I stand corrected
[00:32:20] Mattx: bricker, I guess serialize is what I'm looking for, I'll have a look!
[00:34:22] jenrzzz: has joined #RubyOnRails
[00:34:37] Mattx: really cool, I didn't know about serialize
[00:35:12] simkessy: FailBit: guessing this is the issue session["devise.google_data"] = request.env["omniauth.auth"]
[00:35:27] smathy: FailBit, why are you advising not to store the session in the DB?
[00:35:32] Synthead: I am using PostgreSQL and Que for ActiveJob jobs. When I do a .perform_later on a task, it never runs. Should I be running a daemon for this or something? I'm using "rails server" in development mode.
[00:35:46] Synthead: .perform_now works peachy, though
[00:35:50] Synthead: but it doesn't do async jobs
[00:35:58] smathy: Synthead, yes, you have to run the job worker.
[00:36:03] FailBit: smathy: store the components of the session, but not the session itself
[00:36:24] Synthead: smathy: what do I run? It wasn't mentioned in the ActiveJob or Que guides iirc
[00:36:27] smathy: Synthead, !activejob
[00:36:27] helpa: Synthead: http://guides.rubyonrails.org/active_job_basics.html
[00:36:41] rushed: has joined #RubyOnRails
[00:36:42] chills42: has joined #RubyOnRails
[00:37:02] smathy: Synthead, sorry, you're right, it doesn't mention it explicitly because it depends which backend you chose.
[00:37:15] smathy: Synthead, whichever backend you chose, go read that to see how to setup the workers?
[00:37:23] hightower4: Hey, when I have f.field_container and the form is shown, existing values are already pre-filled. How can I manually retrieve the current value of a field to modify its actual value: before display?
[00:37:32] Synthead: smathy: I'm using Que: https://github.com/chanks/que
[00:37:57] smathy: FailBit, what does that even mean?
[00:38:17] hightower4: (Like, for the purpose of a dropdown -- I would like to retain current selection, or select a default entry if no current value exists)
[00:38:27] Mattx: bricker, just in case someday I come along a case in which I REALLY want to use a method with the same name as an attribute (like described above). is there a way to avoid the validation error on save()?
[00:39:01] smathy: simkessy, ignore that article, you can find an article that will say just about anything. It's trivial to change your session store later if you ever need something more performant.
[00:39:13] blackmesa: has joined #RubyOnRails
[00:40:12] smathy: simkessy, using your DB is a very simple change and will get you app back up and running with zero new software required on your server.
[00:40:38] simkessy: smathy: okay, well I'll do both, I'll reduce the cookie and tryout the DB if performance doesn't degrade then it's win win
[00:40:43] Mattx: class MyClass; validates :foo, inclusion: [0, 1, 2] def foo; self[:foo].to_s + "!"; end; end;
[00:40:51] Mattx: MyClass.create! foo: 1 <-- crashes
[00:41:31] smathy: Mattx, !gist your actual code and the console session showing the crash and error.
[00:41:31] helpa: Mattx: http://gist.github.com - Put your codes online with pretty syntax highlighting and the ability to embed it into other pages.
[00:43:14] Mattx: https://gist.github.com/anonymous/f1561bed3ec1ca51c70a
[00:45:01] smathy: Mattx, you didn't define the validates or create! methods in your class.
[00:45:02] Radar: > asked to gist actual code
[00:45:03] Radar: > doesn't
[00:45:17] inanepenguin: has joined #RubyOnRails
[00:45:21] smathy: ...or the [] method.
[00:46:09] Mattx: come on, MyClass extends ActiveRecord::Base
[00:46:18] Mattx: I thought it was clear I was asking about ActiveRecord :p
[00:46:20] Radar: not in that gist it doens't
[00:46:23] Radar: nope not clear at all
[00:46:34] Mattx: you wasn't following the conversation then
[00:46:44] helpa: NO FAKE CODE. If you're under an NDA, we cannot help you with your problem. Go hire a consultant.
[00:46:49] Radar: You weren't following the rules then.
[00:47:33] Mattx: I wasn't, nope
[00:47:36] Mattx: so do you know the answer?
[00:47:44] Radar: Do you have real code?
[00:48:17] smathy: Mattx, if ruby is crashing, assume NOTHING is clear.
[00:48:22] smathy: Mattx, and post your actual code.
[00:48:43] smathy: AND, as requested, your console session showing the crash.
[00:50:09] Mattx: it will break apart for a reason that has nothing to do why my real model. rails tries to validate the attribute "foo", but it uses the value of the method "foo", instead of using read_attribute(:foo) or something
[00:50:13] Grundell: has joined #RubyOnRails
[00:50:26] Radar: Radar kicked Mattx: follow the channel rules
[00:51:22] smathy: Maybe he had a very different idea of what "crash" maens.
[00:51:25] baweaver: has joined #RubyOnRails
[00:51:46] Radar: If I have to ask you more than 3 times to follow the channel rules, that's a paddlin'.
[00:51:52] smathy: I mean *obviously* it'll fail validation.
[00:52:11] smathy: Still busy for this time of night on a Friday.
[00:52:26] Radar: He's offline now. Shame.
[00:53:42] FailBit: http://flif.info/
[00:54:13] FailBit: CABAC coding (like HEVC) for smallest file size
[00:57:21] nya: has joined #RubyOnRails
[00:59:39] Jelmer_: has joined #RubyOnRails
[01:01:02] pontiki: has joined #RubyOnRails
[01:10:07] EminenceHC: has joined #RubyOnRails
[01:11:20] workmad3: has joined #RubyOnRails
[01:12:30] Palsson_: has joined #RubyOnRails
[01:14:57] paulcsmith: has joined #RubyOnRails
[01:16:46] FailBit: is there any gem that I can use to stem trackback spam
[01:16:58] FailBit: because it's hurting my apdex and generally clogging up my error lgs
[01:17:03] njero: has joined #RubyOnRails
[01:17:20] FailBit: 2015-10-03T03:15:47+02:00 [FATAL] 16341 :
[01:17:23] FailBit: ActionController::RoutingError (No route matches [POST] "/dis/the-time-wasting-thread/post/55a951b2636872504900098e/trackback"):
[01:17:25] Radar: FailBit: !gist
[01:17:25] helpa: FailBit: http://gist.github.com - Put your codes online with pretty syntax highlighting and the ability to embed it into other pages.
[01:17:28] FailBit: like that, but hundreds per hour
[01:17:33] FailBit: also that's 2 lines, come on.
[01:17:38] Radar: I thought it was going to be longer.
[01:17:56] Radar: I dunno how to fix that.
[01:20:24] pontiki: it should be possible to rescue that error
[01:21:50] pontiki: if they have a discernable source and/or pattern, you can even toss them before they get to the app server
[01:23:22] xcv: has joined #RubyOnRails
[01:23:29] FailBit: I don't know their source
[01:24:05] pontiki: does the web server keep access logs?
[01:24:38] FailBit: yes, but I don't have access to said logs
[01:24:45] FailBit: I do have access to new relic and complete code control
[01:24:53] FailBit: and can do anything that doesn't require root access
[01:24:56] pontiki: that mean you don't have access to the web server either?
[01:25:25] FailBit: I can restart passenger
[01:25:31] FailBit: I can't dig in nginx logs
[01:25:45] FailBit: https://i.imgur.com/A7R50vr.png
[01:25:50] FailBit: I have referer info
[01:25:56] FailBit: no IP, because it's dying in middleware instead of the app
[01:26:07] FailBit: if it were crashing in the app it would have an IP included in the trace
[01:26:59] EminenceHC: has joined #RubyOnRails
[01:27:08] FailBit: in fact let me get you a trace here
[01:27:12] pontiki: well, hmm. you should still be able to rescue that error, and you should have the entire request object at that point, i think
[01:27:29] FailBit: https://gist.github.com/liamwhite/9b040c654cded1d46128
[01:27:49] bruno-: has joined #RubyOnRails
[01:28:12] rickmasta: has joined #RubyOnRails
[01:28:37] pontiki: hmm. you don't have any of the action dispatch stuff in there?
[01:29:10] FailBit: no trace has had one
[01:29:16] FailBit: they all die in middleware
[01:30:20] pontiki: how do you feel about writing your own middleware?
[01:30:30] FailBit: I'm not opposed to it
[01:30:40] arooni: has joined #RubyOnRails
[01:31:11] Sigma00: write a catchall route and show a 404. BOOM done
[01:31:25] Sigma00: *make sure the catchall is at the bottom of routes.rb
[01:31:35] FailBit: that only matches GET
[01:31:38] FailBit: this is POST
[01:31:46] Sigma00: match "*path", to: "application#custom_action", via: :all
[01:32:13] Sigma00: that'll catch any verb
[01:32:13] hightower4: Hey, how do I retrieve the current URL in a rails app, or more specifically, how would I change the locale? E.g. if the user is on /en/profile/show and wants to switch to locale "de", how would I redirect him to /de/profiles/show?
[01:33:09] FailBit: Sigma00: hoping that won't clobber anything, poking now
[01:33:41] mheld: has joined #RubyOnRails
[01:33:41] Sigma00: FailBit: just be sure it's the very last route
[01:33:50] FailBit: yeah the get already is
[01:34:01] FailBit: what's the via: :all thing do?
[01:34:07] FailBit: match '*path', :controller => 'pages', :action => 'render_404'
[01:34:10] FailBit: I have this ^
[01:34:55] Sigma00: is this rails3 or rails4?
[01:35:09] subshad: has joined #RubyOnRails
[01:35:19] Sigma00: just add `via: :all` and it'll match all verbs
[01:35:42] Maletor: has joined #RubyOnRails
[01:35:56] pontiki: hightower4: to get the current URL, look at http://api.rubyonrails.org/classes/ActionDispatch/Request.html
[01:36:11] pontiki: that's available in your controllers as `request`
[01:37:18] hightower4: pontiki, right, I was hoping there would be some more automated way, but this will certainly do. Thanks
[01:37:58] Sigma00: hightower4: if you set the locale in your routes, you'll have params[:locale
[01:38:05] Sigma00: ugh, hit enter too early
[01:38:06] EminenceHC: has joined #RubyOnRails
[01:38:17] Sigma00: you'll have params[:locale] or whatever available
[01:39:01] hightower4: Sigma00, right, sure, but I need to replace the current locale with a new one, while not redirecting the user to the main page but reloading the page they are currently on
[01:39:41] Fuzai: has joined #RubyOnRails
[01:40:51] sekrit: has joined #RubyOnRails
[01:40:52] Fuzai: How does one use mongoid from a rake task to update a database? I've been looking all over and having no luck, all the examples seem to start their own connection to the database server and I would rather use Mongoid.
[01:40:54] pontiki: using the example at http://guides.rubyonrails.org/i18n.html#setting-the-locale-from-the-url-params, you could modify that :set_locale callback
[01:41:54] blackmesa: has joined #RubyOnRails
[01:42:00] FailBit: Fuzai: does your rake task load the rails environment?
[01:42:25] Fuzai: I'm too new to be able to answer that, I think that's a no, this is my first rake task. :)
[01:42:30] hightower4: pontiki, yes, right, the issue is that I use a method with /LL/path instead of path?locale=LL, and so if I append ?locale=LL at the end of the URL, the /LL setting takes precedence and makes ?locale=LL ineffective. So I do need to find out the current path (which I'll do with request.fullpath), and replace the locale in it
[01:42:51] Sigma00: hightower4: redirect_to route_name_path(:nameOfLocaleKey => 'de')
[01:44:38] hightower4: Great, will try that, thanks
[01:47:01] johnflux: has joined #RubyOnRails
[01:47:39] FailBit: holy shit dude
[01:47:44] FailBit: 89.6ms avg response times
[01:47:49] FailBit: this is amazing
[01:47:57] FailBit: apdex floated back up to 1.0
[01:49:18] paulcsmith: has joined #RubyOnRails
[01:55:57] Sigma00: the magic of discarding all your problems :P
[01:57:12] FailBit: I fixed a stupid performance issue and suddenly everything got a lot better
[01:57:20] FailBit: and then your tip fixed the apdex
[01:57:43] concernedcitizen: has joined #RubyOnRails
[01:58:02] chouhoulis: has joined #RubyOnRails
[02:00:42] Creeves: has joined #RubyOnRails
[02:01:44] cih: has joined #RubyOnRails
[02:03:04] based_pdev_: has joined #RubyOnRails
[02:03:43] gousuto: has joined #RubyOnRails
[02:03:58] chipotle: wow namecheap is down, well their cloudlfare cdn is
[02:04:05] diego1: has joined #RubyOnRails
[02:04:19] diego1: has joined #RubyOnRails
[02:04:35] nickenchuggets: has joined #RubyOnRails
[02:04:38] fcser_: has joined #RubyOnRails
[02:06:52] baweaver: has joined #RubyOnRails
[02:08:04] ivanskie_: has joined #RubyOnRails
[02:08:39] yaymukund: has joined #RubyOnRails
[02:10:59] mices: if i'm gonna add a column what's the benefit of using migration vs direct to database
[02:12:10] chouhoulis: has joined #RubyOnRails
[02:13:10] ValicekB: has joined #RubyOnRails
[02:14:04] Miron_: has joined #RubyOnRails
[02:15:21] Fahrenhei7: has joined #RubyOnRails
[02:16:08] Maletor: has joined #RubyOnRails
[02:16:17] annlewis: has joined #RubyOnRails
[02:16:44] Creeves: has joined #RubyOnRails
[02:17:33] webdestroya: has joined #RubyOnRails
[02:17:51] bronson: has joined #RubyOnRails
[02:17:52] njero: has joined #RubyOnRails
[02:18:53] FailBit: migrations will appear in your schema and be usable in your model
[02:19:08] FailBit: adding to the database will be as if nothing changed from the app's POV.
[02:19:18] FailBit: that's a huge difference.
[02:19:39] Miron_: has joined #RubyOnRails
[02:19:55] havenwood: has joined #RubyOnRails
[02:22:27] diegoviola: has joined #RubyOnRails
[02:23:20] diegoviola: has joined #RubyOnRails
[02:23:28] deavid: has joined #RubyOnRails
[02:24:29] linoge: has joined #RubyOnRails
[02:24:32] FailBit: <%byte[]> python python python *snake rises out of the drain* oh shi???
[02:25:24] linoge: Hi, I chose SpreeCommerce for an eCommerce website I'm building and I'm a bit lost about how to edit views in both frontend and backend. I would like to do full customization of those, but it feels a bit... unnatural?
[02:25:36] linoge: Would like to hear any experience on the matter :)
[02:28:53] jenrzzz: has joined #RubyOnRails
[02:32:43] mary5030: has joined #RubyOnRails
[02:35:25] The_Phoenix: has joined #RubyOnRails
[02:35:45] Miron_: has joined #RubyOnRails
[02:37:42] ivanskie_: has joined #RubyOnRails
[02:45:03] blackmesa: has joined #RubyOnRails
[02:45:31] diegoviola: my movie tracking app https://safe-bastion-9532.herokuapp.com/
[02:46:01] bonhoeffer: has joined #RubyOnRails
[02:46:46] rickmasta: has joined #RubyOnRails
[02:47:27] diegoviola: https://github.com/diegoviola/movies/ <-- source, let me know if I can do something better...
[02:47:29] bonhoeffer: i???m adding a second theme ??? witih custom layout ??? how do i get bootstrap integrated?
[02:47:41] bonhoeffer: the gem includes bootstrap css in the default layout
[02:47:58] ramfjord: has joined #RubyOnRails
[02:50:08] manfrin_: has joined #RubyOnRails
[02:51:35] mary5030: has joined #RubyOnRails
[02:55:37] EminenceHC: has joined #RubyOnRails
[02:59:30] workmad3: has joined #RubyOnRails
[03:07:27] hightower4: Hey, how can I throw a validation error from a before_save? I am doing errors.add :fieldname, :msg, but it is letting the save go through without stopping it
[03:12:19] sadaf2606: has joined #RubyOnRails
[03:12:29] jenrzzz: has joined #RubyOnRails
[03:13:04] braincrash: has joined #RubyOnRails
[03:17:40] annlewis: has joined #RubyOnRails
[03:18:36] njero: has joined #RubyOnRails
[03:19:02] bronson: has joined #RubyOnRails
[03:19:02] RockLee: has joined #RubyOnRails
[03:22:46] kat: has joined #RubyOnRails
[03:23:21] jenrzzz: has joined #RubyOnRails
[03:23:28] hightower4: Got it, have to return false from it
[03:29:20] RockLee: has joined #RubyOnRails
[03:31:23] Kalev_Nakah: has joined #RubyOnRails
[03:32:16] baweaver: has joined #RubyOnRails
[03:37:05] rickmasta: has joined #RubyOnRails
[03:43:26] johnflux: has joined #RubyOnRails
[03:43:27] johnflux: has joined #RubyOnRails
[03:45:21] Miron_: has joined #RubyOnRails
[03:46:11] idd2d: has joined #RubyOnRails
[03:47:56] blackmesa: has joined #RubyOnRails
[03:53:30] youngbaks: has joined #RubyOnRails
[03:59:34] RegulationD: has joined #RubyOnRails
[04:01:33] chipotle: i wanted to know how you pick your stack? MEAN seems to be very popular today, which is js, so is ang js, backnone etc. so how do you pick your tech stack if you use js instead of RoR (i'm coming from a drupal background)
[04:02:12] mary5030: has joined #RubyOnRails
[04:04:10] Grundell: has joined #RubyOnRails
[04:06:31] crdpink: has joined #RubyOnRails
[04:08:13] rushed: has joined #RubyOnRails
[04:08:45] Fuzai: I've got a rake task that I would like to have run every 10 minutes in production. What is the best way to go about automating this if I don't have access to cron?
[04:09:18] rickmasta: has joined #RubyOnRails
[04:12:29] dnewkerk: hey chipotle - I???m a former Drupal person too. For me my boss picked Rails (we started with Drupal though and rebuilding in Rails)??? and I???m very grateful :P
[04:12:36] johnflux: has joined #RubyOnRails
[04:12:39] vamsi: has joined #RubyOnRails
[04:12:42] Joufflu: has joined #RubyOnRails
[04:13:57] creature: Fuzai: Do you have a job queue? There's resque-scheduler for Resque, Sidekiq has scheduling stuff in it too.
[04:14:34] Fuzai: I don't, do either of those require an external service? I'm trying to deploy this to Openshift
[04:15:04] chipotle: dnewkerk: nice! what would you say the main changes are, or the philosophy being different? any tips?
[04:16:04] creature: Fuzai: No external services, but I don't know if they're supported on Openshift. http://sidekiq.org/ will probably be the best intro to it (and is probably a better pick than Resque these days)
[04:16:48] chipotle: dnewkerk: can i pm you?
[04:17:05] dnewkerk: chipotle: sure
[04:17:30] havenwood: has joined #RubyOnRails
[04:17:31] pontiki: has joined #RubyOnRails
[04:17:43] Fuzai: creature: ty :)
[04:17:55] bronson: has joined #RubyOnRails
[04:18:00] dnewkerk: Fuzai: I switched recently from Resque to Sidekiq, love it
[04:18:25] annlewis: has joined #RubyOnRails
[04:18:43] creature: Actually, the Github project is probably a much better intro. https://github.com/mperham/sidekiq
[04:19:10] Fuzai: sidekiq requires redis
[04:19:21] njero: has joined #RubyOnRails
[04:19:25] Fuzai: or is that just pro?
[04:20:14] havenwood: Fuzai: it requires redis
[04:20:51] jun: has joined #RubyOnRails
[04:21:28] havenwood: Fuzai: I recall a discussion of the why on Ruby Rogues: https://devchat.tv/ruby-rogues/221-rr-sidekiq-with-mike-perham
[04:21:33] dnewkerk: https://blog.openshift.com/enabling-redis-for-your-app/
[04:22:19] Fuzai: The problem with redis for openshift is that it is community supported only with no updates
[04:22:34] Fuzai: I'm actually in conservations with their support about getting that resolved.
[04:22:43] dnewkerk: ACTION knows nothing about openshift
[04:22:52] Fuzai: Openshift is like Heroku but managed by Red hat
[04:24:36] braincra-: has joined #RubyOnRails
[04:24:39] arup_r: has joined #RubyOnRails
[04:25:42] ramfjord: has joined #RubyOnRails
[04:28:02] codelahoma: has joined #RubyOnRails
[04:28:38] yfeldblum: has joined #RubyOnRails
[04:32:50] moeabdol: has joined #RubyOnRails
[04:36:38] dopie: has joined #RubyOnRails
[04:38:16] codelahoma: has joined #RubyOnRails
[04:38:55] yfeldblum: has joined #RubyOnRails
[04:39:45] sarink: has joined #RubyOnRails
[04:40:05] diego1: has joined #RubyOnRails
[04:40:15] jun: has joined #RubyOnRails
[04:40:51] mices: FailBit: when will my app refer to shema.rb and what if i've been manually altering my table structures without migrations, i forgot what command do i run to bring my schema.rb into sync with my true table structures
[04:42:03] baweaver: has joined #RubyOnRails
[04:42:16] yfeldblum: has joined #RubyOnRails
[04:42:31] Radar: " what if i've been manually altering my table structures without migrations"
[04:43:13] pontiki: oh, let them play, radar :)
[04:44:02] chipotle: Radar: did you see my question in offtopic?
[04:44:17] Radar: [13:56:47] <chipotle> Radar: still here?
[04:44:40] Radar: chipotle: how do you order from a menu at a restaurant?
[04:44:48] Radar: I avoid anything with cucumber in it
[04:44:57] Radar: Your other question was "[13:56:30] <chipotle> so how do i choose what to build the app?
[04:45:10] chipotle: seamless.com in nyc and grubhub.comm otherwise, hate talking on the phone because they don't speak english well at most plcaes in nyc and they get orders wrong or address wrong
[04:45:12] Radar: Really, it comes down to personal preference.
[04:45:31] chipotle: i wanted to know how you pick your stack? MEAN seems to be very popular today, which is js, so is ang js, backnone etc. so how do you pick your tech stack if you use js instead of RoR (i'm coming from a drupal background)
[04:45:48] chipotle: and of course there is also nodeJS, but i know the main contributor left so i don't know if it's used much anymore
[04:46:01] baweaver: has joined #RubyOnRails
[04:46:34] Radar: node is used plenty?
[04:47:36] workmad3: has joined #RubyOnRails
[04:48:18] chipotle: Radar: so what about js vs ror then? what is the reason people decide one or the other?
[04:48:48] Radar: I picked Rails because it wasn't PHp
[04:50:56] blackmesa: has joined #RubyOnRails
[04:51:32] sadaf2605: has joined #RubyOnRails
[04:51:33] thejamespinto_: has left #RubyOnRails: ()
[04:51:44] thejamespinto: has joined #RubyOnRails
[04:54:22] pontiki: most people pick because "hey, this looks cool"
[04:54:24] rmn388_: has joined #RubyOnRails
[04:54:45] pontiki: some others pick because "god, i'm sick of this crap"
[04:57:05] frzn: has joined #RubyOnRails
[04:57:05] frzn: has joined #RubyOnRails
[04:59:57] mices: chipotle: what's offtopic is that a channel?
[05:00:35] chipotle: mices: #ruby-offtopic
[05:01:39] mices: what rake command do i use to reset schema.rb
[05:01:43] mices: i mean update
[05:01:48] htmldrum: has joined #RubyOnRails
[05:03:49] pontiki: `rake -AD` to see all the commands and documentation for them
[05:04:34] ramfjord: has joined #RubyOnRails
[05:04:38] mices: when will my app refer to the file?
[05:07:14] arup_r: chipotle: so you are using RoR, or planning to use it.. ? :)
[05:08:59] mices: i googled most popular web framework and the number one choice was rails
[05:09:06] mices: that's why i went with rails
[05:10:26] mices: people gonna tell you countless frameworks to use
[05:14:00] mices: rails with passenger is the most popular
[05:15:16] mices: so if i'm gonna learn a language i guess it's best to choose the most popular
[05:15:22] dnewkerk: some people loathe javascript??? hence they won???t pick MEAN no matter how popular it is.
[05:15:39] dnewkerk: mices well then PHP for you? :P
[05:15:46] corioliss: has joined #RubyOnRails
[05:16:26] pontiki: *ahem* Java is still most popular by an astounding margin
[05:16:59] pontiki: which just goes to show you can't trust popularity :D
[05:17:16] dnewkerk: mices I???ve heard it said, it???s better to be a ???developer??? who uses languages (they come and go). Don???t let your tools define you
[05:17:33] pontiki: that's true of all professions
[05:18:02] cycliam: has joined #RubyOnRails
[05:18:09] mices: is Java a web framework?
[05:18:27] pontiki: no, that's WebSphere
[05:18:36] pontiki: and Spring
[05:18:39] dnewkerk: it???s a kinda coffee mices, don???t worry about it
[05:18:51] Radar: gods is a good framework
[05:18:53] mices: so then java's not the most popular web framework, ror is
[05:19:07] Radar: popularity contests are useless
[05:19:09] baweaver: has to be trolling
[05:19:11] annlewis: has joined #RubyOnRails
[05:19:19] baweaver: no way anyone in the dev sphere is that dense
[05:19:20] Radar: or just really, really naive
[05:19:26] Radar: baweaver: oi, easy
[05:19:42] charliesome: has joined #RubyOnRails
[05:19:58] mices: i used to do everything from scratch in perl and my sites were a real nightmare
[05:20:03] cycliam: Hello. Basic question here. I have an object of a model class, like t = Thing.new. I have a method of the Thing class that I want to operate on self. I call t.func(), update attribute like self.x = "y" inside func, but when func returns, t.x is still nil. How can I fix?
[05:20:29] Radar: cycliam: !gist your code
[05:20:29] helpa: cycliam: http://gist.github.com - Put your codes online with pretty syntax highlighting and the ability to embed it into other pages.
[05:20:35] Radar: cycliam: !rule3.2
[05:20:35] helpa: cycliam: NO FAKE CODE. If you're under an NDA, we cannot help you with your problem. Go hire a consultant.
[05:20:58] mices: things are always changing, advancing, but for now mvc is great leap towards getting organized
[05:21:35] mices: before i came to rails there was no organization really
[05:21:54] mices: sh*t all over the place
[05:22:06] Radar: "And DHH said 'Let there be MVC!' and there was"
[05:22:09] mices: and every new thing was intimidating
[05:22:12] Radar: Book of Rails, Chapter 1.
[05:22:40] pontiki: anything you think is new now, martin fowler wrote about 2 decades ago, at least
[05:22:40] Radar: Turns out, putting things in the same (or similar) place across different applications makes working with those applications easy. Who would've thought?
[05:22:54] dnewkerk: I think DHH invented race cars too, right?
[05:22:59] mices: that's an extended top
[05:23:03] Radar: "Praise be to DHH"
[05:23:08] Radar: Book of Rails, Chapter 2, Verse 1.
[05:23:18] jenrzzz: has joined #RubyOnRails
[05:23:32] baweaver: Rails is by far not the first to use MVC
[05:23:40] dnewkerk: Thou shalt not be concerned about concerns
[05:23:49] mices: i was reading a catalyst book before i decided on rails
[05:23:52] pontiki: "TurboLinks will deliver you from JS", Book of Rails, New Testament
[05:23:56] baweaver: be very careful not to treat something that religiously without reading into it more
[05:24:14] stannard: has joined #RubyOnRails
[05:24:22] cycliam: Radar: https://gist.github.com/anonymous/930026110b0ae55a3de8
[05:24:40] pontiki: also: never trust your own beliefs :D
[05:24:49] Radar: cycliam: Totes weird that the method is called "get" but you're setting.
[05:24:58] Radar: cycliam: Is it the self.to_yaml which is wrong?
[05:25:25] Radar: pontiki: agreed. That problem that "couldn't possibly be a timezone issue" that you spend 8 hours debugging... well, it could be a timezone issue ;)
[05:25:28] cycliam: no, that prints what we want. the problem is that when the function returns, the object it was called on does not have those values
[05:25:56] Radar: cycliam: improbable. Can you show us the full output?
[05:26:22] baweaver: you should not name something get_* if it's setting items. That's lying to your consumer
[05:28:22] baweaver: and the more your methods lie, the harder it will be to work with that code.
[05:28:54] cycliam: baweaver: Yeah, the code has been changing a lot lately :P
[05:29:01] mices: if i had a perfectly good app and i deleted schema.rb and then ran rake db:shema:dump i should then have a correct shema.rb created that matches my database?
[05:29:10] Radar: mices: !8ball
[05:29:15] Radar: HELPA HAS SPOKEN
[05:29:57] cycliam: Radar: You're right. I think it's failing to set due to incompatible types. last_flight_duration is not an int. The other data DOES get set. Thanks.
[05:30:24] dionysus69: has joined #RubyOnRails
[05:30:28] cycliam: has left #RubyOnRails: ()
[05:32:28] Creeves: has joined #RubyOnRails
[05:32:30] johnflux: has joined #RubyOnRails
[05:34:26] BraddPitt: has joined #RubyOnRails
[05:34:31] BraddPitt: has left #RubyOnRails: ()
[05:39:23] thejamespinto: hey, can anybody help me with a question that I won't even begin composing until I get some validation because I'm really insecure? :D
[05:48:14] deavid: has joined #RubyOnRails
[05:49:44] raunicolae: has joined #RubyOnRails
[05:54:00] blackmesa: has joined #RubyOnRails
[06:02:39] simplyianm: has joined #RubyOnRails
[06:02:56] absklb: has joined #RubyOnRails
[06:03:28] deavid: has joined #RubyOnRails
[06:03:52] absklb: while I was running rails in developement mode my OS crashed due to some other reason. When I log back in and try try to run rails s it complaintsn that some other rails is running and using port hence cant run. i delete the pid/server.pipd something
[06:05:56] absklb: /var/canvas/vendor/bundle/ruby/2.1.0/gems/eventmachine-1.0.4/lib/eventmachine.rb:526:in `start_tcp_server': no acceptor (port is in use or requires root privileges) (RuntimeError)
[06:07:10] htmldrum: has joined #RubyOnRails
[06:08:36] dideler: has joined #RubyOnRails
[06:09:33] lxsameer: has joined #RubyOnRails
[06:13:12] johnflux: has joined #RubyOnRails
[06:19:44] bronson: has joined #RubyOnRails
[06:19:59] annlewis: has joined #RubyOnRails
[06:20:05] njero: has joined #RubyOnRails
[06:20:42] cih: has joined #RubyOnRails
[06:24:43] havenwood: has joined #RubyOnRails
[06:25:45] workmad3: has joined #RubyOnRails
[06:31:53] chipotle: thejamespinto: initially it's coming for us. you can ask but ask again noon eastern time, you'll be fine
[06:34:40] deavid: has joined #RubyOnRails
[06:35:50] absklb: has joined #RubyOnRails
[06:38:09] moeabdol1: has joined #RubyOnRails
[06:38:17] youngbaks: has joined #RubyOnRails
[06:39:02] yottanami: has joined #RubyOnRails
[06:49:40] srinidhi: has joined #RubyOnRails
[06:50:55] tsujp: has joined #RubyOnRails
[06:52:05] srinidhi: has joined #RubyOnRails
[06:53:18] jun: has joined #RubyOnRails
[06:55:28] tejasmanohar: thejamespinto: ask it
[06:56:07] thejamespinto: chipotle tejasmanohar: I was just making a joke guys
[06:56:25] thejamespinto: I thought I had planted enough clues, sorry for the confusion :P
[06:56:29] thejamespinto: my joke works :D
[06:56:31] tejasmanohar: out-of-context a-f-k s-o-r-r-y
[06:56:57] blackmesa: has joined #RubyOnRails
[06:57:06] thejamespinto: have you guys watched EX MACHINA yet?
[06:57:11] thejamespinto: it's fucking amazing :D
[06:57:20] arup_r: ys.. what is that ? :D
[06:57:29] thejamespinto: I mean, I figured out the end after watching the stupid trailer
[06:57:33] thejamespinto: arup_r: it's a movie
[06:57:53] thejamespinto: it's very well-written and the effects are really nice
[06:58:30] thejamespinto: I'm actually surprised to be enjoying this
[06:59:18] thejamespinto: I'm usually the best guess on movie endings in all my friends circles and I'm often bored as hell cause the plots seem stupid to me
[06:59:22] thejamespinto: but this is freaking good =D
[06:59:29] thejamespinto: and they're all programmers :D
[07:00:39] jgt: has joined #RubyOnRails
[07:06:42] dici: has joined #RubyOnRails
[07:11:50] EminenceHC: has joined #RubyOnRails
[07:12:54] FrankD: has joined #RubyOnRails
[07:13:27] mices: has anyone tried developing on a pc tablet?
[07:13:37] mices: i mean a windows tablet
[07:14:17] qejk: has joined #RubyOnRails
[07:14:31] mices: it seems bizaare but maybe it can be dome comfortably i dunno
[07:14:48] rushed: has joined #RubyOnRails
[07:16:02] RegulationD: has joined #RubyOnRails
[07:18:01] darkxploit: has joined #RubyOnRails
[07:20:39] nya: has joined #RubyOnRails
[07:20:43] annlewis: has joined #RubyOnRails
[07:20:47] bronson: has joined #RubyOnRails
[07:22:27] Creeves: has joined #RubyOnRails
[07:25:23] jgt: has joined #RubyOnRails
[07:33:56] apg: has joined #RubyOnRails
[07:35:24] blackmesa: has joined #RubyOnRails
[07:36:41] dionysus69: has joined #RubyOnRails
[07:37:21] ruurd: has joined #RubyOnRails
[07:38:52] thejamespinto: mices: our PM uses one
[07:39:01] thejamespinto: looks disgusting to us thoguh
[07:43:12] thejamespinto: mices: you need a keyboard to write code, period :(
[07:45:43] sdwrage: has joined #RubyOnRails
[07:49:21] blackmesa: has joined #RubyOnRails
[07:49:22] EminenceHC: has joined #RubyOnRails
[07:51:48] dionysus69: has joined #RubyOnRails
[07:54:24] mission712_: has joined #RubyOnRails
[07:54:29] gizmore: has joined #RubyOnRails
[08:00:12] mission712: has joined #RubyOnRails
[08:05:52] njero: has joined #RubyOnRails
[08:08:48] htmldrum: has joined #RubyOnRails
[08:13:49] cih: has joined #RubyOnRails
[08:13:49] workmad3: has joined #RubyOnRails
[08:14:43] mission712_: has joined #RubyOnRails
[08:17:25] htmldrum: has joined #RubyOnRails
[08:19:37] iateadonut: has joined #RubyOnRails
[08:21:29] annlewis: has joined #RubyOnRails
[08:21:39] bronson: has joined #RubyOnRails
[08:22:08] darutoko: has joined #RubyOnRails
[08:24:55] stannard: has joined #RubyOnRails
[08:26:43] naftilos76: has joined #RubyOnRails
[08:27:02] mices: maybe with a bluetooth keyboard
[08:27:40] nathanjo: has joined #RubyOnRails
[08:27:46] mices: i'm gonna set up a netbook with linux mint for developing i think
[08:29:19] mices: supposed to be the best os
[08:29:37] michael_mbp: has joined #RubyOnRails
[08:30:03] webdestroya: has joined #RubyOnRails
[08:32:38] naftilos76: Hi, i am trying to figure out ways to optimize the process of fetching thousands of rows from the database and still get a completely rendered page in less than 2-3 seconds. This has got to be done by converting the instance that has the database rows in a raw json data object passed to a js var in my js view and then build a table with js/jquery. This is my approach so far but the thing is that i do not want to keep all that data fetched in a
[08:32:38] naftilos76: table but instead keep it in a js var and selectively copy paste to the actual visible table to the user. Do you have any suggestions regarding ways to further optimize this procedure?
[08:32:58] srinidhi: has joined #RubyOnRails
[08:33:37] pontiki: has joined #RubyOnRails
[08:34:54] naftilos76: mices, try mint cinnamon 17.2. You ll love it!
[08:36:29] blackmesa: has joined #RubyOnRails
[08:41:36] iateadonut: has joined #RubyOnRails
[08:44:02] aruntomar: has joined #RubyOnRails
[08:44:35] ruurd: has joined #RubyOnRails
[08:45:01] qejk: has joined #RubyOnRails
[08:48:50] habitullence: has joined #RubyOnRails
[08:52:32] voker57: has joined #RubyOnRails
[08:57:22] yaymukund: has joined #RubyOnRails
[09:02:18] dionysus69: has joined #RubyOnRails
[09:03:28] Trynemjoel: has joined #RubyOnRails
[09:04:37] quazimodo: has joined #RubyOnRails
[09:08:46] Cervajz: has joined #RubyOnRails
[09:10:58] AzaToth: has joined #RubyOnRails
[09:11:04] Cervajz_: has joined #RubyOnRails
[09:14:03] absklb: has joined #RubyOnRails
[09:14:22] absklb: how can i concatenate link to so that i will have root_path/courses/id where in my loop i keep changing id?
[09:14:40] w0rd-driven: has joined #RubyOnRails
[09:16:02] n008f4g_: has joined #RubyOnRails
[09:16:05] cac: has joined #RubyOnRails
[09:16:14] jhass: absklb: <% Courses.each do |course| %><%= link_to course.name, course %><% end %>
[09:16:31] jhass: if I guess wrong that means you didn't provide enough context ;)
[09:18:14] absklb: jhass: i have to create a link to my text which will point to http://localhost:90/courses/5
[09:19:55] absklb: thats just for one course. as example. i have to do it many times in loop where 5 will be provided by a variable.
[09:20:14] jhass: so see above
[09:20:57] absklb: course does not print link in your example.
[09:21:17] jhass: so provide more context
[09:21:36] w0rd-driven: has joined #RubyOnRails
[09:21:44] absklb: thats why i was going step by step where you would have understood, but since you directly want to jump....
[09:22:16] annlewis: has joined #RubyOnRails
[09:22:39] bronson: has joined #RubyOnRails
[09:23:01] arup_r: absklb: you want show action
[09:23:17] arup_r: if your routes is resources :courses
[09:23:24] absklb: arup_r: can i ask you few questions?
[09:23:40] arup_r: then use link_to course.name, course_path(course)
[09:24:33] absklb: i think lets leave it.
[09:24:45] jhass: you can just pass the model directly
[09:25:09] jhass: absklb: what's so hard about providing the necessary context?
[09:25:19] absklb: jhass: arup_r ok. so this does not have aniything to do with model at all.
[09:25:30] absklb: jhass: because the original questios is so simple
[09:25:40] jhass: we're not interested in what it has nothing to do with
[09:25:40] absklb: jhass: ok i will try. let my type.
[09:26:20] arup_r: absklb: why are you making the url by hand.. use routes helper...
[09:26:46] arup_r: if you are not using resource or resources .. then use as: option to define the route helper
[09:27:06] arup_r: and then use the helper as I said
[09:28:49] absklb: what if the loop from where i am printing does not iterate through Course model? what if itns 100% completely differant and inside that i am manually making relation to course?
[09:29:41] absklb: in that case i dont have course route etc
[09:29:56] absklb: so i just want to concatenate root_path + "courses" + myvar
[09:30:15] absklb: in loop. "concatenation" part is what i was looking for
[09:33:59] jhass: absklb: then you didn't provide a good justification for doing so and we tell you that it's a bad idea but that you can just pass your variable to your route helper (probably course_path)
[09:38:43] w0rd-driven: has joined #RubyOnRails
[09:39:49] reeve: has joined #RubyOnRails
[09:40:20] reeve_: has joined #RubyOnRails
[09:40:59] Spami: has joined #RubyOnRails
[09:41:27] FrankD: has joined #RubyOnRails
[09:41:34] sankaber: has joined #RubyOnRails
[09:44:00] Scriptonaut: has left #RubyOnRails: ()
[09:45:15] kidoz: has joined #RubyOnRails
[09:47:00] blackmes1: has joined #RubyOnRails
[09:47:33] srinidhi: has joined #RubyOnRails
[09:47:39] bonhoeffer: has joined #RubyOnRails
[09:49:13] w0rd-driven: has joined #RubyOnRails
[09:49:54] EminenceHC: has joined #RubyOnRails
[09:50:40] deavid: has joined #RubyOnRails
[09:52:20] Palsson__: has joined #RubyOnRails
[09:54:52] absklb: all my courses have a route as http://localhost:90/courses/5 that means there should be a root called "courses_path" which will be /courses/:course_id/" right? but i dont find it in my rake routes?
[09:55:07] max_Q: has joined #RubyOnRails
[09:55:16] absklb: root=path*
[09:55:38] absklb: i tred grep and tried to rake route > routes.txt and that file also dont have it
[09:57:13] rj-code: has joined #RubyOnRails
[09:57:17] absklb: its not my code btw, its Canvas LMS. hence this trouble.
[09:57:33] tbuehlmann: absklb, assuming a regular `resources :courses` in your routes.rb, you will have a couses_path routing to /courses
[09:58:04] tbuehlmann: also, linking to a course will lead to /courses/:id
[09:58:41] bonhoeffer: what is the purpose of making my assets with a sha style tag at the end: url(/assets/blog/home-bg-bf3e5cd50e2a0f051728a1c2936b6a4a.jpg);?
[09:59:15] absklb: tbuehlmann: ok. let me check
[09:59:25] bonhoeffer: i???m wondering both out of curiosity, as well as trying to troubleshoot why the image isn???t showing
[09:59:25] charliesome: has joined #RubyOnRails
[09:59:33] eikood: has joined #RubyOnRails
[09:59:36] tbuehlmann: bonhoeffer, see http://guides.rubyonrails.org/asset_pipeline.html#what-is-fingerprinting-and-why-should-i-care-questionmark
[09:59:56] bonhoeffer: ah ??? found the latter, and tbuehlmann thanks for the link ??? fingerprinting was the key phrase
[10:01:55] workmad3: has joined #RubyOnRails
[10:02:19] jhass: absklb: also see your bin/rake routes output
[10:02:34] jhass: absklb: and http://guides.rubyonrails.org/routing.html
[10:02:37] tbuehlmann: jhass, I think that was done already
[10:02:49] absklb: jhass: i just saw that only. and since its too much long list i tried to use grep and .txt
[10:02:51] tbuehlmann: reading the routing guides (again) is a very good thing though
[10:04:27] chouhoulis: has joined #RubyOnRails
[10:05:52] seank_: has joined #RubyOnRails
[10:06:21] maxp: has joined #RubyOnRails
[10:06:39] njero: has joined #RubyOnRails
[10:07:59] nickyd: has joined #RubyOnRails
[10:08:42] SmOkE_RU: has joined #RubyOnRails
[10:13:12] w0rd-driven: has joined #RubyOnRails
[10:13:38] yardenbar: has joined #RubyOnRails
[10:14:06] GarethAdams: has joined #RubyOnRails
[10:14:08] Liothen: has joined #RubyOnRails
[10:14:15] Olipro: has joined #RubyOnRails
[10:14:16] Caius: has joined #RubyOnRails
[10:14:54] Coldblackice_: has joined #RubyOnRails
[10:15:43] DoubleMalt: has joined #RubyOnRails
[10:17:01] stamina: has joined #RubyOnRails
[10:18:34] absklb: if i do <%= link_to "Resume", courses_path(crss.id)%> it prints courses.4 if i do <%= link_to "Resume", courses_patcourses_id => crss.id)%> it prints courses?courses_id=4. How can i make it print courses/4 ??
[10:19:18] absklb: <%=link_to "Resume", courses_path(:courses_id => crss.id)%>
[10:19:31] eikood: has joined #RubyOnRails
[10:19:48] tbuehlmann: absklb, why not just `<%= link_to 'Resume', crss %>`?
[10:20:30] absklb: yeah that works!
[10:21:38] Isthar: has joined #RubyOnRails
[10:21:38] eikood: has joined #RubyOnRails
[10:22:22] toydestroyer: has joined #RubyOnRails
[10:22:43] w0rd-driven: has joined #RubyOnRails
[10:23:04] annlewis: has joined #RubyOnRails
[10:23:36] bronson: has joined #RubyOnRails
[10:27:10] sadaf2606: has joined #RubyOnRails
[10:29:17] nertzy2: has joined #RubyOnRails
[10:30:32] FrankD: has joined #RubyOnRails
[10:30:55] mission712_: has joined #RubyOnRails
[10:34:11] pontiki: has joined #RubyOnRails
[10:35:29] DEA7TH: has joined #RubyOnRails
[10:38:34] aruntomar_: has joined #RubyOnRails
[10:39:15] w0rd-driven: has joined #RubyOnRails
[10:41:08] deavid: has joined #RubyOnRails
[10:41:18] jenrzzz: has joined #RubyOnRails
[10:47:42] bonhoeffer: has anyone ever seen this: app.edit_blog_article_path(u, Blog::Article.last) -> "/blog/articles/1/edit.4"
[10:47:47] bonhoeffer: not "/blog/articles/1/edit/4???
[10:48:04] bonhoeffer: it looks like the id is beeing seen as the format
[10:48:38] bonhoeffer: route: namespace :blog do resources :articles
[10:50:35] bonhoeffer: got it ??? easy ??? sorry
[10:51:50] stannard: has joined #RubyOnRails
[10:56:33] xcv: has joined #RubyOnRails
[11:00:17] w0rd-driven: has joined #RubyOnRails
[11:02:55] DEA7TH: has joined #RubyOnRails
[11:04:22] frzn: has joined #RubyOnRails
[11:04:22] frzn: has joined #RubyOnRails
[11:04:49] FrankD: has joined #RubyOnRails
[11:06:02] baegle: has joined #RubyOnRails
[11:11:11] sevenseacat: has joined #RubyOnRails
[11:12:49] w0rd-driven: has joined #RubyOnRails
[11:17:51] cih: has joined #RubyOnRails
[11:18:40] rickmasta: has joined #RubyOnRails
[11:22:27] bonhoeffer: has joined #RubyOnRails
[11:22:31] raunicolae: has left #RubyOnRails: ("Once you know what it is you want to be true, instinct is a very useful device for enabling you to know that it is")
[11:23:13] DEA7TH: has joined #RubyOnRails
[11:23:25] netzfisch: has joined #RubyOnRails
[11:23:28] sanjayu: has joined #RubyOnRails
[11:23:49] annlewis: has joined #RubyOnRails
[11:24:37] bronson: has joined #RubyOnRails
[11:27:12] Liothen: has joined #RubyOnRails
[11:28:21] w0rd-driven: has joined #RubyOnRails
[11:29:17] arup_r: when you have a ActionController::Parameters object and you want to get all keys except say the key "email" .. what method to use ?
[11:29:30] arup_r: I tried #except it didn't work
[11:30:26] arup_r: ok except method worked.. nvm
[11:32:41] dionysus69: has joined #RubyOnRails
[11:34:36] pjammer: has joined #RubyOnRails
[11:36:21] nya: has joined #RubyOnRails
[11:42:29] jenrzzz: has joined #RubyOnRails
[11:44:30] Axy: has joined #RubyOnRails
[11:44:30] Axy: has joined #RubyOnRails
[11:47:04] jhass: tbuehlmann: fun fact: that was basically my first suggestion
[11:48:52] w0rd-driven: has joined #RubyOnRails
[11:49:01] cih: has joined #RubyOnRails
[11:50:03] workmad3: has joined #RubyOnRails
[11:52:50] Guest11: has joined #RubyOnRails
[11:53:54] Cervajz: has joined #RubyOnRails
[11:55:09] bonhoeffer: curious if anyone has figured out to how to speed up rails in development . . . i have to wait so long for reloads
[11:55:21] bonhoeffer: curious for any tricks ??? run in production locally?
[11:55:31] bonhoeffer: pre-compile assets when doing back-end work?
[11:58:05] digitalknk: has joined #RubyOnRails
[11:59:10] Uptime: has joined #RubyOnRails
[11:59:17] jenrzzz: has joined #RubyOnRails
[12:00:50] qejk: has joined #RubyOnRails
[12:01:22] dionysus69: has joined #RubyOnRails
[12:02:25] eggoez: has joined #RubyOnRails
[12:03:06] arup_r: bonhoeffer: Increase your RAM and get an SSD
[12:03:51] sevenseacat: keep your ruby and rails up to date
[12:04:08] arup_r: I do .. but still slow my machine :(
[12:05:56] chouhoulis: has joined #RubyOnRails
[12:06:24] xcesariox: has joined #RubyOnRails
[12:07:23] njero: has joined #RubyOnRails
[12:08:46] Me_Engine: has joined #RubyOnRails
[12:13:26] arup_r: I need some refactoring tips: context, I am using InvitationController to invite users to onboard in our system. That's fine. Now, we do soft delete to our users. a soft delted user can be restored again, and I am using in this case the same form, which I use to create. all works. But the code looks very bad, and how can I improve it ?
[12:13:35] arup_r: https://gist.github.com/aruprakshit/81bb838e64fe547c6fb1
[12:23:01] srinidhi: has joined #RubyOnRails
[12:24:37] annlewis: has joined #RubyOnRails
[12:25:35] bronson: has joined #RubyOnRails
[12:26:14] baegle: has joined #RubyOnRails
[12:27:01] frzn: has joined #RubyOnRails
[12:27:01] frzn: has joined #RubyOnRails
[12:27:14] DmitryBochkarev: has joined #RubyOnRails
[12:31:11] DmitryBochkarev: has joined #RubyOnRails
[12:32:02] broman: has joined #RubyOnRails
[12:34:09] sonOfRa: has joined #RubyOnRails
[12:34:49] pontiki: has joined #RubyOnRails
[12:37:58] arBmind: has joined #RubyOnRails
[12:39:54] DmitryBochkarev: has joined #RubyOnRails
[12:40:37] bonhoeffer: has joined #RubyOnRails
[12:40:44] DEA7TH: Is it acceptable to populate a DB with mock data with my own script at lib/tasks/db.rake written in Ruby? I already did that (took 240 loc) and it seems quite okay actually, but there are these data generator tools...
[12:41:54] DEA7TH: I have like 12-15 tables in my DB and a lot of them have strict requirements about their contents.
[12:52:37] yottanami: I want to create documentation for my API. which solution do you recommend?
[12:54:40] stannard: has joined #RubyOnRails
[12:55:23] Me_Engine: has left #RubyOnRails: ("Leaving")
[12:56:42] G: has joined #RubyOnRails
[12:58:59] mostlybadfly: has joined #RubyOnRails
[13:06:39] apg: has joined #RubyOnRails
[13:07:03] chouhoulis: has joined #RubyOnRails
[13:08:09] njero: has joined #RubyOnRails
[13:10:32] DEA7TH: has joined #RubyOnRails
[13:10:37] bitkiller: has joined #RubyOnRails
[13:13:34] bonhoeffer: has joined #RubyOnRails
[13:13:54] mosez: has joined #RubyOnRails
[13:14:49] pontiki: has joined #RubyOnRails
[13:15:57] rikkipitt: has joined #RubyOnRails
[13:17:48] reeve_: has joined #RubyOnRails
[13:18:30] xcv_: has joined #RubyOnRails
[13:21:40] DmitryBochkarev: has joined #RubyOnRails
[13:23:10] davidheward: has joined #RubyOnRails
[13:25:19] annlewis: has joined #RubyOnRails
[13:26:37] bronson: has joined #RubyOnRails
[13:34:13] pjammer: has joined #RubyOnRails
[13:35:23] nathanjo: has joined #RubyOnRails
[13:38:14] workmad3: has joined #RubyOnRails
[13:39:00] sankaber: has joined #RubyOnRails
[13:39:38] Pazician: has joined #RubyOnRails
[13:39:38] Pazician: has joined #RubyOnRails
[13:40:16] sdwrage: has joined #RubyOnRails
[13:41:53] deavid: has joined #RubyOnRails
[13:42:52] shinnya: has joined #RubyOnRails
[13:43:27] mary5030: has joined #RubyOnRails
[13:43:33] youngbaks: has joined #RubyOnRails
[13:45:28] havenwood: has joined #RubyOnRails
[13:47:17] chipotle: has joined #RubyOnRails
[13:48:59] workmad3: has joined #RubyOnRails
[13:49:42] DEA7TH: has joined #RubyOnRails
[13:52:17] chipotle: anybody here use foundation? is it good? how does it compare with twitter bootstrap
[13:52:42] chipotle: any other front end frameworks should i check out
[13:55:12] DEA7TH: Is there an up to date alternative to the populator gem?
[13:58:50] chipotle: looks like foundation is trying to sell stuff, i wonder if they will make the app server cost money sometime? that is worrisome
[13:59:33] sevenseacat: app server? zurb foundation is a css framework, no?
[13:59:45] sarink: has joined #RubyOnRails
[14:00:10] mary5030: has joined #RubyOnRails
[14:00:49] chipotle: sevenseacat: erm what goes in front of the webserver (nginx popular)
[14:00:50] atomical: has joined #RubyOnRails
[14:01:27] sevenseacat: hmm, i wonder how that compares with twitter bootstrap then... lets try 100% unrelated
[14:02:40] aruntomar: has joined #RubyOnRails
[14:04:25] chipotle: sevenseacat: why the sarcasm. i live on the west side by columbia. it took me 15 mins in a car to get there
[14:05:30] chipotle: it takes me 10 mins to walk there from home
[14:05:51] sevenseacat: what does that have to do with *anything*?
[14:06:08] benhuda: has joined #RubyOnRails
[14:06:48] chipotle: what is your problem
[14:07:28] srinidhi: has joined #RubyOnRails
[14:07:38] pontiki: i like bootstrap better than foundation
[14:07:45] ChanServ: +o sevenseacat
[14:07:49] pontiki: i've also looked at semantic-ui
[14:07:50] chouhoulis: has joined #RubyOnRails
[14:08:36] sevenseacat: chipotle: i suggest toning down the levels of stupid.
[14:08:38] pontiki: i also just wrote my own from scratch responsive site
[14:08:55] sdwrage: has joined #RubyOnRails
[14:08:57] Fire-Dragon-DoL: has joined #RubyOnRails
[14:09:02] pontiki: if you want more, take a look at stylus with jeet and rupture
[14:09:27] pontiki: i played with those during my last angular class
[14:09:37] krz: has joined #RubyOnRails
[14:11:07] cloudy9101: has joined #RubyOnRails
[14:11:38] cloudy9101: has left #RubyOnRails: ("WeeChat 1.3")
[14:11:58] chipotle: sevenseacat: i'm not stupid but i am a newbie. everyone says to ask questions when you have problems. i don't understand, i am just asking questions so i can launch a RoR app i made
[14:12:10] pontiki: while you're looking at frameworks, also read through smacss, which isn't a framework, but more a philosophy of writing frameworks.
[14:12:13] chipotle: i am trying to do decent at html and css
[14:12:15] kzsh: has joined #RubyOnRails
[14:12:21] chipotle: but most of all i want to focus on backend
[14:12:29] sevenseacat: chipotle: so why are you talking about app servers?
[14:12:36] sevenseacat: what does that have to do with html and css?
[14:12:57] sevenseacat: the conversation was fine until you derailed it with that, and then going on about columbia, whatever that means
[14:13:19] chipotle: i want to focus on backend but at the same time i want to learn html and css
[14:13:22] borodin: has joined #RubyOnRails
[14:14:13] youngbaks: has joined #RubyOnRails
[14:14:47] chipotle: i got the book css and the 2011 book that covers html and css and is quite popular
[14:14:59] chipotle: i thought i could learn both because html/css is very different than coding in ruby
[14:15:17] sevenseacat: I... can't follow this conversation.
[14:15:25] sevenseacat: I ask a question and chipotle goes off in yet another direction
[14:17:31] pontiki: i've only seen one actual question here
[14:17:44] pontiki: (from chipotle)
[14:18:26] pjammer: has joined #RubyOnRails
[14:18:34] njero: has joined #RubyOnRails
[14:20:02] njero: has joined #RubyOnRails
[14:20:13] DEA7TH: yeah it's a very weird derailing, if it's trolling then I like it
[14:22:26] DLSteve: has joined #RubyOnRails
[14:23:05] Pazician: has joined #RubyOnRails
[14:24:12] shevy: has left #RubyOnRails: ("I'll be back ... maybe")
[14:26:07] annlewis: has joined #RubyOnRails
[14:26:21] chills42: has joined #RubyOnRails
[14:27:08] DmitryBochkarev: has joined #RubyOnRails
[14:27:27] bronson: has joined #RubyOnRails
[14:28:51] swatts: has joined #RubyOnRails
[14:30:29] sangwoojoo: has joined #RubyOnRails
[14:32:16] stannard: has joined #RubyOnRails
[14:32:39] aruntomar: has joined #RubyOnRails
[14:33:17] Or1on: has joined #RubyOnRails
[14:34:42] sangwoojoo: has joined #RubyOnRails
[14:35:59] FailBit: 5ms in middleware how
[14:42:00] xcv: has joined #RubyOnRails
[14:46:41] aruntomar: has joined #RubyOnRails
[14:47:53] ddv: has joined #RubyOnRails
[14:52:15] ddv: has joined #RubyOnRails
[14:52:43] Pazician: has joined #RubyOnRails
[14:53:58] arup_r: has joined #RubyOnRails
[15:00:27] Cervajz_: has joined #RubyOnRails
[15:00:35] sangwoojoo: has joined #RubyOnRails
[15:02:01] ddv: has joined #RubyOnRails
[15:05:21] concernedcitizen: has joined #RubyOnRails
[15:06:57] sarink: has joined #RubyOnRails
[15:07:45] moeabdol1: has joined #RubyOnRails
[15:08:33] chouhoulis: has joined #RubyOnRails
[15:11:03] mary5030: has joined #RubyOnRails
[15:20:01] ruurd: has joined #RubyOnRails
[15:21:13] cantonic_: has joined #RubyOnRails
[15:23:47] youngbaks: has joined #RubyOnRails
[15:24:01] User458764: has joined #RubyOnRails
[15:26:52] annlewis: has joined #RubyOnRails
[15:28:23] habitullence: has joined #RubyOnRails
[15:28:34] bronson: has joined #RubyOnRails
[15:28:42] annlewis_: has joined #RubyOnRails
[15:33:10] lalalaaa: has joined #RubyOnRails
[15:33:18] eikood: has joined #RubyOnRails
[15:36:27] lalalaaa: has joined #RubyOnRails
[15:37:12] workmad3: has joined #RubyOnRails
[15:37:52] cih: has joined #RubyOnRails
[15:38:06] lalalaaa: Anybody ever gotten "This site may be hacked." on Google? Pretty sure my site isn't hacked.
[15:38:09] lalalaaa_: has joined #RubyOnRails
[15:39:19] sevenseacat: lalalaaa: I'd double-check that.
[15:39:27] ChanServ: -o sevenseacat
[15:39:48] Spami: has joined #RubyOnRails
[15:41:09] chipotle: lacrosse: did you see the webmaster tools report?
[15:41:27] lalalaaa: has joined #RubyOnRails
[15:41:47] chouhoulis: has joined #RubyOnRails
[15:43:08] lalalaaa_: has joined #RubyOnRails
[15:45:41] aruntomar: has joined #RubyOnRails
[15:46:27] lalalaaa: has joined #RubyOnRails
[15:47:53] workmad3: has joined #RubyOnRails
[15:49:21] Didac: has joined #RubyOnRails
[15:52:52] lalalaaa: has joined #RubyOnRails
[15:53:16] cajone: has left #RubyOnRails: ()
[15:54:35] jgt: has joined #RubyOnRails
[15:57:52] lalalaaa: has joined #RubyOnRails
[16:01:14] manfrin`laptop: has joined #RubyOnRails
[16:01:59] Jet4Fire: has joined #RubyOnRails
[16:02:05] Jet4Fire: hello guys!
[16:03:50] sarink: has joined #RubyOnRails
[16:04:44] lxsameer: has joined #RubyOnRails
[16:05:04] lalalaaa: has joined #RubyOnRails
[16:06:31] The_Phoenix: has joined #RubyOnRails
[16:08:38] moeabdol1: has joined #RubyOnRails
[16:09:32] mehwork: rails new myapp -d mysql then http://localhost:3000 says "Specified 'mysql2' for database adapter, but the gem is not loaded. Add `gem 'mysql2'` to your Gemfile (and ensure its version is at the minimum required by ActiveRecord)."
[16:10:35] mehwork: why doesn't rails add the right minimum version automatically to Gemfile to prevent this error? Instead it just puts gem, 'mysql2' with no version
[16:13:00] sadaf2606: has joined #RubyOnRails
[16:18:09] User458764: has joined #RubyOnRails
[16:18:41] xcesariox: has joined #RubyOnRails
[16:19:59] charliesome: has joined #RubyOnRails
[16:21:33] greengriminal: has joined #RubyOnRails
[16:23:30] tsujp: has joined #RubyOnRails
[16:23:59] bkulbida: has joined #RubyOnRails
[16:25:08] arup_r: after creating app .. you did bundle install ?
[16:26:52] xcesariox: has joined #RubyOnRails
[16:27:39] cajone: has joined #RubyOnRails
[16:27:42] mehwork: doesn't that happen automatically
[16:28:08] mehwork: just tried it and it still does the same thing
[16:28:55] mehwork: it's because it installs an outdated/incompatible version of mysql2 by default 0.4.1
[16:29:23] xcv: has joined #RubyOnRails
[16:29:24] bronson: has joined #RubyOnRails
[16:29:24] ss_much: has joined #RubyOnRails
[16:29:35] annlewis: has joined #RubyOnRails
[16:30:32] mehwork: actually not even outdated, 0.3.18 works if i add that and then bundle install
[16:30:56] mehwork: using rails 4.2.4
[16:31:59] baegle: has joined #RubyOnRails
[16:32:00] njero: has joined #RubyOnRails
[16:32:21] mehwork: it would be cool if bundler could figure out if a version was incompatible before installing stuff. I imagine they don't do that for the sake of speed though
[16:32:22] arup_r: mehwork: before 1 week or so.. I saw a similar discussions here.. universa1 was involved in that
[16:32:59] arup_r: They somehow figured out.. that latest version has some issues. and as far as I remember, the OP degraded it and it worked.
[16:34:09] arup_r: but you are right though.
[16:36:47] DoubleMalt: has joined #RubyOnRails
[16:37:57] cih: has joined #RubyOnRails
[16:38:04] bonhoeffer: has joined #RubyOnRails
[16:41:52] wldcordeiro: has joined #RubyOnRails
[16:43:52] cornerma1: has joined #RubyOnRails
[16:46:54] arup_r: mloy: means ?
[16:48:23] mloy: arup_r mt means mistell, I said that to the wrong chat. Meant to do it in an empty channel just to see if I was connected because my IRC client is being weird right now.
[16:48:26] rubyonrails553: has joined #RubyOnRails
[16:48:49] arup_r: haha ok :)
[16:49:09] benhuda: has joined #RubyOnRails
[16:49:17] Ekami: has joined #RubyOnRails
[16:52:31] chills42: has joined #RubyOnRails
[16:53:47] bmurt: has joined #RubyOnRails
[16:54:46] balla121: has joined #RubyOnRails
[16:56:10] hive-mind: has joined #RubyOnRails
[16:56:31] raphagodoi: has joined #RubyOnRails
[16:56:55] raphagodoi: has left #RubyOnRails: ()
[16:57:30] Fire-Dra_: has joined #RubyOnRails
[16:58:00] baweaver: has joined #RubyOnRails
[16:59:02] kies^: has joined #RubyOnRails
[16:59:52] naftilos76: has joined #RubyOnRails
[17:02:51] rubyonrailed: has joined #RubyOnRails
[17:03:42] VeryBewitching: has joined #RubyOnRails
[17:05:09] t_mmyv: has joined #RubyOnRails
[17:05:11] brendan-: has joined #RubyOnRails
[17:07:32] cajone: has joined #RubyOnRails
[17:08:58] Netun0: has joined #RubyOnRails
[17:17:19] simplyianm: has joined #RubyOnRails
[17:17:39] banister: has joined #RubyOnRails
[17:18:38] ashleyw: has joined #RubyOnRails
[17:18:42] oflannabhra: has joined #RubyOnRails
[17:19:49] njero: has joined #RubyOnRails
[17:26:21] stannard: has joined #RubyOnRails
[17:26:32] ramfjord: has joined #RubyOnRails
[17:30:12] annlewis: has joined #RubyOnRails
[17:30:21] bronson: has joined #RubyOnRails
[17:34:24] Netun0: has joined #RubyOnRails
[17:36:08] workmad3: has joined #RubyOnRails
[17:36:18] stamina: has joined #RubyOnRails
[17:36:46] ruurd: has joined #RubyOnRails
[17:37:46] ashleyw: has joined #RubyOnRails
[17:38:04] Grundell: has joined #RubyOnRails
[17:38:46] smathy: has joined #RubyOnRails
[17:38:46] DLSteve: has joined #RubyOnRails
[17:39:54] Pazician: has joined #RubyOnRails
[17:41:08] smathy_: has joined #RubyOnRails
[17:43:07] yaymukund: has joined #RubyOnRails
[17:43:10] sarink: has joined #RubyOnRails
[17:44:56] ascarter: has joined #RubyOnRails
[17:47:48] lalalaaa: has joined #RubyOnRails
[17:49:04] lalalaaa: Setting up https:// instead of http:// has nothing to do with Rails right? It should all be part of ones Nginx configuration?
[17:53:14] VeryBewitching: lalalaaa: I believe so lalalaaa, or Apache if that's what you're using.
[17:54:02] VeryBewitching: has joined #RubyOnRails
[17:54:20] VeryBewitching: That was weird.
[17:54:47] lalalaaa: Thanks VeryBewitching
[17:54:56] lalalaaa: Yeah Freenode has been disconnecting me all day
[17:55:14] VeryBewitching: Konversation crashed actually, not sure why.
[17:55:57] lalalaaa: has joined #RubyOnRails
[17:56:56] moeabdol1: has joined #RubyOnRails
[18:02:11] lalalaaa: has joined #RubyOnRails
[18:06:14] Netun0: has joined #RubyOnRails
[18:06:38] Coldblackice_: has joined #RubyOnRails
[18:06:54] Or1on: has joined #RubyOnRails
[18:08:21] lalalaaa: has joined #RubyOnRails
[18:10:18] pontiki: has joined #RubyOnRails
[18:10:22] CanTonic: has joined #RubyOnRails
[18:10:25] mehwork: are there any good conventions for not having to type 'bin/cmd' (bin/rails, bin/rake, etc) all the time? But NOT putting a project's bin/ dir in PATH?
[18:10:57] tenderlove: has joined #RubyOnRails
[18:11:07] mehwork: i'm using rbenv, so i guess i can use that but not sure if it's bad or not to do that
[18:11:58] idd2d: has joined #RubyOnRails
[18:12:52] CanTonic: has joined #RubyOnRails
[18:13:20] lalalaaa: has joined #RubyOnRails
[18:15:27] toretore: has joined #RubyOnRails
[18:15:44] simplyianm: has joined #RubyOnRails
[18:15:51] DLSteve: has joined #RubyOnRails
[18:16:49] waseem_: mehwork: Doesn't bundle exec cmd work for you?
[18:17:11] mehwork: that's longer though
[18:18:08] VeryBewitching: I've never encountered a scenario where I had to relatively specify the path to the binstubs
[18:18:17] VeryBewitching: Which platform are you on mehwork?
[18:20:52] simplyianm: has joined #RubyOnRails
[18:20:57] 7JTAASJPY: has joined #RubyOnRails
[18:21:00] erichu: has joined #RubyOnRails
[18:22:21] disl: has joined #RubyOnRails
[18:22:59] mozzarella: has joined #RubyOnRails
[18:26:18] bruce_pom: has joined #RubyOnRails
[18:28:23] sonofdirt: has joined #RubyOnRails
[18:28:39] michael_mbp: has joined #RubyOnRails
[18:30:12] youngbaks: has joined #RubyOnRails
[18:30:58] annlewis: has joined #RubyOnRails
[18:31:22] bronson: has joined #RubyOnRails
[18:31:40] yfeldblum: has joined #RubyOnRails
[18:32:26] jmallen: has joined #RubyOnRails
[18:33:15] thejamespinto: mehwork: gem list
[18:33:30] jessemcgilallen: has joined #RubyOnRails
[18:39:37] aruntomar_: has joined #RubyOnRails
[18:41:01] jgt: has joined #RubyOnRails
[18:41:32] jsrn_: has joined #RubyOnRails
[18:41:48] cac: has joined #RubyOnRails
[18:41:53] mehwork: VeryBewitching: osx
[18:42:55] VeryBewitching: mehwork: Ah, can't help you there. On Kubuntu myself.
[18:43:08] moeabdol1: has joined #RubyOnRails
[18:43:10] arup_r: I am on SUSE
[18:43:14] mehwork: which rails says ~/.rbenv/shims/rails. But even tutorials say to use bin/rails
[18:44:45] ariedler: has joined #RubyOnRails
[18:44:56] mehwork: regardless of platform, http://guides.rubyonrails.org/getting_started.html
[18:45:27] Miron_: has joined #RubyOnRails
[18:45:29] lalalaaa: Why aren't any of you on OpenBSD?
[18:45:42] mehwork: and even http://localhost:3000/ says to use bin/rails
[18:46:51] quazimodo: has joined #RubyOnRails
[18:47:24] Pazician: has joined #RubyOnRails
[18:49:45] mehwork: this says you should always type bin/whatever http://notes.jerzygangi.com/what-is-the-bin-director-in-a-ruby-on-rails-project/
[18:50:02] mehwork: i guess it's just a rails4 thing
[18:52:34] dnewkerk: has joined #RubyOnRails
[18:53:12] thejamespinto: arup_r: I've always wanted to use SUSE
[18:53:27] thejamespinto: never did though, don't have time :(
[18:53:30] VeryBewitching: I used to run SuSE
[18:53:39] VeryBewitching: But they mess with KDE too much for my liking
[18:53:56] thejamespinto: I did give Arch a try for a while
[18:53:58] VeryBewitching: Kubuntu or ArchLinux are both excellent KDE purist
[18:54:00] arup_r: thejamespinto: I wouldn't come out of it now.. I am happy to sit with it
[18:54:04] thejamespinto: but I didn't like pacman :(
[18:54:35] VeryBewitching: thejamespinto: Amen. The Debian package manager is why I'm on Kubuntu. I can't abide by RPM anymore.
[18:54:47] arup_r: well.. in future I wouldn't use it anymore.. promise!
[18:55:06] thejamespinto: I used Kubuntu for a while, then I got a new computer and totally ignored it for like 3 months, when I turned it on I looked at KDE and I felt like I had found a fossil
[18:55:22] ruurd: has joined #RubyOnRails
[18:56:06] thejamespinto: I often have a very pleasant experience when I'm using XFCE for either Debian or Ubuntu
[18:56:42] giantoctopus: has joined #RubyOnRails
[18:58:35] jessemcgilallen: has joined #RubyOnRails
[18:59:13] VeryBewitching: thejamespinto: https://dl.dropboxusercontent.com/u/1422687/kubuntu_papirus_dark.png for dark and https://dl.dropboxusercontent.com/u/1422687/breeze_light.png for light
[18:59:17] sonofdirt: has joined #RubyOnRails
[18:59:33] VeryBewitching: Plasma 5 is a much different experience than 4 imo
[19:00:03] thejamespinto: XFCE makes me feel like I'm on win95/98, when your OS was focused on having a simple organized interface. Now most OS focus on giving you a "responsive experience", (and so do most websites... sigh) God damn it! It's my personal computer, not a dog!
[19:02:28] thejamespinto: It's main focus should be on opening apps, it's not a TV, it's not a jukebox, it's not a Photo & Video gallery to share my important moments with my Family & Friends, it's not a personalized phone to save me clicks when I'm TWD. It's my personal computer! It's the means to open apps!
[19:02:38] lalalaaa: VeryBewitching: the debian package manager IIRC was inspired by BSD
[19:03:11] lalalaaa: Choose OpenBSD for your Unix needs. OpenBSD -- the world's simplest and most secure Unix-like OS. Creator of the world's most used SSH implementation OpenSSH, the world's most elegant firewall PF, the world's most elegant mail server OpenSMTPD, the OpenSSL rewrite LibreSSL, and the NTP rewrite OpenNTPD. OpenBSD -- the cleanest kernel, the cleanest userland and the cleanest configuration syntax.
[19:03:32] thejamespinto: jeez it felt good to let it out, I've been having that hanging on my throat since I first used Windows ME
[19:04:55] otherj: has joined #RubyOnRails
[19:07:29] arup_r: it's not a TV, it's not a jukebox ............ hahahahaaaaaaaaaaaaa
[19:07:53] arup_r: I used my laptop for as a TV too :)
[19:07:59] arup_r: thejamespinto: ^^
[19:10:16] thejamespinto: arup_r: do you need to set it to AV to use it as a computer, or is it the other way around?
[19:10:42] arup_r: nah.. i'm happy till now..
[19:10:53] arup_r: ACTION rolling on the floor.. 
[19:10:57] thejamespinto: good, at least we still have that
[19:11:28] t_mmyv_: has joined #RubyOnRails
[19:11:38] disl: has left #RubyOnRails: ()
[19:13:48] yaymukund: has joined #RubyOnRails
[19:15:08] annlewis: has joined #RubyOnRails
[19:16:10] disl: has joined #RubyOnRails
[19:17:13] disl: has left #RubyOnRails: ()
[19:17:18] disl: has joined #RubyOnRails
[19:19:32] FCser: has joined #RubyOnRails
[19:19:43] SteenJobs: has joined #RubyOnRails
[19:20:45] disl: has left #RubyOnRails: ()
[19:22:32] VeryBewitching: lalalaaa: Ports are great too. :D
[19:22:32] jgt: has joined #RubyOnRails
[19:23:07] aruntomar: has joined #RubyOnRails
[19:24:14] workmad3: has joined #RubyOnRails
[19:27:46] FailBit: https://paste.debian.net/plainh/f044a383
[19:27:48] FailBit: does this look about right
[19:28:59] lalalaaa: VeryBewitching: welcome back!
[19:29:37] mehwork: this is so confusing. even my rails book says rails 4 users should use the binstubs in bin/ and always shows using 'bin/rails' yet even though bin/bundle works they just say to use 'bundle install' not bin/bundle install
[19:29:55] FailBit: there is no need to use the binstubs
[19:30:06] mehwork: i thought rails community was all about consistency and convention. Just a heads up from a noob, it's confusing hehe
[19:30:34] mehwork: FailBit: what's the point of them then?
[19:30:55] FailBit: can't remember
[19:31:20] mehwork: they're supposed to make it so you don't have to type 'bundle exec'
[19:31:35] lalalaaa: I always put my app's bin/ in PATH
[19:31:52] lalalaaa: I thought everybody else did that too?
[19:32:02] rickmasta: has joined #RubyOnRails
[19:32:16] mehwork: lalalaaa: that's a bad idea according to the last paragraph of http://notes.jerzygangi.com/what-is-the-bin-director-in-a-ruby-on-rails-project/
[19:32:22] bronson: has joined #RubyOnRails
[19:32:26] FailBit: you don't need to add them to path to omit the 'bundle exec'
[19:32:39] FailBit: PATH: /home/derpibooru/.rbenv/shims:/home/derpibooru/.rbenv/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
[19:32:56] mehwork: FailBit: right, i'm using rbenv so i don't know why i wouldn't just use what that puts
[19:33:11] simplyianm: has joined #RubyOnRails
[19:33:11] lalalaaa: % cat .zshrc
[19:33:11] lalalaaa: myapp_home="/home/www/myapp"
[19:33:12] lalalaaa: path+=( ${myapp_home}/bin )
[19:33:14] FailBit: as long as your gem bins are accessible you don't need to use the binstubs
[19:33:22] mehwork: apparently i'm not the only one who is confused since everyoen seems to be doing things differently hehe
[19:33:24] lalalaaa: mehwork: Cool, thanks will read
[19:33:30] lrocksmashtime1: has joined #RubyOnRails
[19:33:32] FailBit: ah, so maybe they're for if you _don't_ have accessible gem bins
[19:34:57] mehwork: someone pull DHH out of his race car and have him explain it
[19:35:26] njero: has joined #RubyOnRails
[19:35:43] lrocksmashtime1: has left #RubyOnRails: ()
[19:36:15] lalalaaa: mehwork: I think doing path+= like that will ensure it appears first in your PATH load order
[19:37:48] lalalaaa: hence jerzygangi's argument no longer applies? idk though
[19:37:54] cac: has joined #RubyOnRails
[19:39:03] mehwork: messing with PATH is usually the wrong way to do things in my experience
[19:39:13] FailBit: not in mine
[19:39:17] FailBit: usually works great
[19:40:04] lalalaaa: yeah i dont mind it either :)
[19:41:04] mehwork: rbenv already automatically uses PATH so if you're already using rbenv i think it makes sense to just install gems to the same version of ruby your rails is expecting
[19:41:32] mehwork: i could be wrong
[19:42:02] mary5030: has joined #RubyOnRails
[19:42:08] mehwork: https://github.com/sstephenson/rbenv/wiki/Understanding-binstubs
[19:42:24] Radar: GOOD MORNING
[19:42:43] FailBit: how are you this fine afternoon
[19:42:44] lalalaaa: last i checked wasn't everyone in favor of dropping rbenv / rvm in favor of ruby-install?
[19:42:56] lalalaaa: radaaaaaaaaar my man !!
[19:43:35] mehwork: https://github.com/sstephenson/rbenv/wiki/Understanding-binstubs#adding-project-specific-binstubs-to-path
[19:43:38] stannard: has joined #RubyOnRails
[19:44:04] Radar: doing wel :)
[19:44:07] Radar: lalalaaa: yes
[19:44:13] Spami: has joined #RubyOnRails
[19:44:41] disl: has joined #RubyOnRails
[19:44:48] youngbaks: has joined #RubyOnRails
[19:45:41] lalalaaa: well there ya go mehwork
[19:47:11] mehwork: there needs to be an acronym like If It Works Use It IIWUI or If it's Working It's Fine IWIF
[19:47:18] FailBit: how do I rescue from ActionController::UnknownFormat
[19:47:29] mehwork: i guess that's TMTOWTDI
[19:47:40] FailBit: actually wait what
[19:48:01] FailBit: please what the fuck
[19:48:09] FailBit: https://i.imgur.com/tYC8hc6.png
[19:48:22] hahuang61: has joined #RubyOnRails
[19:49:46] lalalaaa: % rake sitemap:refresh
[19:49:55] lalalaaa: Sitemap stats: 1 links / 1 sitemaps / 0m00s
[19:50:22] xcv_: has joined #RubyOnRails
[19:50:57] idd2d: has joined #RubyOnRails
[19:52:47] Ekami__: has joined #RubyOnRails
[19:53:55] Leef_: has joined #RubyOnRails
[19:55:29] disl_: has joined #RubyOnRails
[19:56:43] cschneid_: has joined #RubyOnRails
[19:57:36] psk17_: has joined #RubyOnRails
[19:57:49] lalalaaa: Trying to switch to HTTPS. Used https://www.digitalocean.com/community/tutorials/how-to-create-an-ssl-certificate-on-nginx-for-ubuntu-14-04. Now turns out I have to buy a SSL certificate. Is there no way around that?
[19:57:49] creature: has joined #RubyOnRails
[19:57:50] creature: has joined #RubyOnRails
[19:58:04] lalalaaa: * an SSL certificate
[19:58:38] lalalaaa: nvm got an answer in #nginx
[19:58:42] FailBit: you can get one for free from WoSign
[19:58:46] FailBit: or from StartSSL
[19:59:57] lalalaaa: really? wow
[20:00:16] FailBit: I like WoSign's process a bit more
[20:00:38] pwnd_nsfw: has joined #RubyOnRails
[20:01:44] weaksauce: FailBit do they charge for revocation too?
[20:01:59] jtthedev: has joined #RubyOnRails
[20:02:05] FailBit: not sure, never had to revoke a cert before
[20:02:11] lalalaaa: looking at https://news.ycombinator.com/item?id=8982013 regarding wosign
[20:02:35] bronson: has joined #RubyOnRails
[20:03:50] FailBit: I didn't get a SHA-1 certificate when I applied.
[20:04:31] lalalaaa: guys in #nginx say wait for https://letsencrypt.org/?
[20:04:41] FailBit: can you wait?>
[20:04:47] FailBit: if you can, go for that
[20:04:51] FailBit: if not, wosign will do the job
[20:04:55] mary5030: has joined #RubyOnRails
[20:05:11] lalalaaa: lol no i dont wanna wait
[20:05:13] lalalaaa: thanks FailBit :)
[20:05:20] gambl0re: are companies hiring rails devs only to maintain their already exisiting code?
[20:05:31] FailBit: gambl0re, obviously not
[20:06:35] FailBit: I'm so frustrated that I want to punch something
[20:07:37] lalalaaa: why whats wrong
[20:07:57] FailBit: dealing with a site full of morons and fuckwits makes you want to hit things
[20:08:38] lalalaaa: yeah i can understand that
[20:10:18] alexcid: has joined #RubyOnRails
[20:10:55] willardg: has joined #RubyOnRails
[20:12:09] SteenJobs: has joined #RubyOnRails
[20:18:50] shinnya: has joined #RubyOnRails
[20:27:35] lalalaaa: Shouldn't https://github.com/kjvarga/sitemap_generator automatically create a sitemap based on routes.rb? Looks like I have to manually add stuff to config/sitemap.rb..
[20:29:16] Radar: Rails integration provides access to the Rails route helpers within your sitemap config file and automatically makes the rake tasks available to you
[20:29:20] ruurd: has joined #RubyOnRails
[20:29:27] Radar: doesn't look like it does it automatically
[20:29:30] yaymukund: has joined #RubyOnRails
[20:30:00] lalalaaa: cool cool, gotcha
[20:30:08] lalalaaa: thanks Radar
[20:30:14] dikaio: has joined #RubyOnRails
[20:34:47] arooni: has joined #RubyOnRails
[20:36:03] lalalaaa: wuuut.. the URL in `public/robots.txt` doesn't work.. http://www.robotstxt.org/wc/norobots.html
[20:36:51] lalalaaa: plus http://www.robotstxt.org/ is full of ads..
[20:41:32] Trynemjoel: has joined #RubyOnRails
[20:45:04] jun: has joined #RubyOnRails
[20:50:50] RandyT: has joined #RubyOnRails
[20:51:16] rickmasta: has joined #RubyOnRails
[20:52:09] gambl0re: the creators of devise and simple_form are the same..
[20:52:23] jessemcgilallen: has joined #RubyOnRails
[20:57:51] gambl0re: has joined #RubyOnRails
[20:59:14] rhizome: fans of better_errors, et al stay safe: http://arstechnica.com/security/2015/10/patreon-was-warned-of-serious-website-flaw-5-days-before-it-was-hacked/
[21:03:17] dionysus69: has joined #RubyOnRails
[21:03:18] ramirio: has joined #RubyOnRails
[21:06:30] jessemcgilallen: has joined #RubyOnRails
[21:08:21] greengriminal: has joined #RubyOnRails
[21:09:30] sdwrage: has joined #RubyOnRails
[21:10:05] ngscheurich: has joined #RubyOnRails
[21:12:18] workmad3: has joined #RubyOnRails
[21:12:40] Scient: well this is nice
[21:12:46] bruno-: has joined #RubyOnRails
[21:12:50] Scient: when I run my specs via bundle exec, it works fine
[21:12:52] lapide_viridi: has joined #RubyOnRails
[21:12:55] Scient: when i run them through spring, they fail
[21:13:09] lalalaaa: that damn spring
[21:13:23] bronson: has joined #RubyOnRails
[21:13:44] lalalaaa: spring isn't allowed anywhere near my Gemfile come production time
[21:14:09] Scient: and the failure is
[21:14:16] SteenJobs: has joined #RubyOnRails
[21:14:20] Scient: undefined method `respond_with' for #<RSpec::ExampleGroups::APIController::POSTDestroy::Failure:0x007f824f0eadc0>
[21:14:27] Scient: its like... a method is all of a sudden missing?
[21:14:35] Scient: i dont get it, what the fuck is up with that
[21:15:27] mary5030: has joined #RubyOnRails
[21:25:46] mehwork: is there a way to get gems to install in a local directory in the project, like how npm does with node_modules?
[21:26:30] baweaver: has joined #RubyOnRails
[21:26:55] lalalaaa: Exactly how do I access `robots.txt` and `sitemap.xml.gz` from `public/` with Nginx? This doesn't seem to work: https://gist.github.com/dt1973/2d2ba36f85db30addac8
[21:27:13] lalalaaa: mehwork: bundle install --path vendor/bundle i think
[21:27:38] FailBit: lalalaaa: well first of all
[21:27:40] FailBit: location ^~ /(robots.txt|sitemap.xml.gz)/ {
[21:27:48] FailBit: probably just remove that altogether
[21:27:54] FailBit: location / {
[21:27:56] FailBit: make that the last entry
[21:28:36] lalalaaa: FailBit: cool.. anything else?
[21:29:18] FailBit: as long as that's done it should be accessible from the root
[21:29:30] FailBit: ie http://myapp/robots.txt
[21:30:40] lalalaaa: doesnt seem to be.. my config was like that earlier actually.. i added that one location and moved / first based on http://stackoverflow.com/questions/22978503/rails-not-serving-my-robots-txt-and-sitemap-xml-gz-on-production
[21:30:45] RandyT: has joined #RubyOnRails
[21:31:12] FailBit: pretty sure that's not the issue
[21:31:42] njero: has joined #RubyOnRails
[21:31:58] FailBit: oh yeah I see it now
[21:32:01] FailBit: https://gist.github.com/liamwhite/73df2610eb660375822d
[21:32:07] FailBit: I have this in my nginx conf
[21:32:13] FailBit: that allows access to anything in public/
[21:33:02] mehwork: thanks lalalaaa
[21:35:26] CanTonic: has joined #RubyOnRails
[21:36:10] chills42: has joined #RubyOnRails
[21:38:57] sdwrage: has joined #RubyOnRails
[21:39:15] lalalaaa: FailBit: should i add txt and gz to that too?
[21:40:08] Grundell: has joined #RubyOnRails
[21:40:10] FailBit: although I'm not sure how else our site holds up..
[21:40:14] FailBit: https://derpibooru.org/humans.txt
[21:40:34] comm64x: has joined #RubyOnRails
[21:40:37] comm64x: I'm trying to figure out the best way to make a link_to. The page I'm linking to, i.e. the href should be href="/topics/subtopic/article". What I've got so far is <%= link_to 'Article Name', '/topics/subtopic/article' %>, but is there a better way to do this?
[21:41:39] C0L0R: has joined #RubyOnRails
[21:41:56] lalalaaa: FailBit: oh WORD :-) thank you!
[21:43:04] comm64x: I checked the docs and none of the examples given match. The only alternative I can think of is to restructure my entire site which I really dont want to do lol.
[21:43:52] lalalaaa: FailBit: nice site
[21:44:07] FailBit: I know right
[21:44:14] FailBit: it's got some of the finest art I've ever seen
[21:44:17] qejk: has joined #RubyOnRails
[21:44:57] Radar: comm64x: Where does it get the subtopic and article parts from?
[21:45:04] Radar: comm64x: you might be able to construct it using a routing helper
[21:45:09] ramfjord: has joined #RubyOnRails
[21:45:17] yaymukund: has joined #RubyOnRails
[21:45:26] rickmasta: has joined #RubyOnRails
[21:45:47] mloy: does anybody have any good emacs modes for rails dev to recommend?
[21:48:12] _djbkd: has joined #RubyOnRails
[21:48:56] comm64x: Radar: are you talking about using the url helpers in the model?
[21:49:30] wldcordeiro: has joined #RubyOnRails
[21:49:40] hnanon: has joined #RubyOnRails
[21:50:18] mloy: vi is cool too I have nothing against it, I just prefer emacs. I could write my own mode but just seeing what people use :)
[21:50:55] comm64x: routing helpers are new to me, but I googled it and it mentioned using them in your models
[21:51:17] _djbkd: has joined #RubyOnRails
[21:51:20] FailBit: https://derpibooru.org/changelog
[21:51:32] FailBit: comm64x: why would you need to use routing helpers in models?
[21:51:51] C0L0R: How do I access a json object that Instagram is sending via POST? I have tried params["_json"]["data"]["media_id"] but I couldn't access it. Here is a dump of the POST: http://pastie.org/private/h6zuwimzzmpydfbaf6td5a
[21:52:38] comm64x: idk thats what came up when I googled routing helpers...I've never heard of them before
[21:52:56] lalalaaa: FailBit: lol "#368, also fuck you mongodb"
[21:53:01] FailBit: comm64x: the routing helpers build paths to things
[21:53:10] lalalaaa: mloy: im waiting for neovim :)
[21:53:18] jenrzzz: has joined #RubyOnRails
[21:53:18] FailBit: so you would have e.g. images_path
[21:53:22] FailBit: or image_path(@image)
[21:53:35] FailBit: these are used in views
[21:53:40] FailBit: for making links
[21:54:00] FailBit: lalalaaa: for the record it didn't fix the timeout error
[21:55:13] mloy: lalalaaa: lol neovim seems cool. Idk, I just learned emacs when I was obsessed with learning Common Lisp and I'm past the point of no return.
[21:55:49] ruurd: has joined #RubyOnRails
[21:55:51] comm64x: ah okay, yeah thats what I found when looking through the docs but I couldnt find an example that would work with my site structure, for example image_path(@image) would give images/:id or something like that but I need something that will give topic/subtopic/:id. Topics is the controller, so would I have to have an action for every subtopic? that wouldnt be very RESTful though
[21:56:50] FailBit: it sounds more like you have a nested resource like topic/:subtopic_id/:id
[21:57:36] habitullence: has joined #RubyOnRails
[21:57:37] FailBit: in this context /topics/:topic/subtopic/:id
[21:57:47] FailBit: the path would be topic_subtopic_path(@topic, @subtopic)
[21:58:02] FailBit: you can find the path helper names by running `rake routes` btw
[21:59:15] comm64x: thats exactly what I was looking thanks so much
[21:59:49] FailBit: also I'm amused
[21:59:55] FailBit: the timeout is caused by the view being too goddamn slow
[22:00:01] FailBit: it can't render everything fast enough
[22:00:21] jiriki: has joined #RubyOnRails
[22:00:25] mehwork: is there a flag or anything like npm's --save like 'npm install foo --save', that installs a gem and writes it to the Gemfile at the same time?
[22:00:57] FailBit: not that I know of, but is it really that much of a pin
[22:01:08] mehwork: it is when you're used to npm
[22:01:20] mehwork: makes it easier to forget to add it to the Gemfile
[22:01:49] mehwork: looks like this can do it http://jaketrent.com/post/save-gem-to-gemfile-from-terminal/
[22:03:14] FailBit: lalalaaa: if that timeout didn't happen the request would take 65s and transfer 6 MB of HTML
[22:04:35] FailBit: but instead of waiting 65s, nginx cuts it off after 30s and renders this page https://derpibooru.org/error_50x.html
[22:08:04] bruce_pom: has joined #RubyOnRails
[22:08:52] mehwork: how do you make a binstub for rspec? I ran 'gem install rspec && bundle binstubs rspec' but it says 'Could not find gem 'rspec'
[22:08:53] lalalaaa: FailBit: haha
[22:09:59] lalalaaa: certainly the cutest error page i've ever seen
[22:10:12] lalalaaa: cant wait to fall asleep and dream of ponies
[22:10:34] EminenceHC: has joined #RubyOnRails
[22:10:55] arooni: seeking suggestions for a simple backend for a one product ecommerce site. i'm selling press passes to get into events/clubs/bars etc. requirements: user should be able to upload their photo & give me their full name / checkout + cart / pay with credit card (probably thru square or braintree) / ability to track or integrate with an affiliate platform. suggestions?
[22:10:57] mehwork: i guess i have to add it to my Gemfile first
[22:11:09] Pazician: has joined #RubyOnRails
[22:11:37] mehwork: i think i assumed too much about rails required no configuration that i assumed i wouldn't need to edit config files much. TIL
[22:11:59] stannard: has joined #RubyOnRails
[22:12:31] ZucchiniZe: has joined #RubyOnRails
[22:13:16] bonhoeffer: has joined #RubyOnRails
[22:14:30] bronson: has joined #RubyOnRails
[22:14:52] chancancode_: has joined #RubyOnRails
[22:15:11] zrl: has joined #RubyOnRails
[22:17:19] lipoqil: has joined #RubyOnRails
[22:18:08] baweaver: C0L0R: context: http://pastie.org/private/h6zuwimzzmpydfbaf6td5a - earlier question on accessing JSON
[22:18:18] baweaver: look at the _json key there
[22:18:25] baweaver: just grab that field
[22:18:32] baweaver: it's not a hash
[22:18:33] Netun0: has joined #RubyOnRails
[22:18:38] baweaver: it's an array
[22:19:29] C0L0R: so params[0]["time"] would == 1443904491?
[22:19:48] lalalaaa: FailBit: what forum system is this? https://derpibooru.org/forums
[22:20:03] FailBit: our own system
[22:20:18] baweaver: params['_json'][0]['time']
[22:20:19] FailBit: handwritten and custom designed to match the app style
[22:20:40] FailBit: if you try it's not very hard to write your own forum
[22:20:44] C0L0R: Ahhh. Fantastic. Thank you baweaver
[22:21:26] Netun0: has joined #RubyOnRails
[22:21:37] lalalaaa: damn, thats impressive
[22:22:12] baweaver: C0L0R: just drop the date in a REPL and play with it piece by piece
[22:22:17] FailBit: lalalaaa: 3 models
[22:22:21] FailBit: forum, topic, post
[22:22:23] baweaver: that's the easiest way to thing these things
[22:22:28] FailBit: forum has_many topics, topic has_many posts
[22:22:37] lalalaaa: FailBit: what do you think of https://github.com/radar/forem ?
[22:22:44] FailBit: the rest will follow when you build the views
[22:22:51] C0L0R: Will do baweaver
[22:22:57] mehwork: does it make sense to add gem, 'rspec' to Gemfile or just rspec-rails?
[22:23:00] FailBit: lalalaaa: that's basically what we wrote
[22:23:03] FailBit: at least UI wise
[22:23:26] mehwork: i assume since rspec is a dependency of rspec-rails, Gemfile.lock saying rspec would be enough explicitness?
[22:23:29] FailBit: except moderation stuff ties into the sitewide moderation tools
[22:23:33] FailBit: rather than being forum-specific
[22:23:58] FailBit: and believe me we need all the help we can get with moderation
[22:24:19] FailBit: without that 8ch would probably drop CP on the site or some shit
[22:24:21] lalalaaa: what sorta users do you have anyway
[22:24:34] FailBit: most of our users are nice, but not very bright
[22:24:38] lalalaaa: i'd imagine nothing but little girls but something tells me thats far from the truth
[22:24:45] FailBit: there's always the edgelords
[22:24:53] FailBit: uh, you're quite far off
[22:24:59] lalalaaa: the what lol
[22:25:16] FailBit: about 5% of the site's users are little girls
[22:25:36] FailBit: 75% are middle-aged men/women
[22:25:43] FailBit: and the rest are horny teenagers
[22:26:41] FailBit: ah but I always forget the 4chan/8ch asswipes that occasionally drop by and get themselves hellb&
[22:26:50] FailBit: but they're insignificant anyways
[22:27:18] willardg: has joined #RubyOnRails
[22:27:38] lalalaaa: never heard of 8ch
[22:28:00] lalalaaa: anyway must be fun managing such a large community
[22:28:16] lalalaaa: i just recently completed mine and have about.. 10 users.. any tips on how to grow would be much appreciated
[22:29:23] lalalaaa: right now im just walking down the street till my feet stank asking people to "please come check out my site"
[22:29:39] mary5030: has joined #RubyOnRails
[22:31:23] Mia: has joined #RubyOnRails
[22:31:57] nickenchuggets: ACTION signs up for cloudflare
[22:33:17] tenderlove: has joined #RubyOnRails
[22:33:58] mary5030: has joined #RubyOnRails
[22:34:10] Mia: has joined #RubyOnRails
[22:34:10] Mia: has joined #RubyOnRails
[22:34:35] jun: has joined #RubyOnRails
[22:38:41] Joufflu: has joined #RubyOnRails
[22:39:28] jun: has joined #RubyOnRails
[22:40:48] nickenchuggets: lol... cloudflare + heroku
[22:41:03] craysiii: has joined #RubyOnRails
[22:41:07] nickenchuggets: I wonder how heroku feels about cloudflare
[22:42:12] gambl0re: if i had a form inside a nested resource like /posts/comments i would create the form such as "form_for(@posts, @comments") ?
[22:43:17] gambl0re: and i'd do the same thing if i had 3 nested resources /nested1/nested2/neste3 i would do "form_for(@nested1, @nested2, @nested3) " ?
[22:43:21] gambl0re: is that correct?
[22:43:38] cih: has joined #RubyOnRails
[22:45:49] thejamespinto: gambl0re: I'm curious about one thing, where did you read that?
[22:46:33] gambl0re: no where thats just my assumption...
[22:46:40] thejamespinto: gambl0re: or hear it, either way
[22:46:49] gambl0re: im trying to understand how forms work inside nested routes
[22:46:55] FailBit: gambl0re: that is not correct
[22:46:57] thejamespinto: gambl0re: OK, where do you usually go when you want to learn Rails?
[22:47:06] thejamespinto: gambl0re: tell me your sources
[22:47:11] quintus: has joined #RubyOnRails
[22:47:12] FailBit: gambl0re: the correct form is form_for([@post, @comment])
[22:47:24] FailBit: gambl0re: form_for([@nested1, @nested2, @nested3])
[22:47:31] gambl0re: ok my syntax was wrong
[22:47:32] bkulbida: has joined #RubyOnRails
[22:47:38] gambl0re: but the general idea is correct
[22:47:38] joshsmith: has joined #RubyOnRails
[22:47:51] thejamespinto: FailBit: where did you learn that?
[22:48:30] FailBit: thejamespinto: I picked it up after jumping into the codebase I currently occupy
[22:48:33] thejamespinto: FailBit: please, teach me where you get such massively wonderful amounts of information, I want to drink from that fountain
[22:48:54] gambl0re: thejamespinto: where do you usually go when you want to learn Rails?
[22:48:57] quintus: Hi there. I'm trying to dynamically change the background image on only one static page. My <body> tag is in application.html.erb, and I'm trying to pass a variable @background_image from a method within my static pages controller through to the application layout.
[22:48:58] FailBit: thejamespinto: it takes experience to know
[22:49:01] gambl0re: thejamespinto: tell me your sources
[22:49:14] FailBit: if you are willing to >do it for free and work with art of small cartoon horses I can guide you
[22:49:38] quintus: Right now, the application layout can't see the @background_image contents, though I'm setting them in the static pages controller.
[22:49:41] Radar: quintus: Do you have a question or are you just telling us that's what you're doing?
[22:49:41] quintus: Any thoughts?
[22:49:46] Radar: quintus: !ncnh
[22:49:46] helpa: quintus: If you don't provide any code, it becomes really difficult for us to help you. Providing code to reproduce the problem increases your chances of getting great, accurate help immensely.
[22:50:30] dnewkerk_: has joined #RubyOnRails
[22:50:42] thejamespinto: gambl0re: don't echo my question, WHERE DO YOU GO TO LEARN RAILS?
[22:50:51] Axy: has joined #RubyOnRails
[22:51:00] bruno-: has joined #RubyOnRails
[22:51:03] Radar: thejamespinto: your caps got stuck bro
[22:51:14] quintus: Radar: I was describing in detail to avoid the XY problem. I want to pass information from a static pages controller to the application layout, but as of now, the application layout can't see it. The question would be: Why can't the application layout see it?
[22:51:15] thejamespinto: Radar: CAN'T TURN IT OFF, DON'T KNOW WHAT TO DO
[22:51:19] FailBit: thejamespinto: you don't go to learn rails
[22:51:20] quintus: I'll compile a code sample for you
[22:51:21] Radar: gambl0re: http://ryanbigg.com/2012/03/polymorphic-routes/
[22:51:23] FailBit: you learn rails as you go
[22:51:37] gambl0re: radar your aussie?
[22:51:50] thejamespinto: FailBit: gotcha
[22:52:07] FailBit: thejamespinto: it may help to write something in ruby first
[22:52:11] FailBit: like, a compiler
[22:52:17] thejamespinto: gambl0re: here's the information you are looking for, use that website, there not a single thing of Rails that's not described in it. http://guides.rubyonrails.org/form_helpers.html#nested-forms
[22:52:22] Radar: gambl0re: yes
[22:52:28] FailBit: (not a complicated one! just a simple one that generates a parse tree from some simple grammar)
[22:54:57] quintus: Radar: http://sprunge.us/fgLQ
[22:55:01] gambl0re: good info on that site...
[22:55:33] Radar: quintus: you should be using <%= @background_image %>. <% only evaluates code, it doesn't output the result to the template
[22:56:07] bonhoeffer: has joined #RubyOnRails
[22:58:22] quintus: I took a month-long break from web development for travel and look what happens
[22:58:33] quintus: I'm surprised I didn't run into syntax issues sooner
[22:58:39] quintus: I lasted about six hours
[22:59:03] htmldrum: has joined #RubyOnRails
[22:59:55] darrencauthon: has joined #RubyOnRails
[23:00:26] workmad3: has joined #RubyOnRails
[23:02:15] sanjayu: has joined #RubyOnRails
[23:02:33] FailBit: http://www.computerworld.com/article/2490996/microsoft-windows/microsoft-slashes-ie-support--sets--huge--edict-for-jan--2016.html
[23:02:37] FailBit: EVERYONE PARTY
[23:03:18] OnkelTem: has joined #RubyOnRails
[23:05:37] FailBit: http://www.computerworld.com/article/2988860/operating-systems/microsofts-browser-upgrade-decree-proves-disastrous-for-ie.html
[23:05:53] FailBit: all of my yes
[23:07:51] bifflechip: has joined #RubyOnRails
[23:09:48] CanTonic: has joined #RubyOnRails
[23:13:46] bronson: has joined #RubyOnRails
[23:14:14] dopie: has joined #RubyOnRails
[23:14:20] benlieb: has joined #RubyOnRails
[23:15:56] Netun0: has joined #RubyOnRails
[23:18:29] ruurd: has joined #RubyOnRails
[23:19:19] mehwork: how come 'gem uninstall rspec' didn't uninstall a lot of the stuff that 'gem isntall rspec' installed? Docs, Gems, etc?
[23:20:16] Radar: mehwork: because it doesn't know which dependencies you want to uninstall
[23:21:06] mehwork: so i have to manually uninstall the dependencies it installed?
[23:21:28] CanTonic: has joined #RubyOnRails
[23:22:33] FailBit: the proper solution is to install gentoo
[23:24:03] mehwork: Radar: does this mean i should have installed rspec with bundler?
[23:26:32] mehwork: think i finally get the point of bundler
[23:28:37] ZucchiniZe: has joined #RubyOnRails
[23:31:07] yaymukund: has joined #RubyOnRails
[23:31:52] mehwork: i guess the point is to never manually run 'gem install' unless it's to install something that is outside the scope of your project. Thus a Gemfile is like package.json and not using bunlder is like npm install -g
[23:32:15] mehwork: hopefully this right because it's a lightbulb moment
[23:32:25] FailBit: well, kind of
[23:32:48] FailBit: for people that work on different projects, you don't have to use bundler
[23:33:16] mehwork: what do you mean?
[23:34:21] seank_: has joined #RubyOnRails
[23:34:55] Radar: FailBit: what do you mean?
[23:35:03] Radar: not using Bundler is ridiculous imo
[23:35:24] FailBit: maybe I should restate
[23:35:26] FailBit: some people don't use bundler
[23:35:39] FailBit: I don't think that it's a good idea but whatever
[23:37:36] mehwork: the thing that still confuses me is that even if i use bundler, if i switch to another project and were to 'bundle uninstall', and that project's Gemfile had 'rspec' then it would install rspec for all my projects right
[23:38:45] mehwork: so i guess that means if each project needs a different version of rspec, then i'd not run the global rspec, i'd run bin/rspec (after binstubbing) it
[23:38:55] Radar: mehwork: Bundler doesn't install the dependencies for the project into the project itself.
[23:39:05] mehwork: ok hopefully i have enough of this stuff learned that i can get on to learning rails and not just bundler all days, jeesh
[23:39:05] Radar: It just picks and chooses the RIGHT dependencies for the project from the global batch of dependencies
[23:39:32] mehwork: Radar: right but it only does that if you do 'bundle exec cmd' or bin/cmd
[23:39:40] FailBit: mehwork: you can have multiple versions of a gem installed
[23:39:54] FailBit: also it doesn't really matter if you use the binstubs or not..
[23:39:55] Radar: mehwork: Yeah, or Bundler.setup / Bundler.require in a file that's loaded in that Ruby process.
[23:40:16] FailBit: if you look in the local rakefile
[23:40:17] mehwork: now i have to look ingo those Bundler. commands, the quick-sand continues to suck me in
[23:40:20] FailBit: it automatically loads the rails env
[23:40:24] FailBit: mehwork: why?
[23:40:28] FailBit: just start using rails
[23:40:49] mehwork: it doesn't feel right to use any framework without understanding the package manager stuff first
[23:40:56] FailBit: okay but you don't really need to
[23:41:15] FailBit: probably the most you'll ever do with bundler is run 'bundle'
[23:41:23] FailBit: some lucky people get to run e.g. 'bundle uninstall'
[23:41:42] Axy: has joined #RubyOnRails
[23:41:51] Radar: There is no such command.
[23:42:01] FailBit: see that's how much I know about bundler
[23:42:04] Netun0: has joined #RubyOnRails
[23:42:06] FailBit: basically nothing
[23:42:36] lipoqil: has joined #RubyOnRails
[23:44:08] mehwork: is 'bundle' the same as 'bundle install'?
[23:44:44] mary5030: has joined #RubyOnRails
[23:44:46] FailBit: I think so
[23:45:23] xcv: has joined #RubyOnRails
[23:45:31] mehwork: it is, just tried it
[23:46:11] Netun0: has joined #RubyOnRails
[23:48:49] Netun0: has joined #RubyOnRails
[23:49:35] jun: has joined #RubyOnRails
[23:50:38] elway7777: has joined #RubyOnRails
[23:51:16] Ekami__: has joined #RubyOnRails
[23:55:31] benlieb: I have a question about this code in the rails guides: before_create do self.name = login.capitalize if name.blank? end
[23:55:52] benlieb: why is the first name self.name and the second name.blank? have no self? Is there a benefit here?
[23:56:10] Radar: otherwise it would be setting a local variable
[23:56:57] benlieb: Radar: ok, so this is only necessary when assignning
[23:57:05] mehwork: since there is no 'bundle uninstall' command that still means that i have to manually 'gem uninstall' each individual dependency right?
[23:57:12] Radar: why would you want to do that mehwork ?
[23:57:29] FailBit: you would probably want to purge all gems and start fresh
[23:58:09] mehwork: there may come a time when i don't need that dependency any more, or at least older versions
[23:58:31] Radar: And you have a 50GB disk that you want to save space on?
[23:58:32] mehwork: i know i can just delete it from the Gemfile, but then it's still around on disk including any commandline binaries
[23:58:44] mehwork: disk space adds up
[23:58:58] FailBit: df -h | grep home
[23:59:08] FailBit: /dev/sda5 1.7T 353G 1.3T 22% /home