« Back to channel list

#RubyOnRails - 31 August 2015

« Back 1 day Forward 1 day »
[00:01:00] Sylario: has joined #RubyOnRails
[00:01:28] smathy: nahtnam, when a module defines methods as `self.method_name` then you can't include or extend them. They're designed to be called on that module itself.
[00:01:45] annlewis: has joined #RubyOnRails
[00:02:01] nahtnam: smathy: Ah, kk. So ill have to call Steam::User....
[00:02:35] nahtnam: So there is no point in extending Steam::User
[00:02:38] atzorvas: https://github.com/bhaberer/steam-api#usage ..
[00:02:47] Aeyrix: Is there a railsbot privmsg equiv for without a prefix?
[00:02:51] Aeyrix: Adding another really useful command.
[00:02:59] Radar: Aeyrix: How do you mean?
[00:03:04] helpa: https://gist.github.com/996779
[00:03:14] Aeyrix: Wait, yeah, like that
[00:03:17] Aeyrix: no "Aeyrix: " prefix
[00:03:32] Radar: privmsg("message", "#rubyonrails")
[00:03:37] Aeyrix: oh that works? hot
[00:03:50] Radar: privmsg is prefix off by default
[00:03:52] hololeap: has joined #RubyOnRails
[00:03:57] Radar: It's only tips which have an optional prefix
[00:05:57] nya: has joined #RubyOnRails
[00:06:12] Aeyrix: https://github.com/Aeyrix/railsbot/blob/srsly-command/bot.rb#L67
[00:06:24] j_mcnally: has joined #RubyOnRails
[00:06:47] drale2k: has joined #RubyOnRails
[00:07:05] nahtnam: You have to restart your server after you make a change in your lib file?
[00:07:37] Radar: Aeyrix: I see.
[00:10:42] k776: has joined #RubyOnRails
[00:10:48] k776: has left #RubyOnRails: ()
[00:12:37] n00bDev: has joined #RubyOnRails
[00:12:48] sarink: has joined #RubyOnRails
[00:16:19] smathy: nahtnam, unless it's in your autoload_paths
[00:16:39] smathy: nahtnam, more: http://guides.rubyonrails.org/autoloading_and_reloading_constants.html#constant-reloading
[00:17:23] bruno-: has joined #RubyOnRails
[00:20:22] rubyonrails816: has joined #RubyOnRails
[00:21:04] Coldblackice: has joined #RubyOnRails
[00:22:19] christiandsg: has joined #RubyOnRails
[00:22:40] rubyonrails816: Can anyone point me to a working example of using JS in Rails?
[00:23:48] rubyonrails816: It's really frustrating..
[00:24:28] atzorvas: rubyonrails816: you should check that alone, your project is a huge mess, you only need a .html.erb file getting called and a .js file getting called too.
[00:24:49] atzorvas: rubyonrails816: by alone I mean isolated from the rest of your "desired components"
[00:25:02] rubyonrails816: @atzoras: Have you seen the code?
[00:26:29] Radar: rubyonrails816: Can you explain what you're trying to do? Explain it to someone who has never seen your code before.
[00:27:15] rubyonrails816: The code is very basic - it is just Devise example. I forked Daniel Kehoe's tutorial at https://github.com/nikolay12/rjs
[00:27:32] Ropeney: has joined #RubyOnRails
[00:27:49] rubyonrails816: @Radar: I am trying to add a simple JS check to verify that password = password_confirmation.
[00:27:57] Radar: rubyonrails816: ...
[00:28:05] rubyonrails816: I can't think of anything simpler than that
[00:28:08] Radar: You're off to an okay start. Where is this code?
[00:28:14] Radar: Where is the code in the application?
[00:28:25] rubyonrails816: @Radar: https://github.com/nikolay12/rjs
[00:28:43] atzorvas: rubyonrails816: why you need to check passwords and sh1t? just display an alert/print to console, isn't that a simple example?
[00:28:45] Radar: Is it "piss off Radar" day and I just don't know about it? because damn son
[00:29:09] atzorvas: rubyonrails816: do you need a devise example blabla for that basic task?
[00:29:20] Radar: rubyonrails816: Where is this JavaScript code in the application?
[00:29:44] atzorvas: rubyonrails816: I forked the repo and it cried for a MANDRILL_USERNAME
[00:29:52] atzorvas: Radar: supposedly here, https://github.com/nikolay12/rjs/commit/89f3e56941cdbd1563d8b7f0d15edc0a90b9553b
[00:30:15] rubyonrails816: @Radar: Do you have an idea where the JS code sits in a rails app?
[00:30:16] Radar: Thank you atzorvas for being helpful.
[00:30:31] Radar: rubyonrails816: Uh, yes. I've written 3 books on Rails. I think I know where they sit.
[00:30:34] Radar: I want YOU to show me.
[00:30:52] atzorvas: http://www.imdb.com/title/tt1740707/
[00:31:25] rubyonrails816: @Radar: Sorry. Didn't know you are being serious. OK, the js is just where it should be in the assets/javascript
[00:31:32] Radar: rubyonrails816: But which file in there?
[00:31:43] Radar: for my next trick: blood from stones
[00:32:12] baweaver: ACTION grabs popcorn
[00:32:12] rubyonrails816: @Radar; There is just one file there: https://github.com/nikolay12/rjs/blob/master/app/assets/javascripts/password-signup.js
[00:32:32] Radar: No, there are two files there.
[00:32:38] Radar: But thank you for giving me the answer I want.
[00:32:42] Radar: Now explain to us how it's not working./
[00:34:02] drale2k: has joined #RubyOnRails
[00:34:04] rubyonrails816: Thanks atzoras and Radar and apologies for having been edgy. I've written a lengthy SO post here: http://stackoverflow.com/questions/32301550/any-working-example-of-using-javascript-with-rails-4
[00:34:51] rubyonrails816: @Radar: Basically, I can't make the code verify that password != password_confirmation
[00:35:05] Radar: rubyonrails816: Where is "addEvent" supposed to come from?
[00:35:20] Radar: rubyonrails816: JavaScript console on your app shows me an "addEvent is not defined" error.
[00:35:28] Radar: That is why your JS is not working.
[00:35:47] Radar: Secondly, I don't know why you're not using jQuery's methods to find events.
[00:35:49] Radar: find elements*
[00:36:39] atzorvas: any-working-example-of-using-javascript-with-rails-4
[00:36:46] rubyonrails816: @Radar Thanks - you are right.
[00:37:05] jenrzzz: has joined #RubyOnRails
[00:37:26] Radar: Thirdly, your code is being executed before the page is loaded.
[00:38:11] Radar: https://gist.github.com/radar/bbe156540400dc284166
[00:38:16] Radar: That fixes most of the errors in the JS.
[00:38:23] Radar: The rest should be considered as homework.
[00:39:04] Radar: Lines of note are 4, 5 + 6, as well as 34 -> 38
[00:39:30] Radar: addEvent is a legacy JavaScript method.
[00:39:40] Radar: Best references to it I can find are from 2005.
[00:39:51] atzorvas: copy paste and own the world
[00:40:01] charliesome: has joined #RubyOnRails
[00:40:51] Radar: It's so old that it predates my JS knowledge; I had no idea such a function existed.
[00:40:51] craysiii: the best way to program is to copy paste
[00:40:56] usma: has joined #RubyOnRails
[00:41:00] Radar: craysiii: ok nahtnam calm down
[00:41:40] craysiii: i copy paste each individual character from a .pdf i wrote ;)
[00:41:54] uberjar: has joined #RubyOnRails
[00:42:47] Radar: rails g controller <name> --just-the-controller-pretty-please
[00:42:57] atzorvas: at least we now have a new definition for "an easy and simple example"
[00:43:11] Radar: atzorvas: yeah. Took a while to get there but we're there now
[00:44:54] richipargo: has joined #RubyOnRails
[00:45:33] redondo: has joined #RubyOnRails
[00:47:22] drale2k: has joined #RubyOnRails
[00:50:02] n1lo: has joined #RubyOnRails
[00:50:14] Axilla: has joined #RubyOnRails
[00:51:20] moeabdol: has joined #RubyOnRails
[00:51:43] sevenseacat: has joined #RubyOnRails
[00:55:55] charliesome: has joined #RubyOnRails
[00:55:57] nya: has joined #RubyOnRails
[00:59:11] sarink: has joined #RubyOnRails
[01:01:58] Radar: nm just joking
[01:02:10] northfurr: hartl chapter 8 is making my head spin D:
[01:02:30] annlewis: has joined #RubyOnRails
[01:02:31] darrencauthon: has joined #RubyOnRails
[01:02:35] pontiki: northfurr: take a break. review.
[01:02:36] craysiii: nahtnam did you get it working?
[01:03:01] x-light: has joined #RubyOnRails
[01:03:20] nahtnam: craysiii: sort of. It works but doesn't autoreload. Gonna try after finishing my hw
[01:03:44] mary5030: has joined #RubyOnRails
[01:03:59] jenrzzz: has joined #RubyOnRails
[01:04:04] nya: has joined #RubyOnRails
[01:04:17] pontiki: northfurr: you made it through the user sign up chapter okay?
[01:05:23] nyaa: has joined #RubyOnRails
[01:05:26] northfurr: pontiki: yeah, I didn???t feel like 7 was too bad. 8 feels like a bit of a mess I???m trying to sort through
[01:07:57] michael_mbp: has joined #RubyOnRails
[01:08:37] pontiki: northfurr: have you been working straight through it?
[01:09:22] jtdowney: has joined #RubyOnRails
[01:09:22] jtdowney: has joined #RubyOnRails
[01:13:34] mary5030: has joined #RubyOnRails
[01:14:13] northfurr: pontiki: yeah tried to knock it out in one sitting??? Gonna take a break like you said??? i need it lol
[01:14:17] mdxprograms: has joined #RubyOnRails
[01:14:57] pontiki: yeah, some resting time to let things you've just learned settle in
[01:16:22] Maletor: has joined #RubyOnRails
[01:16:48] charliesome: has joined #RubyOnRails
[01:17:54] n00bDev: has joined #RubyOnRails
[01:19:05] quazimodo: has joined #RubyOnRails
[01:21:51] messysaurus: has joined #RubyOnRails
[01:24:19] ur5us: has joined #RubyOnRails
[01:25:28] Swappticon: has joined #RubyOnRails
[01:26:37] unreal: has joined #RubyOnRails
[01:28:38] jher: has joined #RubyOnRails
[01:28:45] j_mcnally: has joined #RubyOnRails
[01:28:50] mary5030: has joined #RubyOnRails
[01:31:24] doopdapper: has joined #RubyOnRails
[01:31:42] mloy: has joined #RubyOnRails
[01:37:45] seank_: has joined #RubyOnRails
[01:38:40] wldcordeiro__: has joined #RubyOnRails
[01:38:40] Encapsulation: has joined #RubyOnRails
[01:39:34] sarink: has joined #RubyOnRails
[01:40:32] Cache_Money: has joined #RubyOnRails
[01:41:01] jeadre: has joined #RubyOnRails
[01:42:10] cgfbee: has joined #RubyOnRails
[01:43:11] rushed: has joined #RubyOnRails
[01:44:35] a1fa_: has joined #RubyOnRails
[01:46:22] nya: has joined #RubyOnRails
[01:47:46] maz-dev: has joined #RubyOnRails
[01:48:46] darrencauthon: has joined #RubyOnRails
[01:49:30] Cache_Money: has joined #RubyOnRails
[01:50:05] silverdust: has joined #RubyOnRails
[01:51:52] GPrime: has joined #RubyOnRails
[01:52:42] srinidhi: has joined #RubyOnRails
[01:58:57] Swappticon: has joined #RubyOnRails
[01:59:49] rakm: has joined #RubyOnRails
[02:00:26] frek818: has joined #RubyOnRails
[02:02:04] CaptainDusty: has joined #RubyOnRails
[02:02:56] chipotle_: has joined #RubyOnRails
[02:03:04] toertore: has joined #RubyOnRails
[02:03:14] annlewis: has joined #RubyOnRails
[02:04:23] rushed: has joined #RubyOnRails
[02:04:52] joshkovach: has joined #RubyOnRails
[02:06:20] quazimodo: has joined #RubyOnRails
[02:10:21] messysaurus: has joined #RubyOnRails
[02:11:13] jenrzzz: has joined #RubyOnRails
[02:11:43] erich: has joined #RubyOnRails
[02:14:48] umgrosscol: has joined #RubyOnRails
[02:15:25] charliesome: has joined #RubyOnRails
[02:18:06] bruno-: has joined #RubyOnRails
[02:20:15] larissa: has joined #RubyOnRails
[02:20:20] jenrzzz: has joined #RubyOnRails
[02:20:39] sparr: has joined #RubyOnRails
[02:29:20] seank_: has joined #RubyOnRails
[02:29:21] nya: has joined #RubyOnRails
[02:31:32] greengriminal: has joined #RubyOnRails
[02:36:20] jenrzzz_: has joined #RubyOnRails
[02:36:34] one_zero: has joined #RubyOnRails
[02:40:30] messysaurus: has joined #RubyOnRails
[02:41:27] mary5030: has joined #RubyOnRails
[02:43:43] hnanon: has joined #RubyOnRails
[02:48:41] hnanon: I'm having some trouble with nested resources.
[02:48:58] n00bDev: has joined #RubyOnRails
[02:49:21] hnanon: I have this set_customer method as before action on index:
[02:49:23] hnanon: @customer = Customer.find(params[:id])
[02:49:50] hnanon: In my view I have: <%= link_to 'Show', customer_orders_path(@customer) %>
[02:49:58] nyaa: has joined #RubyOnRails
[02:50:06] hnanon: I get the error: Couldn't find Customer with 'id'=
[02:50:21] sevenseacat: hnanon: !rule0
[02:50:21] helpa: hnanon: Show rather than tell. Explaining your problem with code, stacktraces or errors is always preferred to explaining it with just text. Show us what's happening, rather than telling us.
[02:50:29] hnanon: But my params show: {"customer_id"=>"26"}
[02:54:03] Cache_Money: has joined #RubyOnRails
[02:55:18] Tempesta: has joined #RubyOnRails
[02:56:15] craysiii: hnanon you probably need params[:customer_id], if i remember your routes correctly
[02:56:26] michael_mbp: has joined #RubyOnRails
[02:57:02] sevenseacat: so params[:id] is nil, and you're trying to look up a Customer by nil?
[02:57:08] rushed: has joined #RubyOnRails
[02:58:41] Tempesta: has joined #RubyOnRails
[02:58:54] jesterfraud: has joined #RubyOnRails
[02:59:50] robbyoconnor: has joined #RubyOnRails
[03:00:44] hnanon: I needed param[:customer_id].
[03:01:05] hnanon: Such a silly mistake.
[03:01:10] hnanon: Thanks you two.
[03:02:22] hnanon: So, I don't want customers to know how many other customers are subscribers...
[03:02:30] hnanon: The id gives that away.
[03:02:53] hnanon: Should I be concerned about that? Is there a rails way of avoiding that?
[03:03:00] hnanon: The customer id in the url.
[03:03:14] uris: has joined #RubyOnRails
[03:03:20] sevenseacat: you can use a different identifier instead of ID
[03:03:55] sevenseacat: if you have one
[03:04:00] annlewis: has joined #RubyOnRails
[03:04:12] baweaver: just make sure to add an index on it
[03:04:21] sevenseacat: its not something I'd be concerned about, because it doesnt give anything away except the current users ID
[03:04:25] hnanon: Only other unique identifier would be their email.
[03:05:28] hnanon: Could I just hide the /customers/25/... part of the url?
[03:05:32] sevenseacat: it doesnt give away how many there are, just what number they are
[03:06:01] sevenseacat: don't know enough about your app to say.
[03:06:35] hnanon: That's true, but early customers will know that there aren't many other customers...
[03:06:45] hnanon: I guess it's not that serious.
[03:07:20] sevenseacat: why are you showing their ID in the URL? is that for the currently logged in customer, or can customers change the ID and go manage other customers?
[03:07:36] hnanon: It's for the currently logged in customer.
[03:07:55] sevenseacat: so you dont need to show it at all
[03:08:00] sevenseacat: you know who the currently logged in customer is
[03:08:25] sevenseacat: via your authentication system
[03:09:51] braincrash: has joined #RubyOnRails
[03:10:04] hnanon: So, you're saying I shouldn't nest orders under customers, for example.
[03:10:20] sevenseacat: I didnt say anything about orders
[03:10:25] hnanon: It would be /orders/123 instead of customers/25/orders/123
[03:10:33] sevenseacat: that would make sense to me.
[03:11:09] sevenseacat: I would avoid putting more than one identifier in the URL unless necessary.
[03:11:25] hnanon: Yes, there's only one.
[03:11:36] hnanon: The identifier is the customer id.
[03:12:01] sevenseacat: customers/25/orders/123 has two.
[03:12:15] hnanon: I see what you mean.
[03:12:33] hnanon: But isn't that the Rails Way, anyway?
[03:13:14] hnanon: I was thinking along similar lines as you and someone here said it was a while back. They mentioned Basecamp as an example.
[03:13:32] sevenseacat: basecamp is different because a user can belong to multiple accounts
[03:13:46] hnanon: Ah, I see.
[03:14:40] sevenseacat: it could still work without it, but as a multi-tenanted application, it makes it much easier.
[03:15:29] hnanon: Ok. Thanks for the info.
[03:15:51] northfurr: has joined #RubyOnRails
[03:16:30] jgt2: has joined #RubyOnRails
[03:17:32] greengriminal: has joined #RubyOnRails
[03:18:19] poli: has joined #RubyOnRails
[03:21:01] safety_cut: has joined #RubyOnRails
[03:22:03] erich: has joined #RubyOnRails
[03:22:18] wldcordeiro__: has joined #RubyOnRails
[03:23:17] gambl0re: how do i reset a specific db?
[03:23:39] gambl0re: rake db:reset .. does that reset all db's?
[03:23:59] sevenseacat: probably. which db do you want to reset?
[03:23:59] helpa: Why don't you try it and find out for yourself?
[03:24:10] baweaver: (it doesn't)
[03:24:28] baweaver: it's dependent on your env
[03:24:34] sevenseacat: you should only be running that command around totally disposable data sets anyway
[03:24:40] baweaver: which is why you have to db:migrate RAILS_ENV=test
[03:24:55] sevenseacat: err, no you don't
[03:25:38] gambl0re: cause i dont want to do and fcuk everything up
[03:31:04] sevenseacat: aaaaaaaargh reform you drive me nuts why did I put you in this app
[03:31:13] doopdapper: has joined #RubyOnRails
[03:31:19] LateralOctober: has joined #RubyOnRails
[03:31:40] ebbflowgo: has joined #RubyOnRails
[03:31:48] Shidash: has joined #RubyOnRails
[03:32:18] Mendenhall: has joined #RubyOnRails
[03:34:22] quazimodo: has joined #RubyOnRails
[03:41:20] ecnalyr: has joined #RubyOnRails
[03:43:55] manfrin`laptop: has joined #RubyOnRails
[03:44:26] SteenJobs: has joined #RubyOnRails
[03:47:53] safety_cut: has joined #RubyOnRails
[03:49:42] gambl0re: when you update an attribute, for example post.update(title = "asdfasdf")
[03:49:47] gambl0re: it automatically saves...?
[03:49:52] gambl0re: no need for post.save
[03:49:56] sevenseacat: thats not valid syntax. but yes.
[03:50:13] sevenseacat: update is assign + save.
[03:52:25] mary5030: has joined #RubyOnRails
[03:54:42] nya: has joined #RubyOnRails
[03:55:07] srinidhi: has joined #RubyOnRails
[03:56:00] Cache_Money: Anyone implemented a forgot password functionality to an API? I have an endpoint where I can POST an email address which will send the User an email but unclear what I should do next...
[03:56:29] Lightsword: has joined #RubyOnRails
[03:58:31] Cache_Money: I was watching this RailsCast but it deals with a web app. He sends the link in the email to a view where the user can create a new password. Unsure how to accomplish this within my API
[03:58:33] Cache_Money: http://railscasts.com/episodes/274-remember-me-reset-password
[03:58:34] nyaa: has joined #RubyOnRails
[04:03:54] Cache_Money: Can't really find any good documenation/examples: http://stackoverflow.com/questions/17543565/api-design-for-lost-password
[04:04:48] annlewis: has joined #RubyOnRails
[04:05:20] Cache_Money: Should I just send a PasswordResetToken in an email and have the user copy it and send it back in another POST request (along with a `password` and `password_confirmation`) to another endpoint?
[04:05:25] srinidhi1: has joined #RubyOnRails
[04:05:42] rushed: has joined #RubyOnRails
[04:05:48] nogic: has joined #RubyOnRails
[04:06:57] mary5030: has joined #RubyOnRails
[04:07:35] Radar: why does your API use passwords?
[04:08:38] dopie: has joined #RubyOnRails
[04:08:44] Radar: Do you not have a front-end at all for this API?
[04:09:40] frek818: Why not use a simple get request. Seems that the token is sufficient for authenticating the user.
[04:09:40] Cache_Money: Radar: I use an email and password to authenticate the User, upon which I return auth_token for that session
[04:10:40] Radar: Cache_Money: Something would have to present the reset password form to the user
[04:11:04] frek818: is the email intended for be received by an automated system?
[04:11:41] Cache_Money: frek818: no, it's intended for the user to receive, to verify that they are the owner of the User account associated with that email
[04:11:51] nya: has joined #RubyOnRails
[04:12:32] Cache_Money: I'm trying to build an API and then consume it with a front-end framework (instead of a traditional Rails app). That's why I'm struggling with this piece
[04:12:38] melonstorm: has joined #RubyOnRails
[04:13:34] nyaa: has joined #RubyOnRails
[04:15:27] Radar: But the frontend framework has routeable areas, no?
[04:15:36] Radar: i.e. /reset_password/:token would display a form?
[04:15:43] Radar: And then you can submit that form to your API endpoint
[04:16:09] Cache_Money: Radar: it could but what if I had an Android/iOS app as well?
[04:16:18] poli: has joined #RubyOnRails
[04:16:22] Radar: Cache_Money: They would need to present their own forms.
[04:16:22] nya: has joined #RubyOnRails
[04:17:00] Cache_Money: Would the form I present in the email then depend on which client device the reset password originated from then?
[04:17:22] Radar: You don't present the form in the email!
[04:17:29] Swappticon: has joined #RubyOnRails
[04:17:31] Radar: The email contains a link that goes to your application. The application then presents the form.
[04:17:58] Cache_Money: how does the email link know which application to open?
[04:18:22] Radar: I assume iOS and Android have ways for you to be able to do that.
[04:18:28] Radar: I mean, Slack can do it.
[04:18:53] bruno-: has joined #RubyOnRails
[04:18:58] gambl0re: if you want to add a column using migration, you specifically have to use the word 'add' in the migration command. for example bin/rails generate migration AddPartNumberToProducts part_number:string
[04:19:11] moeabdol: has joined #RubyOnRails
[04:19:17] safety_c_: has joined #RubyOnRails
[04:19:29] gambl0re: same tihng when you want to remove a column, $ bin/rails generate migration RemovePartNumberFromProducts part_number:string
[04:19:43] Radar: gambl0re: Is there a question there or just the marks that indicate it?
[04:19:52] rushed: gambl0re: what the generators can do isn't a limit on what you can do
[04:19:58] Cache_Money: Radar: So, the OS probably sees slack.com/reset_password and check whether the Slack app is installed and then routes that link to the app instead of the website?
[04:20:05] joshkovach: has joined #RubyOnRails
[04:20:11] Radar: Cache_Money: !shrug
[04:20:11] helpa: Cache_Money: ¯\_(ツ)_/¯ Sorry, Radar is not able to help you any further as they do not know.
[04:20:17] Radar: Cache_Money: My guess it's a slack:// route or something like that.
[04:20:20] gambl0re: i just asked two questions
[04:20:23] Radar: gambl0re: Did you?
[04:20:31] safety_cut: has joined #RubyOnRails
[04:20:32] Radar: I thought you were stating facts.
[04:20:41] rushed: Cache_Money: don't guess, go look at an example or some documentation :)
[04:20:43] craysiii: Cache_Money dont worry how the use opens the link, just provide for them
[04:20:46] gambl0re: facts to you maybe...
[04:20:59] gambl0re: for me it's still unknown
[04:21:08] SteenJobs: has joined #RubyOnRails
[04:21:18] Radar: gambl0re: Yes I understand that. What is your actual question?
[04:21:27] Cache_Money: rushed: I was looking here but it seems like they either provide a form or I do https://www.dailycred.com/api#api-reset
[04:21:29] gambl0re: if you want to add a column using migration, you specifically have to use the word 'add' in the migration command. for example bin/rails generate migration AddPartNumberToProducts part_number:string
[04:21:35] Cache_Money: I'll look at some other documentation
[04:22:13] Radar: gambl0re: There is no question there.
[04:22:19] gambl0re: if you dont use the word 'add' you'll have to manually add the add_column yourself in the mgiration file
[04:22:22] Radar: gambl0re: That sounds me like a statement of facts still.
[04:22:33] gambl0re: shit nevermind!!!
[04:22:41] gambl0re: you're always trying to be smart
[04:22:50] pontiki: "If the migration name is of the form "AddXXXToYYY" or "RemoveXXXFromYYY" and is followed by a list of column names and types then a migration containing the appropriate add_column and remove_column statements will be created." http://guides.rubyonrails.org/active_record_migrations.html
[04:22:52] Aeyrix: gambl0re: how much are you paying Radar tho
[04:23:01] Radar: gambl0re: I am always trying to help you.
[04:23:09] Aeyrix: gambl0re: People who are well-versed and incredibly experienced with Rails are lending their time, free of charge.
[04:23:17] Aeyrix: The *least* you could do is not waste it.
[04:23:18] Radar: gambl0re: Are you asking if you need to have "add" in the migration name to be able to add columns?
[04:23:23] Aeyrix: It's incredibly rude to do so.
[04:23:29] gambl0re: yes thats what im asking..
[04:23:56] rushed: gambl0re: what the generators can do isn't a limit on what you can do
[04:24:12] Aeyrix: However 80% of the time it's a limit on what you should be doing unless you know better.
[04:24:13] drale2k: has joined #RubyOnRails
[04:24:18] gambl0re: i understand that...but thats not my question
[04:24:24] gambl0re: ok i'll ask my question one more time...
[04:24:35] charliesome: has joined #RubyOnRails
[04:24:46] rushed: gambl0re: ===> no <===, what the generators can do isn't a limit on what you can do
[04:24:50] Radar: gambl0re: Can you ask it without copying + pasting the question?
[04:24:53] Radar: gambl0re: Because no I didn't understand it.
[04:25:23] pontiki: ACTION hums
[04:26:27] gambl0re: do you have to use the word 'add' in the migration command eg => add_user_id_to_post for the migration file to automatically generate the add_column line
[04:26:47] rushed: gambl0re: did you read what pontiki quoted?
[04:26:57] rushed: gambl0re: that seems to be directly on point :)
[04:26:57] pontiki: [20150830|2322.49] < pontiki> "If the migration name is of the form "AddXXXToYYY" or "RemoveXXXFromYYY" and is followed by a list of column names and types then a migration containing the appropriate add_column and remove_column statements will be created." http://guides.rubyonrails.org/active_record_migrations.html
[04:26:58] Mendenhall: has joined #RubyOnRails
[04:27:05] Radar: rushed: No, gambl0re was too busy being pissed.
[04:27:27] Radar: gambl0re: Thank you. That time I understood. Yes you need to use the word "add" for it to automatically generate the "add_column" in the migration. The docs that pontiki has linked to are a great reference and I think you should read them.
[04:27:50] gambl0re: yea i just read pontiki advice
[04:28:19] gambl0re: so if i dont use add/remove i'll ahve to manually add add_column or remove_column
[04:28:25] rakm: has joined #RubyOnRails
[04:28:27] n00bDev: has left #RubyOnRails: ()
[04:28:33] nya: has joined #RubyOnRails
[04:28:52] pontiki: i'm wondering why it's so hard to just try it
[04:29:59] gambl0re: im trying to avoid undoing things, especially with migration files
[04:30:04] Radar: gambl0re: Yes, you will have to manually add those things.
[04:30:16] craysiii: you can just do rake db:rollback
[04:30:34] pontiki: and you can just delete the bloody migration file after you look and see
[04:31:01] gambl0re: if i could just delete the migration file whats db:rollback fore
[04:31:07] pontiki: no it is not
[04:31:16] craysiii: as long as youre not working on a production environment and you have your code in VC you shouldn't be afraid to poke around :)
[04:31:23] nya: has joined #RubyOnRails
[04:31:28] pontiki: db:rollback does not delete the migration file
[04:31:40] craysiii: no it doesn't, and i didn't imply it did
[04:32:03] pontiki: if you run rails g migration... there is NO requirement you run rake db:migrate. you can do it and simply *look* at what it generated, and then delete the file
[04:32:38] gambl0re: i see. ok thanks...!
[04:32:43] pontiki: and even at that, what stops you from having a tiny rails app you can just try things out on??
[04:34:58] lucyinthesky: has joined #RubyOnRails
[04:37:22] petricore: has joined #RubyOnRails
[04:37:42] smathy: has joined #RubyOnRails
[04:38:51] kies^: has joined #RubyOnRails
[04:39:43] havenwood: has joined #RubyOnRails
[04:42:02] njero: has joined #RubyOnRails
[04:43:28] pawnbox: has joined #RubyOnRails
[04:43:34] nya: has joined #RubyOnRails
[04:43:52] mices: has joined #RubyOnRails
[04:44:35] sarink: has joined #RubyOnRails
[04:46:17] mices: the mysql driver says it's for mysql 5.0 which is very old version so that means it supports all higher versions as well?
[04:46:22] nya: has joined #RubyOnRails
[04:46:47] sevenseacat: mices: use the mysql2 driver.
[04:47:10] Aeyrix: gambl0re: Deleting the migration file doesn't undo the migration.
[04:47:32] mices: what's the official site for non-gem downloads?
[04:47:57] mices: i mean repository
[04:48:13] mices: is there a rails repository where i would look for the mysql2 driver
[04:48:24] mices: what should i do google it?
[04:48:36] mices: like in perl we had cpan
[04:48:39] sevenseacat: add `gem "mysql2"` to your gemfile?
[04:48:42] sevenseacat: in ruby we have rubygems
[04:48:58] mices: but i can install the driver without gems there's 2 different ways
[04:49:00] VeryBewitching: mices: https://rubygems.org/gems/mysql2/versions/0.3.20 for mysql2 for example
[04:49:04] Aeyrix: mices: No you can't.
[04:49:10] sevenseacat: no, mysql2 is a gem
[04:49:12] poli_: has joined #RubyOnRails
[04:52:01] mices: on freebsd install gems as root?
[04:52:30] hoodow: has joined #RubyOnRails
[04:56:36] gambl0re: http://tutorials.jumpstartlab.com/projects/blogger.html#i2:-adding-comments
[04:56:51] gambl0re: it says "It???s attached to an article"
[04:57:06] gambl0re: but a comment is also attached to a user....
[04:57:24] gambl0re: let me finish
[04:57:29] gambl0re: a user has many comments
[04:57:30] sevenseacat: !enternotspace
[04:57:30] helpa: The enter key should not be used as a space bar. Lines on IRC can be up to 400 characters long.
[04:57:39] gambl0re: a comment belongs to a user
[04:58:06] gambl0re: how do i know if the comment should have an association with a post or with a user
[04:58:34] nya: has joined #RubyOnRails
[04:58:46] gambl0re: why in that example it's creating an association with only the post
[04:58:50] sevenseacat: a user makes a comment on a post?
[04:58:51] fifi-v: has joined #RubyOnRails
[04:58:52] gambl0re: article not post
[04:59:43] sevenseacat: becuase there's no user model there
[05:00:04] sevenseacat: its storing comments with an author name only
[05:00:18] pontiki: gambl0re: are there *any* users in that tutorial?
[05:00:44] gambl0re: yea but it says - It???s attached to an article
[05:00:44] gambl0re: It has an author name
[05:00:45] gambl0re: It has a body
[05:00:57] sevenseacat: yes, it has no association with a user
[05:00:58] gambl0re: it should atleast say 'it's attached to a user' also
[05:01:04] sevenseacat: no, it shouldnt
[05:01:19] gambl0re: i know theres no user model in the tutorial
[05:01:26] nya: has joined #RubyOnRails
[05:01:27] sevenseacat: I can fill in your comment form and put that my name is gambl0re - should my comments be attached to you?
[05:01:30] gambl0re: but in reality a comment should be associated with a user
[05:01:37] pontiki: what user?
[05:01:50] sevenseacat: you dont have a person
[05:02:25] fifi-v: Hi all, I'd like to use `Devise.email_regexp` in frontend (reactjs) email validation. What's the best way to get the value of `Devise.email_regexp` in react?
[05:02:52] rushed: fifi-v: save yourself a headache and don't bother trying to regex emails
[05:03:16] rushed: fifi-v: if you care, email them a link they have to click (ie devise confirmable)
[05:04:20] fifi-v: rushed: thanks, but in general, I'd like to use if I can refer to some rails code in react
[05:05:09] rushed: fifi-v: you're asking if react js you're running the browser can access ruby code on your server?
[05:05:34] annlewis: has joined #RubyOnRails
[05:05:45] rushed: fifi-v: you might be looking for this http://railscasts.com/episodes/324-passing-data-to-javascript
[05:08:38] riotjones: has joined #RubyOnRails
[05:08:41] pawnbox: has joined #RubyOnRails
[05:09:05] wasserschlange_: has joined #RubyOnRails
[05:10:56] wasserschlange_: has joined #RubyOnRails
[05:13:34] nya: has joined #RubyOnRails
[05:13:51] Aeyrix: fifi-v: there's a nice regex
[05:13:54] Aeyrix: for email checking
[05:13:59] mices: do i have to install mysql2 drivers for every app that's gonna use mysql
[05:14:06] mices: i mean gems
[05:14:13] Aeyrix: fifi-v: http://www.ex-parrot.com/pdw/Mail-RFC822-Address.html
[05:14:15] rushed: mices: yes
[05:14:24] sevenseacat: gems are typically global.
[05:14:28] rushed: mices: (if by install you mean add to the gemfile)
[05:15:04] mices: i was in a different directory for another app when i ran gem install mysql2
[05:15:20] mices: the gem is now available for all apps?
[05:15:35] rushed: mices: you almost never need to gem install anything, just bundle after you change your gemfile
[05:16:27] nya: has joined #RubyOnRails
[05:17:30] mary5030: has joined #RubyOnRails
[05:18:25] theery: has joined #RubyOnRails
[05:18:42] jholm: has joined #RubyOnRails
[05:18:46] arup_r: has joined #RubyOnRails
[05:18:50] Scripore: has joined #RubyOnRails
[05:21:11] Mendenhall: has joined #RubyOnRails
[05:21:37] sandstrom: has joined #RubyOnRails
[05:22:30] otherj: has joined #RubyOnRails
[05:26:43] jenrzzz: has joined #RubyOnRails
[05:27:23] pawnbox_: has joined #RubyOnRails
[05:28:14] ildarsafin: has joined #RubyOnRails
[05:28:34] nya: has joined #RubyOnRails
[05:28:56] duncannz: has joined #RubyOnRails
[05:29:41] aganov: has joined #RubyOnRails
[05:33:52] drale2k: has joined #RubyOnRails
[05:35:32] xcesariox: has joined #RubyOnRails
[05:37:17] tagrudev: has joined #RubyOnRails
[05:37:31] pawnbox: has joined #RubyOnRails
[05:39:23] codenapper: has joined #RubyOnRails
[05:41:24] dhjondoh: has joined #RubyOnRails
[05:41:59] emilebosch: has joined #RubyOnRails
[05:45:19] sevenseacat: haaaaa reform is now deleting the wrong nested objects. fml.
[05:45:22] mices: gem 'myqsl2', '~> 3.2.0' gets me an error Could not find gem 'myqsl2 (~> 3.2.0) ruby' in the gems available on this machine
[05:45:33] arup_r: has joined #RubyOnRails
[05:45:34] Aeyrix: How about just gem 'mysql2'
[05:45:36] sevenseacat: mices: you need to bundle install after adding a gem to your Gemfile
[05:45:49] mices: that's what generates the error, bundle install
[05:46:00] sevenseacat: because you cant spell mysql2
[05:46:24] mices: now we're getting somewhere
[05:46:34] sevenseacat: protip #1 - always read the error message.
[05:47:34] nya: has joined #RubyOnRails
[05:48:06] christiandsg: has joined #RubyOnRails
[05:48:51] beauby: has joined #RubyOnRails
[05:49:39] bruno-: has joined #RubyOnRails
[05:51:50] nya: has joined #RubyOnRails
[05:52:55] Grundell: has joined #RubyOnRails
[05:56:41] arup_r: has joined #RubyOnRails
[05:58:02] rails663: has joined #RubyOnRails
[05:59:25] sinkensabe: has joined #RubyOnRails
[06:01:58] jblack: has joined #RubyOnRails
[06:01:59] dionysus69: has joined #RubyOnRails
[06:03:07] jeadre: has joined #RubyOnRails
[06:03:24] jblack: Hello. I seem to be having a trouble with css not showing up. Its working fine in production on a webserver, but its not working on my local webserver when running rails s.
[06:04:26] jblack: firebug lists 3 css files, application, purchases and scaffolds. the application one is empty in dev.
[06:04:52] sevenseacat: which one isnt supposed to be empty
[06:05:25] safety_cut: has joined #RubyOnRails
[06:06:24] annlewis: has joined #RubyOnRails
[06:06:30] riotjones: has joined #RubyOnRails
[06:06:40] Xiti: has joined #RubyOnRails
[06:06:50] jblack: applications.css seems to have all sorts of useful css stuff in prod, but its empty in dev.
[06:07:32] rvanlieshout: has joined #RubyOnRails
[06:07:37] rushed: jblack: everything is consolidated in production
[06:07:51] rushed: jblack: what you're seeing is probably expected
[06:08:10] jblack: The page looks dramatically different in dev and in prod.
[06:08:22] sevenseacat: so whats actually in the application.css file
[06:08:29] jblack: in prod, I have all sorts of css styling, in dev, it's.. pretty plain
[06:08:59] jblack: so, how does that stuff get into prod, and how do I make it show up in dev?
[06:09:10] jblack: and whats the it that I"m pointing at? =)
[06:09:30] sevenseacat: [14:08:21] sevenseacat: so whats actually in the application.css file
[06:09:36] jeadre: has joined #RubyOnRails
[06:09:50] craysiii: has joined #RubyOnRails
[06:10:13] jblack: So, I have an application.css and an application.css.scss.
[06:10:29] jblack: The first one is just a comment. the latter one does 3 imports, for bootstrap
[06:10:39] sevenseacat: ok, well you shouldn't have both.
[06:10:42] rushed: jblack: you generally should not have both
[06:10:42] sevenseacat: remove the one you're not using.
[06:11:11] jblack: And now I got style, thanks to you guys.
[06:11:18] helpa: We're not all guys here - while you probably don't meant to be exclusive, not everybody feels that way. Maybe consider using "folks", "y'all" or "everyone" instead?
[06:11:34] jblack: THat's right. I even saw that the other day.
[06:11:43] jblack: And now I have style, thanks to you folk
[06:11:49] emilebosch: has joined #RubyOnRails
[06:11:50] finnnnnnnnnnn: has joined #RubyOnRails
[06:12:11] jblack: Or people, or peeps, or dude(ttes) or humans, or large sacks of mostly water.
[06:12:25] jblack: point being, I have style.
[06:12:36] jblack: Well not really. I'm hopeless. but my page, it does! =) Thank you
[06:12:42] sevenseacat: you're welcome.
[06:13:41] eGGsha: has joined #RubyOnRails
[06:14:06] Lycanii: has joined #RubyOnRails
[06:17:48] mices: how do i generate a scaffold from an existing database table?
[06:18:52] nyaa: has joined #RubyOnRails
[06:19:00] sevenseacat: same way you would do it for a non-existing database table
[06:19:06] sevenseacat: this isnt a good way to learn rails btw
[06:20:55] emilebosch: has joined #RubyOnRails
[06:24:27] mices: i'm following a book
[06:24:35] mices: but the book creates a new database
[06:24:55] arup_r: mices: Are you working on a legacy app ?
[06:25:11] hightower4: has joined #RubyOnRails
[06:25:47] mices: i dunno what a legacy app is
[06:26:04] mices: i wanna rebuild an old site
[06:26:07] mices: i have the database
[06:26:31] pawnbox_: has joined #RubyOnRails
[06:27:26] jondot: has joined #RubyOnRails
[06:27:42] pawnbox_: has joined #RubyOnRails
[06:28:02] sevenseacat: without having any more information, i'd be building it with a new schema, and then migrating the old data over.
[06:29:16] tvw: has joined #RubyOnRails
[06:29:18] arup_r: Yes.. that is the one way
[06:29:35] comrad: has joined #RubyOnRails
[06:30:06] mices: should i read the docs for the generate scaffold command
[06:30:25] mices: i guess there'd be options in there for what i wanna do right?
[06:30:29] arup_r: mices: https://www.ruby-forum.com/topic/134848#600414
[06:31:31] Radar: mices: No, it won't automatically generate it for you. You should generate the pieces as you need them.
[06:31:38] Radar: mices: i.e. generate the model first, then build up the controller
[06:31:52] Radar: Using anything that automatically generates large swathes of code for you always ends in tears
[06:32:00] sevenseacat: especially if you don't know rails
[06:33:14] mices: ok i'll import later
[06:34:01] netzfisch: has joined #RubyOnRails
[06:34:12] tonios57: has joined #RubyOnRails
[06:34:22] elton: has joined #RubyOnRails
[06:34:47] drale2k: has joined #RubyOnRails
[06:34:56] michael_mbp: has joined #RubyOnRails
[06:35:00] jeadre: has joined #RubyOnRails
[06:37:21] kwd: has joined #RubyOnRails
[06:37:30] artto: has joined #RubyOnRails
[06:39:59] tonios57: has joined #RubyOnRails
[06:40:01] sandstrom: has joined #RubyOnRails
[06:47:13] MartinElvar: has joined #RubyOnRails
[06:48:52] Macaveli: has joined #RubyOnRails
[06:53:03] atomical: has joined #RubyOnRails
[06:53:22] moeabdol: has joined #RubyOnRails
[06:53:28] Mendenhall: has joined #RubyOnRails
[06:54:42] jenrzzz: has joined #RubyOnRails
[06:54:55] krz: has joined #RubyOnRails
[06:56:00] jondot: has joined #RubyOnRails
[06:56:32] jas02: has joined #RubyOnRails
[06:56:37] arBmind: has joined #RubyOnRails
[06:56:57] towski_: has joined #RubyOnRails
[06:57:36] pawnbox: has joined #RubyOnRails
[06:58:44] kies: has joined #RubyOnRails
[06:59:11] artto: has joined #RubyOnRails
[06:59:31] jcm: has joined #RubyOnRails
[07:02:25] closer: has joined #RubyOnRails
[07:04:52] eyck: has joined #RubyOnRails
[07:05:23] arup_r1: has joined #RubyOnRails
[07:07:02] jholm: has joined #RubyOnRails
[07:07:09] annlewis: has joined #RubyOnRails
[07:07:54] rvanlieshout: hmm. got myself an issue with precompiling assets
[07:08:13] rvanlieshout: well.. not really an issue. it 'seems to do someting', but i don't see the new js thingies in public/assets anywhere
[07:08:56] rushed: rvanlieshout: you generally don't want to precompile on dev (or yourself)
[07:09:07] rvanlieshout: i know. on production
[07:09:19] rvanlieshout: it failed on staging the last two times. had to clean assets folder an run it again
[07:09:29] rvanlieshout: the assets:precompile task only compiled a css file
[07:09:36] rvanlieshout: while there are a lot of new js things in there
[07:09:42] rushed: rvanlieshout: no logs?
[07:10:19] rvanlieshout: https://gist.github.com/rvanlieshout/182ef9905143f4c505bb
[07:10:28] rvanlieshout: let me find the details in the rails log
[07:11:10] rvanlieshout: nothing about compile in production.log
[07:11:10] rushed: rvanlieshout: ? fatal: Not a git repository
[07:11:18] MartinElvar: has joined #RubyOnRails
[07:11:20] rvanlieshout: yeah. it's caused by how capistrano creates a release
[07:11:50] jalnt: has joined #RubyOnRails
[07:11:50] rvanlieshout: full output added to that gist
[07:12:12] ur5us: has joined #RubyOnRails
[07:12:25] maz-dev: has joined #RubyOnRails
[07:12:33] rvanlieshout: is uses git archive to copy stuff from repo to release
[07:12:38] jenrzzz: has joined #RubyOnRails
[07:12:39] rvanlieshout: thus excluding .git files
[07:12:47] rvanlieshout: but that warning was always there. didn't cause this
[07:13:40] sandstrom: has joined #RubyOnRails
[07:13:52] rvanlieshout: running assets:precompile again just doesn't compile anything
[07:14:30] rushed: rvanlieshout: what should it be producing that it isn't?
[07:14:59] rvanlieshout: yeah. but there is no log output about that
[07:15:14] rvanlieshout: only a lot from visitors
[07:15:52] rvanlieshout: so the asset pipeline feels the file is up-to-date
[07:16:03] rushed: rvanlieshout: what should it be producing that it isn't?
[07:16:40] rushed: rvanlieshout: what asset is not available in production that should be?
[07:17:02] rvanlieshout: a new thing included in application.js
[07:17:11] rvanlieshout: grep -rniI wait_for_initialize current/public/assets/
[07:17:19] rvanlieshout: expected that string to be in the compiled js
[07:17:48] ecnalyr: has joined #RubyOnRails
[07:17:51] rvanlieshout: it does return something when run against current/app/assets
[07:18:24] rushed: rvanlieshout: how is it included?
[07:18:43] rvanlieshout: #= require_tree ./partials
[07:18:51] rvanlieshout: other files in partials/ are included
[07:19:05] TvL2386: has joined #RubyOnRails
[07:20:00] jeadre: has joined #RubyOnRails
[07:20:57] rvanlieshout: it looks like it think the fingerprint didn't change
[07:21:20] gaussblurinc1: has joined #RubyOnRails
[07:21:40] quazimodo: Jesus fuck i can't decide what js framework to use :*
[07:21:45] quazimodo: i can't decide -at all
[07:21:51] quazimodo: grrrrrrrrrrrrrrrr
[07:22:26] baweaver: is there a question in there?
[07:23:21] rvanlieshout: and just deleting public/assets and tmp/cache/assets before deploy just isn't right
[07:24:04] rushed: rvanlieshout: deleting public assets shouldn't matter as the hash should change, does flushing tmp actually fix it?
[07:24:29] kimegede: has joined #RubyOnRails
[07:24:43] sevenseacat: baweaver: unlikely.
[07:24:48] rushed: rvanlieshout: if it were me I'd assume that some of what I thought was on the server wasn't and look for that, but it sounds like you've checked
[07:25:01] baweaver: EmberJS, there you go, have fun now.
[07:25:26] rushed: if the last thing they said was "grrrrrrrr" or "hmmmmm" you might as well pretend you didn't see it~
[07:25:53] baweaver: ACTION shrugs
[07:26:03] rvanlieshout: rushed: yeah. checked that
[07:26:08] rvanlieshout: removed tmp/cache/assets
[07:26:10] baweaver: typically not a fan of pointless vulgarity either, but that's just me.
[07:26:10] rvanlieshout: and compiling...
[07:27:45] rvanlieshout: rushed: removing tmp/cache/assets and precompile seemed to work
[07:28:10] rushed: rvanlieshout: that is disappointing
[07:28:18] rushed: rvanlieshout: sorry man ><
[07:29:06] rvanlieshout: well yeah. new research next deploy
[07:29:24] rvanlieshout: i think that's related to the require_tree
[07:29:34] rvanlieshout: it might not detect partials/ has changed
[07:30:26] lxsameer: has joined #RubyOnRails
[07:31:33] lxsameer: hey folks, what is the average hourly rate for a senior remote position in US ?
[07:31:40] arup_r: has joined #RubyOnRails
[07:32:05] jas02: has joined #RubyOnRails
[07:32:15] rushed: lxsameer: how long is this piece of string?
[07:32:43] rushed: lxsameer: ?
[07:33:58] sevenseacat: lxsameer: the answer is 'between 0 and $1000000" i guess.
[07:35:01] lxsameer: ok thanks I get it
[07:35:14] moeabdol: has joined #RubyOnRails
[07:35:18] bruno-: has joined #RubyOnRails
[07:35:46] arup_r: Any idea how can I implement digest email feature in Rails ? I am using Mandrill with my Rails app
[07:36:18] sevenseacat: I know how I would do it, yeah
[07:37:31] arup_r: sevenseacat: any hints ?
[07:37:47] solars: has joined #RubyOnRails
[07:38:06] sevenseacat: it's going to involve some sort of scheduled job to generate/send the emails.
[07:38:24] rattatmatt: has joined #RubyOnRails
[07:38:38] darutoko: has joined #RubyOnRails
[07:39:26] rushed: "whenever" is a handy gem for those~
[07:39:41] vanne: has joined #RubyOnRails
[07:40:19] craysiii: whenever was really simple to use
[07:40:34] arup_r: I am using that gem already..
[07:40:44] arup_r: but never worked on digest.. so asking
[07:41:25] sevenseacat: arup_r: did you think about it first? to try and narrow down your question?
[07:41:51] sevenseacat: otherwise its just 'someone gave me a task, so I give the task to the channel'
[07:41:53] arup_r: sevenseacat: I was seeing Mandril API...if they have any
[07:42:01] jeadre: has joined #RubyOnRails
[07:44:25] Ergo: has joined #RubyOnRails
[07:46:28] lxsameer: has joined #RubyOnRails
[07:47:02] arup_r: creating emails are pretty stright forwars, using background job + Rake task. Now how to digest it.. No idea.
[07:47:07] jenrzzz: has joined #RubyOnRails
[07:47:25] CaptainDusty: has joined #RubyOnRails
[07:47:51] sevenseacat: depends on what exactly you want to digest
[07:47:54] dnewkerk: has joined #RubyOnRails
[07:48:14] sevenseacat: thats a bit of a broad term
[07:48:32] rushed: arup_r: "digest" doesn't have a single meaning, it just generally describes less frequent + more information (potentially rolled up)
[07:48:49] arup_r: Generally looking for similar things.. that google mailing list does.. in a single email all the emails they set up.
[07:50:33] arup_r: or as an Example StackOverflow send ...Weekly email
[07:50:53] arup_r: They send all the highly votes posts in a single email..
[07:50:58] sevenseacat: yes, we know what a digest email is. we don't know what you want to put in your digest email.
[07:51:02] jondot: has joined #RubyOnRails
[07:51:13] pawnbox_: has joined #RubyOnRails
[07:51:22] arup_r: I want to put all the posts created say in a weekly basis
[07:51:51] arup_r: and then send the email to the recipient lists.. Is it clear now ?
[07:51:59] arup_r: Well It seems I got the idea
[07:52:28] rvanlieshout: and what's the issue with that?
[07:52:47] rushed: arup_r: top hit for "rails digest email" https://github.com/inspire9/digestifier if nothing else you might get some ideas from how they approached it
[07:53:18] sevenseacat: arup_r: see what happens when you think about the problem :P
[07:53:24] dhjondoh: has joined #RubyOnRails
[07:53:27] sevenseacat: instead of just handballing it on
[07:53:52] arup_r: rushed: I did google .. https://goo.gl/uu7yqO and first 3 posts gave me some ideas..
[07:54:17] Zarthus: has joined #RubyOnRails
[07:54:55] arup_r: sevenseacat: no idea.. while I talk here then only things becomes clear to me... as happened sometimes before..
[07:55:35] x-light: has joined #RubyOnRails
[07:55:40] CaptainDusty: has joined #RubyOnRails
[07:55:49] arup_r: rushed: thanks for the link..
[07:57:07] dhjondoh: has joined #RubyOnRails
[07:59:13] emilebosch: has joined #RubyOnRails
[08:00:22] atzorvas: how to feed I18n.transliterate with that file? https://gist.github.com/Achillefs/925267 I've placed it in locales/el.yml but I think I miss the initializer :$
[08:01:22] krpec: has joined #RubyOnRails
[08:04:16] arup_r: you need to put under config/initializer
[08:05:35] arup_r: you need to put under config/initializer/locals/ **
[08:05:39] moeabdol: has joined #RubyOnRails
[08:05:54] arup_r: ex. https://github.com/spree/spree/tree/master/core/config/locales
[08:05:55] artto: has joined #RubyOnRails
[08:06:27] arup_r: sorry.. Again I mistyped.. but you got what I meant :)
[08:07:01] maz-dev: has joined #RubyOnRails
[08:07:57] annlewis: has joined #RubyOnRails
[08:08:13] arup_r: atzorvas: http://edgeguides.rubyonrails.org/i18n.html#setup-the-rails-application-for-internationalization
[08:08:24] arup_r: I love to help if I can :)
[08:09:28] arup_r: and the last https://github.com/svenfuchs/rails-i18n/tree/master/rails/locale
[08:10:17] Pumukel: has joined #RubyOnRails
[08:10:42] srinidhi: has joined #RubyOnRails
[08:11:33] atzorvas: it's not going to do me the favor to work
[08:11:58] atzorvas: I even tried setting them like "set them using ruby" example in here http://apidock.com/rails/ActiveSupport/Inflector/transliterate
[08:11:59] arup_r: Well. What is the issue then ?
[08:12:12] jgt3: has joined #RubyOnRails
[08:13:47] arup_r: other then english which is default, foo every locals I think you need pass the correct locales via URL..
[08:15:22] Pathfinder: has joined #RubyOnRails
[08:16:24] bronson: has joined #RubyOnRails
[08:16:58] krz: has joined #RubyOnRails
[08:17:44] atzorvas: arup_r: I'm playing with console only for now (I'll need to use the transliterate only in a class method, not for displaying etc)
[08:22:56] CaptainDusty: has joined #RubyOnRails
[08:24:58] michael_mbp: has joined #RubyOnRails
[08:25:38] Mendenhall: has joined #RubyOnRails
[08:26:25] gerardc: has joined #RubyOnRails
[08:27:09] Bongo: has joined #RubyOnRails
[08:27:20] zpe: has joined #RubyOnRails
[08:27:33] gerardc: has joined #RubyOnRails
[08:32:16] marr: has joined #RubyOnRails
[08:33:15] drale2k: has joined #RubyOnRails
[08:34:33] chipotle_: so, this will sound stupid, but with amazon web services, if i pick their smallest server to host my rails app, and i need more ram, i can just add more ram, and then my app migrates to the larger instance? unlike a vps like linode.com where adding ram isn't seamless...?
[08:35:51] inoter: has joined #RubyOnRails
[08:38:32] rushed: chipotle_: you don't add so much and throw away the old one and start a new one with what you want
[08:38:38] atzorvas: arup_r: not the best way indeed, but I forked https://github.com/atzorvas/rails-i18n and added my el.yml file to rails/transliteration folder.
[08:38:42] _lazarevsky: has joined #RubyOnRails
[08:38:47] _lazarevsky: good morning good people
[08:38:54] atzorvas: after that I18n.locale = 'el'; I18n.transliterate('??') worked as it should
[08:38:59] _lazarevsky: I wanna invalidate all the current cookies in my rails app with the next deployment.
[08:39:16] _lazarevsky: is it as simple as changing the secret_token field in /initializers/secret_token.rb ?
[08:39:20] rushed: _lazarevsky: yes
[08:39:32] _lazarevsky: rushed: thanks
[08:39:40] pawnbox: has joined #RubyOnRails
[08:40:00] chipotle_: rushed: so do you have downtime?
[08:40:15] rushed: chipotle_: if there is only one machine in existance yes
[08:40:55] rushed: chipotle_: but probably not the kind of downtime you care about if you're "pick their smallest server"
[08:41:58] rushed: chipotle_: more like a reboot :)
[08:42:17] CaptainDusty: has joined #RubyOnRails
[08:43:57] CaptainDusty: has joined #RubyOnRails
[08:44:37] Motoservo: has joined #RubyOnRails
[08:44:51] voker57: has joined #RubyOnRails
[08:46:07] chipotle_: rushed: and what is the amazon service called where they host your rails app like heroku?
[08:46:14] chipotle_: rather than just have a vps with root fs access...
[08:47:11] rushed: chipotle_: heroku
[08:47:48] rickmasta: has joined #RubyOnRails
[08:49:23] pawnbox_: has joined #RubyOnRails
[08:52:38] chipotle_: i thought aws offered something similar?
[08:53:01] chipotle_: you could either have a root fs access or a rails image (similar to how they have RDS for RDMS)
[08:53:16] sevenseacat: nothing as simple as heroku though
[08:53:33] Rancid-punk: has joined #RubyOnRails
[08:54:02] jcm: has joined #RubyOnRails
[08:55:17] jholm: has joined #RubyOnRails
[08:59:05] siaW: has joined #RubyOnRails
[09:00:35] jenrzzz: has joined #RubyOnRails
[09:00:52] atzorvas: I still don't know why my sidekick config doesnt run on heroku but it does on local & server :P
[09:02:22] moei: has joined #RubyOnRails
[09:02:59] dopamean_: has joined #RubyOnRails
[09:03:02] xsoapx: has joined #RubyOnRails
[09:04:42] DLSteve: has joined #RubyOnRails
[09:08:53] annlewis: has joined #RubyOnRails
[09:09:21] x-light: has joined #RubyOnRails
[09:09:29] jenrzzz: has joined #RubyOnRails
[09:10:11] tprpc: has joined #RubyOnRails
[09:13:17] suchness: has joined #RubyOnRails
[09:15:25] blackhuey: has joined #RubyOnRails
[09:16:53] qejk: has joined #RubyOnRails
[09:18:43] jenrzzz: has joined #RubyOnRails
[09:18:52] dionysus69: has joined #RubyOnRails
[09:19:00] dionysus69: is there such a thing in computer world to lets say connect postgresql of rails with some other mysql db in real time?
[09:19:31] rushed: dionysus69: you can connect to as many databases as you like
[09:20:07] dionysus69: oh you mean I can make writes to 2 databases at the same time?
[09:20:22] kimegede: has joined #RubyOnRails
[09:20:23] dionysus69: or perhaps use some other application's mysql db?
[09:20:51] suchness: dionysus69: an application doesn't 'own' a database. An application just knows the credentials to any database.
[09:20:53] rushed: dionysus69: you can probably assume that whatever vague thing you thinking of can be done~
[09:21:33] suchness: dionysus69: you could start bottle 3.0 right now and have it talk to the same database as bottle 1.0
[09:21:57] dionysus69: haha ok, i visualized it like this before, rails writes to postgres and some service automatically transfers same data to different db which is I guess hard way to visualizing it, I guess just writing to different db is possible
[09:22:02] arBmind: has joined #RubyOnRails
[09:22:26] suchness: dionysus69: Are you thinking in the way of backups?
[09:22:58] dionysus69: nope just a real time synchronization between 2 databases but I just realized I can achieve the same effect by just using same database
[09:23:02] suchness: dionysus69: You can have databases replicate data and mirror eachother.
[09:23:29] dionysus69: oh I remembered why I got such a strange idea, there is a chance that the application I want connection with will be based on MSSQL, is it even possible to connect rails app to MSSQL?
[09:23:38] suchness: dionysus69: https://www.digitalocean.com/community/tutorials/how-to-set-up-master-slave-replication-on-postgresql-on-an-ubuntu-12-04-vps
[09:23:49] _lazarevsky: rushed: i added an attribute called is_stale to one of my records.. if the record has been last updated more than 7 days ago it's set to true
[09:23:53] suchness: dionysus69: It's possible to connect it to any database
[09:23:54] dionysus69: suchness: yes thats what I was asking actually thanks :) mirroring thats the term I needed to use
[09:24:02] emilebosch: has joined #RubyOnRails
[09:24:21] _lazarevsky: rushed: now I wanna handle the after_save callback and set it to false. However, my concern is that in the after_save I will be updating the same record again
[09:24:29] _lazarevsky: and am worried about circular calls
[09:24:51] _lazarevsky: save -> after_save (which performs .save) -> after_save -> ...
[09:25:19] rushed: _lazarevsky: before_save
[09:26:50] _lazarevsky_: has joined #RubyOnRails
[09:27:53] _lazarevsky__: has joined #RubyOnRails
[09:27:56] _lazarevsky__: sorry I got d/c
[09:28:04] _lazarevsky__: rushed: so were you saying that I should use before_save ?
[09:29:42] suchness: _lazarevsky__: Yes that is what rushed was saying.
[09:29:46] gaussblurinc1: has joined #RubyOnRails
[09:30:00] emilebosch: has joined #RubyOnRails
[09:31:01] _lazarevsky__: suchness: ya but if the .save fails I'll be left with a invalid data and will have to do manual clean up
[09:31:22] suchness: _lazarevsky__: How would you be left with invalid data?
[09:31:47] suchness: _lazarevsky__: What is it you are trying to accomplish?
[09:31:51] _lazarevsky__: if I update the record in the before_save ie. self.is_stale = false
[09:31:53] gerardc_: has joined #RubyOnRails
[09:32:18] suchness: _lazarevsky__: What are you trying to update in the event a record is saved?
[09:32:45] _lazarevsky__: so whenever a record is saved i wanna check the is_stale field and if it is true I wanna set it to false
[09:32:53] _lazarevsky__: but if in the before_save i say
[09:33:00] _lazarevsky__: self.is_stale = false
[09:33:25] suchness: _lazarevsky__: If the save fails that property shouldn't save either.
[09:33:41] _lazarevsky__: in the before_save i merely set the attribute to false
[09:33:52] _lazarevsky__: thanks rushed and suchness
[09:34:25] Rubie: has joined #RubyOnRails
[09:34:35] jenrzzz: has joined #RubyOnRails
[09:36:37] nightsh: has joined #RubyOnRails
[09:37:17] startupality: has joined #RubyOnRails
[09:37:52] Mia: has joined #RubyOnRails
[09:37:52] Mia: has joined #RubyOnRails
[09:39:54] maz-dev: has joined #RubyOnRails
[09:40:58] eugzol: has joined #RubyOnRails
[09:42:25] arup_r: has joined #RubyOnRails
[09:44:33] emilebosch: has joined #RubyOnRails
[09:44:42] jondot: has joined #RubyOnRails
[09:48:15] fighella: has joined #RubyOnRails
[09:49:30] alex88: has joined #RubyOnRails
[09:49:58] nya: has joined #RubyOnRails
[09:54:59] dopamean_: has joined #RubyOnRails
[09:56:32] nya: has joined #RubyOnRails
[09:56:40] emilebosch: has joined #RubyOnRails
[10:00:49] mhenrixon: has joined #RubyOnRails
[10:01:38] jenrzzz: has joined #RubyOnRails
[10:02:35] gaussblurinc1: hi! how should I store whole list of countries and their translations? is there any ready-to-use solution for rails4.2?
[10:03:43] Scripore: has joined #RubyOnRails
[10:09:27] annlewis: has joined #RubyOnRails
[10:13:49] gerardc: has joined #RubyOnRails
[10:13:58] michael_mbp: has joined #RubyOnRails
[10:15:03] mhenrixon: has joined #RubyOnRails
[10:17:20] mhenrixon: has joined #RubyOnRails
[10:20:03] bruno-: has joined #RubyOnRails
[10:20:46] stardiviner: has joined #RubyOnRails
[10:23:26] atmosx: pontiki: I'm glad you liked the font. :-)
[10:23:52] fighella: has joined #RubyOnRails
[10:25:01] jeadre: has joined #RubyOnRails
[10:25:15] artto: has joined #RubyOnRails
[10:25:44] gerardc_: has joined #RubyOnRails
[10:26:00] allcentury: has joined #RubyOnRails
[10:27:18] emilebosch: has joined #RubyOnRails
[10:28:42] sandstrom: has joined #RubyOnRails
[10:33:53] emilebosch: has joined #RubyOnRails
[10:34:58] artto: has joined #RubyOnRails
[10:40:48] ebbflowgo: has joined #RubyOnRails
[10:43:05] ebbflowgo: has left #RubyOnRails: ()
[10:43:15] suchnes__: has joined #RubyOnRails
[10:43:43] jholm: has joined #RubyOnRails
[10:43:46] Pathfinder: has joined #RubyOnRails
[10:48:20] arup_r: has joined #RubyOnRails
[10:49:16] Grundell: has joined #RubyOnRails
[10:51:57] suchness: has joined #RubyOnRails
[10:51:59] suchness: has left #RubyOnRails: ()
[10:52:01] suchness: has joined #RubyOnRails
[10:52:23] livathinos: has joined #RubyOnRails
[10:52:31] suchness: Anyone have thoughts on hiring a QA guy that can write tests but not actual code?
[10:53:51] ecnalyr: has joined #RubyOnRails
[10:55:03] zpe: has joined #RubyOnRails
[10:55:25] dionysus69: i got in some minor trouble
[10:55:39] dionysus69: i precompiled assets and heroku doesn't have anything anymore even css
[10:56:00] suchness: dionysus69: You can clear out your compiled assets
[10:56:27] suchness: dionysus69: It's either rake assets:clean or rake assets:clear
[10:56:32] suchness: I forget which
[10:56:40] dionysus69: ok will let you know in a sek :D
[10:56:49] mikenovikov: has joined #RubyOnRails
[10:57:16] jenrzzz: has joined #RubyOnRails
[10:58:06] dionysus69: its assets:clean
[10:58:33] darrencauthon: has joined #RubyOnRails
[10:58:44] emilebosch: has joined #RubyOnRails
[11:00:11] mhenrixon: has joined #RubyOnRails
[11:00:36] renews: has joined #RubyOnRails
[11:00:58] nya: has joined #RubyOnRails
[11:01:55] jhass: actually assets:clean and assets:clobber as of Rails 4
[11:02:06] dionysus69: in what case do I need to precompile assets? heroku has some issues with precompilation :\
[11:02:07] nya: has joined #RubyOnRails
[11:02:13] jhass: first deletes old assets, second nukes them all
[11:02:33] jhass: you should do it for all production deployments
[11:02:35] dionysus69: I am unable to make heroku use assets from asset dir instead of public
[11:02:47] jhass: that's actually a good thing
[11:03:00] rodfersou: has joined #RubyOnRails
[11:03:28] jhass: maybe you mean to add things to your config.assets.precompile in your application.rb?
[11:03:49] jhass: you should read http://guides.rubyonrails.org/asset_pipeline.html
[11:04:34] pawnbox: has joined #RubyOnRails
[11:05:32] dhjondoh: has joined #RubyOnRails
[11:06:36] dionysus69: thanks jhass
[11:07:07] dionysus69: I just broke something, all styling got lost, I ll try precompile assets again
[11:10:16] annlewis: has joined #RubyOnRails
[11:12:28] fifi-v: has joined #RubyOnRails
[11:12:28] ebbflowgo: has joined #RubyOnRails
[11:12:44] acti0nman: has joined #RubyOnRails
[11:13:14] dionysus69: wait so if I decide to use amazon s3 service along with heroku which I am forced to do since heroku deletes all public data on dyno reset, how do I also tell rails to precompile assets in amazon s3 storage instead of public folder?
[11:13:50] jhass: there's asset_sync, though not too well maintained
[11:15:49] rushed: dionysus69: heroku will serve assets just fine, no need to s3 (moving them to s3 will reduce load on your dyno but is not required)
[11:16:04] dionysus69: so what is a good solution in this case?
[11:16:22] rushed: dionysus69: "
[11:16:24] dionysus69: rushed heroku deletes all files that I upload using paperclip for example since paperclip saves everything in public dir
[11:16:49] rushed: dionysus69: paperclip uploads are not assets you precompile~
[11:17:09] rushed: dionysus69: "good" means different things based on context... good easy? good fast? good free? etc...
[11:17:44] dionysus69: yes but both go to public folder in the end which get deleted dont they? so you are saying only uploaded files get deleted but not precompiled assets?
[11:17:53] dionysus69: I would prefer good free :D
[11:18:18] rushed: dionysus69: you don't care if assets get deleted later (because they get rebuilt for you when a new dyno spins up)
[11:18:35] rushed: dionysus69: you do care if user uploads get deleted later (because you can't get them back)
[11:20:28] jondot: has joined #RubyOnRails
[11:21:36] dionysus69: so is there a way to avoid deletion on uploaded files without using third party storage?
[11:22:33] rushed: dionysus69: I only said heroku isn't forcing your assets to s3, user uploads will have to go in a database, or s3, or whatever :)
[11:22:44] startupality: any rails+angular subscriptions via Stripe tutorials?
[11:23:23] sinkensabe: has joined #RubyOnRails
[11:23:41] sinkensabe: has joined #RubyOnRails
[11:24:06] Crashtown: has joined #RubyOnRails
[11:25:09] arup_r: I have a attr_accessor :invites inside the Post model. I want to check presence validation on this atrribute. How to do check ?
[11:25:32] arup_r: I am sending ids by the name of this field from UI
[11:25:45] dionysus69: rushed: good point, thanks to you i discovered that i can avoid use of paperclip altogether and use db to store uploaded data ))
[11:25:57] arup_r: Main question is how to do validation on non model attributes
[11:26:33] rushed: dionysus69: you probably still want paperclip (or carrierwave) both should have pluggable options to save to the filesystem, s3, or a database
[11:27:00] rushed: arup_r: custom validations are functions you can do whatever you want in them
[11:27:32] arup_r: Yes,, How would I trace it inside the validation.. ? I am thinking
[11:27:41] dionysus69: i found out paperclip doesnt support saving to db, turns out rails can upload and save by itself why not go that way?
[11:27:52] nya: has joined #RubyOnRails
[11:28:17] startupality: has joined #RubyOnRails
[11:30:01] loechel: has joined #RubyOnRails
[11:30:02] dopamean_: has joined #RubyOnRails
[11:30:22] rushed: dionysus69: "paperclip save to db" has quite a few hits for not being possible :P
[11:31:04] rushed: dionysus69: using paperclip or carrierwave is optional, if you don't need the features rolling your own might be faster
[11:31:07] dionysus69: rushed: hahah sorry maybe i was looking at an old post :P
[11:31:38] rushed: dionysus69: paperclip in general is older, if this is new development you might consider carrierwave
[11:31:50] alex88: has joined #RubyOnRails
[11:32:29] arup_r: no idea why this error https://gist.github.com/aruprakshit/85bd334035c0843a689f#file-log-sh-L5 .. It is saying unpermotted although I permitted
[11:32:41] dionysus69: hmm ok i ll switch to that topic after I figure out why my styling is gone on the site and only on heroku i tried asset cleaning and precompiling and pushing again again and again without results :S
[11:33:07] jhass: dionysus69: link?
[11:33:14] rushed: arup_r: it's an array
[11:33:19] _utah_: has joined #RubyOnRails
[11:33:35] arup_r: I overlooked it
[11:33:38] dionysus69: jhass: http://www.socialatlas.net/ I look at css assets and they are pretty much empty
[11:33:54] arup_r: I need to use invities: []
[11:34:26] jhass: mmh, well yeah, http://www.socialatlas.net/assets/application-b05ecb8b4cc1b393c54752ca89714857cef5ad880de5cd141f01e7e27df88df2.css 404s
[11:35:05] jhass: wonder if you ignore some failure output or warnings in your build
[11:36:20] dionysus69: dunno i might have missed something, but point is that i am checking what might be wrong and cant assume anything
[11:36:50] jhass: so far you're not checking much, just repeating what lead to failure in the past over and over again
[11:37:09] arup_r: As `invities` is not an model attr, I am getting "ActiveRecord::UnknownAttributeError".. So how should I validate it ?
[11:37:19] arup_r: https://gist.github.com/aruprakshit/85bd334035c0843a689f#file-log-sh-L7
[11:37:42] PlasmaStar: has joined #RubyOnRails
[11:38:10] quazimodo: has joined #RubyOnRails
[11:38:16] ldnunes: has joined #RubyOnRails
[11:38:25] dionysus69: I am looking at scss files for errors :s
[11:38:42] jhass: dionysus69: can't give any real tips with that amount of information. Carefully check the build log, use heroku run to inspect what files are generated in public/assets, things like that
[11:39:14] dionysus69: hmm ok I ll figure it out hopefully :D thanks jhass ))
[11:39:20] syath: has joined #RubyOnRails
[11:39:24] robotbrain: has joined #RubyOnRails
[11:39:34] dopamean_: has joined #RubyOnRails
[11:44:35] gerardc: has joined #RubyOnRails
[11:44:35] arup_r: No idea why it is telling the error.. It should work
[11:44:38] annlewis: has joined #RubyOnRails
[11:47:21] redmaverick: has joined #RubyOnRails
[11:47:24] jenrzzz: has joined #RubyOnRails
[11:48:53] relix: has joined #RubyOnRails
[11:48:58] rvanlieshout: because the attribute is uknown?
[11:51:55] atomical: has joined #RubyOnRails
[11:52:24] roxtrongo: has joined #RubyOnRails
[11:53:02] arup_r: rvanlieshout: That's a shit typo I did :(
[11:53:07] arup_r: I am tired I fee it
[11:53:58] hightower4: has joined #RubyOnRails
[11:54:59] pawnbox: has joined #RubyOnRails
[11:55:10] rustymyers: has joined #RubyOnRails
[11:55:51] bruno-: has joined #RubyOnRails
[11:56:11] redmaverick: without using named routes how to make this work: => resource :sessions/:token, only: [:show]
[11:56:33] redmaverick: basically I need a GET request for sessions/:token
[11:56:55] Ropeney: has joined #RubyOnRails
[11:57:15] redmaverick: resource :session, only: [:show] do
[11:57:15] redmaverick: resource :token
[11:57:58] rvanlieshout: collection do
[11:58:06] rvanlieshout: token is not a subresource
[11:58:38] redmaverick: ok.. let me try
[11:58:58] voker57: has joined #RubyOnRails
[11:59:52] renews: has joined #RubyOnRails
[12:01:03] srinidhi: has joined #RubyOnRails
[12:01:15] kiloreux: has joined #RubyOnRails
[12:02:10] dionysus69: I am getting this error: https://gist.github.com/webzorg/2811b50026e887b4bcf6, I need to note that my file is scss.erb :| any ideas?
[12:03:09] jhass: dionysus69: that's just a symptom and what I pointed out earlier with saying blabla 404s
[12:03:52] dionysus69: yes the file isn't found, I assume the file is getting named something while being precompiled and the rails thinks its named something else
[12:04:39] havenwood: has joined #RubyOnRails
[12:05:23] jhass: you don't need to assume it
[12:05:38] mostlybadfly: has joined #RubyOnRails
[12:05:39] jhass: heroku run "p Dir.entries('public/assets')"
[12:05:51] dionysus69: ok i ll check if thats the case, I changed erb to scss
[12:09:41] exadeci: has joined #RubyOnRails
[12:11:06] atomical: has joined #RubyOnRails
[12:11:29] arup_r: .where not understanding the association name here @user.attorneys.where(account_attorneys: {attorney_for: 'user'}) https://gist.github.com/aruprakshit/25867d16a69f29eea16f
[12:11:35] arup_r: What wrong I am doing ?
[12:12:10] centrx: has joined #RubyOnRails
[12:13:06] darrencauthon: has joined #RubyOnRails
[12:13:24] dionysus69: jhass: I found this exists http://lasha.herokuapp.com/assets/application-82da6c8c9f84f26d659466b8310129222d7adc5acb4a0599d048e5fdfd4f5a7c.css
[12:13:41] jhass: interesting
[12:15:09] jhass: dionysus69: you do not commit any files in public/assets to your project, or do you?
[12:15:30] dionysus69: no I dont, I have it ignored in gitignore
[12:15:39] dionysus69: can that be an issue?
[12:15:54] dionysus69: but it was working like that for a while
[12:15:57] jhass: it would be an issue if you had done so
[12:17:08] dionysus69: hmm well ye I just checked the filenames are different and the one in heroku asset folder is old because it is missing some stuff
[12:17:10] jhass: gotta eliminate the silly stuff too, tmp/ is completely in your .gitignore too I hope?
[12:17:49] dionysus69: yes tmp is ignored as well
[12:18:23] dionysus69: i am just sure it will be silly thing in the end that got me stuck
[12:18:34] jhass: and you see this https://devcenter.heroku.com/articles/rails-asset-pipeline#compiling-assets-during-slug-compilation during build, no further output/warnings?
[12:20:45] Grundell: has joined #RubyOnRails
[12:21:36] dionysus69: nope i just run it successfully
[12:21:44] dionysus69: gonna check if the generated scss file is different
[12:22:22] dionysus69: https://gist.github.com/webzorg/0b24783e9b4bdd6c293f
[12:22:55] jhass: you don't see this? then you should run through the troubleshooting section of that link
[12:25:16] dionysus69: this is the full output of when I run precompile on heroku https://gist.github.com/webzorg/0ccfd7f0f1efd1382b81
[12:25:45] acti0nman: has joined #RubyOnRails
[12:26:35] Pumukel: has joined #RubyOnRails
[12:26:37] dionysus69: the troubleshooting part doesn't apply to me, precompile runs :)
[12:28:24] northfurr: has joined #RubyOnRails
[12:28:37] jhass: dionysus69: it should run automatically when you git push
[12:28:50] dionysus69: ok i figured out the cause
[12:29:05] sami: has joined #RubyOnRails
[12:29:08] dionysus69: new css file isnt being generated in assets
[12:29:30] dionysus69: its the old one sitting and rails asks for new one which was generated (somewhere else)
[12:29:55] jhass: uhm, yes that's obvious since at least an hour
[12:30:23] jhass: hence I'm asking you stuff like "do you see this output in your build"
[12:30:31] jhass: "do you see any warnings/errors in your build"
[12:31:38] sami: Hi, I'm trying to get my modeling done and not sure how to do this. I've got one table refereing to another one. table one: "id: 1, name: test1", "id: 2, name: test2". Table two: "id:1, t1_ref: 1 2"
[12:31:48] jholm: has joined #RubyOnRails
[12:31:49] sami: I'm I somehow making sense?
[12:32:36] jhass: not too much
[12:32:38] jkamenik: has joined #RubyOnRails
[12:32:38] helpa: Please do not use fake values, as they can be confusing or misleading. Sometimes both.
[12:32:50] ayonkhan: has joined #RubyOnRails
[12:32:54] Sylario: sami : did you read the rails guide about associations ? http://guides.rubyonrails.org/association_basics.html
[12:33:13] sami: Sylario: I obviously didn't et it :(
[12:33:32] jhass: sami: do you want a many to many association?
[12:33:46] jkldfg: has joined #RubyOnRails
[12:33:49] Sylario: also what is your level in relational database?
[12:33:57] sami: https://gist.github.com/anonymous/e291e84449cabe1bd044
[12:34:40] sami: What I want is to have Used reference multiple rules.
[12:35:25] quazimodo: has joined #RubyOnRails
[12:35:31] sami: The problem is that multiple IDs aren't ints.
[12:35:38] sami: Not sure how to refer them
[12:36:10] wethu: has joined #RubyOnRails
[12:36:19] jhass: sami: http://guides.rubyonrails.org/association_basics.html#the-has-many-through-association
[12:36:26] cornerma1: has joined #RubyOnRails
[12:36:58] bruno-: has joined #RubyOnRails
[12:37:31] sami: jhass: In that case. Could an appointment have multiple physicians?
[12:37:34] futilegames: has joined #RubyOnRails
[12:38:11] jhass: but appointment is what's missing in your datamodel
[12:38:19] jhass: you have patient and physician
[12:39:49] njero: has joined #RubyOnRails
[12:41:31] jhass: though Used sounds a bit fishy
[12:41:34] jhass: what are you doing?
[12:43:49] sami: I have a table describing 2000+ rules and another table describing procedures. Each procedure uses multiple rules.
[12:43:52] dhjondoh: has joined #RubyOnRails
[12:44:01] Scripore: has joined #RubyOnRails
[12:44:45] umgrosscol: has joined #RubyOnRails
[12:45:19] sami: jhass: Used is actually called Procedure, not Used. Was a typo when I "copied"
[12:45:38] dopamean_: has joined #RubyOnRails
[12:45:40] jhass: good, was just suggesting to rename it :P
[12:46:17] dionysus69: jhass: I have rails 4, i found that it doesnt even support precompilation anymore... :S
[12:47:12] sami: Just a quick question. When creating the "middleman" table. Would this suffice? "rails generate model RuleUsed rule:reference procedure:reference"
[12:47:15] jhass: so Rule has_many :rule_usages, has_many :procedures, through: :rule_usages, Procedure has_many :rule_usages, has_many :rules, through: :rule_usages, RuleUsage belongs_to :rule, belongs_to :procedure
[12:47:24] jhass: it should, yes
[12:47:47] jhass: and then you also have a place for whenever you'll need to add some metadata about the usage
[12:47:59] jhass: like how often it's violated or whatever might come up
[12:48:00] sami: jhass: Thanks
[12:48:10] jhass: dionysus69: eh, sure it does
[12:48:19] jhass: where did you gather that BS
[12:48:44] dionysus69: hmm maybe what it means that it does it automatically?
[12:48:51] dionysus69: and I figured maybe one thing
[12:49:06] loechel: has joined #RubyOnRails
[12:49:11] victortyau: has joined #RubyOnRails
[12:49:17] jhass: it didn't really change compared to Rails 3
[12:49:18] dionysus69: please tell me I can totally delete public dir on heroku, how do I do that?
[12:49:30] dionysus69: I want it to regenerate
[12:49:37] jhass: idk, I don't actually use Heroku
[12:49:50] dionysus69: ok i ll look around ^>^
[12:50:00] dionysus69: what do you use just curious :D ?
[12:51:01] dionysus69: oh I see, btw I found ... rake assets:clobber clean doesnt work anymore
[12:51:55] cajone: has left #RubyOnRails: ()
[12:53:44] pyemkey: has joined #RubyOnRails
[12:54:09] gerardc: has joined #RubyOnRails
[12:54:32] bmurt: has joined #RubyOnRails
[12:55:06] pyemkey: Hello all. I have question not directly related to rails. How can I exclude index page with query parameters. For example mainpage.com index at now mainpage.com/?q=dasdsa.
[12:57:09] dionysus69: why the hell did anyone come up with word clobber after clear and clean
[12:57:31] allcentury: has joined #RubyOnRails
[13:00:16] Kallis: has joined #RubyOnRails
[13:01:12] northfurr: has joined #RubyOnRails
[13:01:35] rvanlieshout: pyemkey: exclude from what?
[13:02:00] pyemkey: rvanlieshout: exclude from google indexed pages
[13:03:28] arup_r: How may I help you folks ?
[13:05:26] rvanlieshout: pyemkey: it's that something you explain google in robots.txt?
[13:09:35] poli: has joined #RubyOnRails
[13:10:01] jeadre: has joined #RubyOnRails
[13:10:37] pyemkey: rvanlieshout: problem is that I don't know how to formulate correct directive to exclude question params. What do you think about Disallow: /*?
[13:12:20] rvanlieshout: dunno. did you find documentation about how google uses that file?
[13:12:34] sevenseacat: has joined #RubyOnRails
[13:13:03] jhass: dionysus69: assets:clean still, not plain clean
[13:13:19] jhass: but after a clobber there shouldn't be anything left to clean
[13:14:41] jottr: has joined #RubyOnRails
[13:15:22] hmnhf: has joined #RubyOnRails
[13:15:48] dionysus69: jhass: the problem is that assets:clean or assets:clobber, none delete anything
[13:16:03] dionysus69: when I run heroku run ls public/assets it still contains all the old stuff
[13:16:39] dionysus69: it just worked...
[13:16:40] pyemkey: rvanlieshout: I did. I've found that I should use Disallow: /*?*p=
[13:16:44] dionysus69: i dont know how lmfo
[13:16:56] emilebosch: has joined #RubyOnRails
[13:18:18] kies: has joined #RubyOnRails
[13:18:26] dionysus69: jhass: clobbering locally and pushing worked, i have public/assets dir in gitignore so it doesnt make sense how it solved it
[13:19:26] cajone: has joined #RubyOnRails
[13:19:36] ecnalyr: has joined #RubyOnRails
[13:20:28] atomical: has joined #RubyOnRails
[13:20:30] a1fa: has joined #RubyOnRails
[13:24:02] greengriminal: has joined #RubyOnRails
[13:26:47] n1lo: has joined #RubyOnRails
[13:27:27] Spami: has joined #RubyOnRails
[13:29:13] arup_r: I am doing wrap_parameters :profile to wrap an params inside `profile` as root key. It is not wrapping the image upload data inside the `Profile`. Any idea why ? https://gist.github.com/aruprakshit/8cb06748a7814b228c07#file-profilescontroller-rb-L43
[13:29:30] SolarSailor: has joined #RubyOnRails
[13:29:55] redondo: has joined #RubyOnRails
[13:30:54] joshkovach: has joined #RubyOnRails
[13:31:50] arup_r: This is happening for the action `update` ... but not the upload action
[13:32:23] Cork: anyone experienced the assets truncating svg files?
[13:32:46] Cork: i have a specific svg file that it keeps cropping of the </g></svg> from (randomly)
[13:32:47] emilebosch: has joined #RubyOnRails
[13:33:03] northfurr: has joined #RubyOnRails
[13:33:30] juanpaucar: has joined #RubyOnRails
[13:33:43] dionysus69: this gem https://github.com/jhollinger/ruby-etherpad-lite#basic-usage is updated 2 years ago last time, does it mean its dead?
[13:34:09] JEEB: I'd say yes :P
[13:34:45] arBmind: has joined #RubyOnRails
[13:34:45] rvanlieshout: that doesn't mean it's dead no
[13:35:39] JEEB: well if the repository is dead then it's most certainly dead unless someone forked it
[13:35:51] rvanlieshout: not if the gem just doesn't need updates atm
[13:35:52] sevenseacat: if it doesnt need any more fixes, whats wrong with it?
[13:36:04] JEEB: well, true
[13:36:09] JEEB: if it's something really simple
[13:36:16] rvanlieshout: or if it just still works
[13:36:39] JEEB: generally though, I'd be vary if there haven't been changes recently. If I thought about depending on it I'd be poking the upstream dev and checking if he's still interested in the project.
[13:36:52] JEEB: if he is, then it's all fine and it's not dead per se
[13:37:01] sevenseacat: i'd at least spend ten minutes installing it and checking it out
[13:37:07] sevenseacat: and not presuming that the maintainers are all men
[13:37:33] devdazed: has joined #RubyOnRails
[13:37:51] JEEB: well yes, but I thought the person with the question already did that
[13:39:01] pawnbox: has joined #RubyOnRails
[13:39:03] sevenseacat: it's not a good idea to make assumptions like that.
[13:40:26] arup_r: So no idea.. why it is not under `'profile' = {.. }` .. :/
[13:41:15] charliesome: has joined #RubyOnRails
[13:41:52] nahp: has joined #RubyOnRails
[13:41:57] nahp: has left #RubyOnRails: ()
[13:42:20] nahp: has joined #RubyOnRails
[13:42:30] Guest52447: has left #RubyOnRails: ()
[13:42:50] nahp: as a complete idiot to all this stuff, does running migrations require downtime
[13:43:03] strcmp1: has joined #RubyOnRails
[13:43:06] sevenseacat: not typically, anyway
[13:43:33] silverdust: has joined #RubyOnRails
[13:44:09] zpe: has joined #RubyOnRails
[13:44:41] dionysus69: ruby etherpad lite should depend on etherpad lite which is written in nodejs, can I use nodejs app along with rails ? or I would need gem version of that app in order to use it??
[13:46:00] jenrzzz: has joined #RubyOnRails
[13:46:30] ldnunes: has joined #RubyOnRails
[13:47:11] sevenseacat: dionysus69: it looks like they run separately, so you'd need to maintain your own running copy of the nodejs app
[13:47:29] sonofdirt: has joined #RubyOnRails
[13:47:34] emilebosch: has joined #RubyOnRails
[13:47:45] arup_r: nahp: but you need to restart the server after that...
[13:47:48] darrencauthon: has joined #RubyOnRails
[13:47:53] arup_r: I think you meant that as a downtime
[13:48:04] dionysus69: so I cannot load nodejs just like regular js on a particular page? because I want that app to be part of rails :S
[13:48:24] sevenseacat: dionysus69: nodejs is server-side, so no
[13:48:54] bronson: has joined #RubyOnRails
[13:49:03] dionysus69: ok thanks :s I ll think of some ways
[13:49:14] darrencauthon: has joined #RubyOnRails
[13:49:36] jamiely: has joined #RubyOnRails
[13:52:15] emilebosch: has joined #RubyOnRails
[13:52:59] HalcyonicStorm: has joined #RubyOnRails
[13:53:16] jenrzzz: has joined #RubyOnRails
[13:53:18] njero: has joined #RubyOnRails
[13:53:33] MartinElvar: has joined #RubyOnRails
[13:54:22] MartinElvar: has joined #RubyOnRails
[13:54:34] iateadonut: has joined #RubyOnRails
[13:55:01] emilebosch: has joined #RubyOnRails
[13:55:29] michael_mbp: has joined #RubyOnRails
[13:55:55] ildarsafin: has joined #RubyOnRails
[13:56:11] messysaurus: has joined #RubyOnRails
[13:56:21] MartinElvar: has joined #RubyOnRails
[13:56:48] illbyte: has joined #RubyOnRails
[13:58:33] jholm: has joined #RubyOnRails
[13:59:03] sonofdirt: has joined #RubyOnRails
[14:01:03] SolarSailor: has joined #RubyOnRails
[14:05:12] ildarsafin: has joined #RubyOnRails
[14:05:56] chouhoulis: has joined #RubyOnRails
[14:06:40] messysaurus: has joined #RubyOnRails
[14:07:28] johnflux: has joined #RubyOnRails
[14:08:22] fschuindt: has joined #RubyOnRails
[14:10:43] fschuindt: Guys, this relation works? Page belongs to Page; Page as many Pages; My intention is to create an menu-nested-like tree like an wiki.
[14:11:19] hashrocket: has joined #RubyOnRails
[14:11:33] sevenseacat: fschuindt: try it and see
[14:11:50] sevenseacat: also, we're not all guys here, just so you know.
[14:12:02] emilebosch: has joined #RubyOnRails
[14:12:08] fschuindt: sevenseacat: I think yes, just affraid
[14:12:15] sevenseacat: afraid of what?
[14:12:31] fschuindt: things get messy later
[14:13:20] fschuindt: what you mean? girls? sure I know it, it's just a dumb way to talk, I am not english speaker tho
[14:15:20] njero: dude... just call.... hey rubies :P
[14:16:41] emilebosch: has joined #RubyOnRails
[14:17:50] IceyEC: has joined #RubyOnRails
[14:18:26] suchness: fschuindt: In english you address a group of people with masculine 'guys' just as you would with most every language that uses gender. You're just causing drama.
[14:19:11] sevenseacat: suchness: sorry?
[14:19:17] ildarsafin: has joined #RubyOnRails
[14:19:43] suchness: sevenseacat: Hm?
[14:19:48] Scripore: has joined #RubyOnRails
[14:19:56] fschuindt: I just tought 'guys' was a general thing. But for real, dont give a f***
[14:20:12] sevenseacat: it was a friendly notice to a non-english speaker. there's no drama here.
[14:20:16] suchness: fschuindt: Ah, I thought it was you correcting people
[14:20:40] centrx: fschuindt, It is a general thing. Some people find a problem with it
[14:21:18] njero: common he got it.. lets keep move on rails :)
[14:21:22] sarink: has joined #RubyOnRails
[14:21:35] fschuindt: please hahaha
[14:22:08] jondot: has joined #RubyOnRails
[14:22:13] wethu: has joined #RubyOnRails
[14:23:04] centrx: We can't tolerate people using words imprecisely. It's an outrage
[14:23:11] centrx: fschuindt, it's called a 'self-join'
[14:23:21] diegorv: has joined #RubyOnRails
[14:23:23] centrx: fschuindt, http://guides.rubyonrails.org/association_basics.html#self-joins
[14:23:48] fschuindt: centrx: thank you
[14:24:13] centrx: fschuindt, but beware, some people consider 'self-join' to be a vulgar term, if you know what I mean
[14:24:39] jgpawletko: has joined #RubyOnRails
[14:24:41] dopamean_: has joined #RubyOnRails
[14:24:49] sevenseacat: wow, some people really take it personally when you make a single word suggestion, huh?
[14:25:35] ShiningFaith: has joined #RubyOnRails
[14:26:15] centrx: I think what you said made sense
[14:26:18] centrx: tends to change the subject though
[14:26:21] sevenseacat: ShiningFaith: evening
[14:26:36] ShiningFaith: I am started out on ruby
[14:26:46] ShiningFaith: thought I could make some friends and learn
[14:27:02] dionysus69: sure we are all about friends here!!!
[14:27:09] suchness: ShiningFaith: This is a decent enough place, you might check out #ruby as well.
[14:27:32] ShiningFaith: I was suprised with the development of ruby
[14:27:41] ShiningFaith: its like you can get things done super quick
[14:27:53] centrx: ShiningFaith, It is said that Ruby is optimized for programmer happiness
[14:27:57] ShiningFaith: compared to programming I never really understood anything
[14:28:08] ShiningFaith: specially the gems and rails :)
[14:28:21] ShiningFaith: its cool glad to meet you all
[14:28:22] sevenseacat: we're a bit spoilt with all the awesome libraries in ruby
[14:28:43] messysaurus: has joined #RubyOnRails
[14:29:13] ShiningFaith: I still have done pretty basics lol
[14:29:26] sevenseacat: just if you can think of a task, there's probably a gem out there that can help with it
[14:29:41] sevenseacat: especially for common web dev tasks in rails
[14:29:52] ShiningFaith: btw i am conused with the hosting bit
[14:29:58] emilebosch: has joined #RubyOnRails
[14:30:07] ShiningFaith: like the ruby project i upload into my hosting
[14:30:12] ShiningFaith: or does the hosting have to be compatible
[14:30:43] Sheperson: has joined #RubyOnRails
[14:30:50] ShiningFaith: I used nitros to learn
[14:30:51] sevenseacat: if you're using shared hosting (which i dont recommend) you'll need one that supports serving ruby applications
[14:30:56] jenrzzz: has joined #RubyOnRails
[14:30:56] Swappticon: has joined #RubyOnRails
[14:31:36] dionysus69: I recommend heroku for hosting rails apps from start, it helped me focus more on rails and less about hosting itself which could be pretty different subject by itself
[14:31:52] kies: has joined #RubyOnRails
[14:31:54] sevenseacat: aye, heroku is really easy to get going with (and free for basic apps)
[14:32:07] ShiningFaith: thank you very much!
[14:32:11] ShiningFaith: will definitely try it out
[14:33:07] ShiningFaith: damn are those big companies use heroku too?
[14:34:07] lampd1: has joined #RubyOnRails
[14:37:30] suchness: ShiningFaith: Most larger applications would probably not be hosted on heroku.
[14:37:48] suchness: ShiningFaith: And by larger I mean ones that go much further beyond just rendering html for a link.
[14:38:01] sevenseacat: suchness: you'd be surprised.
[14:38:19] JoshL: has joined #RubyOnRails
[14:38:29] suchness: 'Most' was the qualifier there.
[14:38:52] suchness: Ive migrated off of heroku more times than I can count.
[14:39:06] sarink: has joined #RubyOnRails
[14:39:14] suchness: Which would be around 4, my counting skills are not highly regarded.
[14:39:30] sevenseacat: so have I. but a lot of companies that don't have dedicated ops teams host there for simplicity.
[14:39:43] ShiningFaith: Right these gems are like lego blocks correct
[14:39:48] codenapper: has joined #RubyOnRails
[14:39:52] a1fa: is there a good document that outlines what logic should go into controller vs model? it seems like you can have same logic in both places
[14:40:33] suchness: ShiningFaith: Well. Lego blocks are renown for compatibility. The dies casting legos will work with ones from 20 years ago. Gems are a bit different in that regard. You'll fine some legos that don't fit eventually.
[14:41:19] sevenseacat: a1fa: the job of a controller is to process the incoming request and generate a response. if the logic doesn't relate to that, then it doesnt belong in a controller.
[14:41:21] codenapper: has joined #RubyOnRails
[14:41:25] ShiningFaith: so how do u define Rails then
[14:42:42] a1fa: sevenseacat: i have a customer/id/lock controller, so let's say i want to check if customer is locked, and lock, otherwise error out. is that a job for model? i'm currently doing it with validate do
[14:42:51] jimgreen: has joined #RubyOnRails
[14:43:21] centrx: ShiningFaith, Rails is a framework/set of libraries, generally used for MVC web applications
[14:43:56] bruno-: has joined #RubyOnRails
[14:44:01] mary5030: has joined #RubyOnRails
[14:45:32] sandstrom: has joined #RubyOnRails
[14:45:42] a1fa: ;) cornfused
[14:46:31] messysaurus: has joined #RubyOnRails
[14:47:47] suchness: a1fa: Why check if the person is locked?
[14:48:20] ShiningFaith: Na I understand
[14:48:26] suchness: a1fa: Your controller should just do something like @user = user.find :id ; @user.lock!
[14:48:33] ShiningFaith: I wish there is an easy way to learn
[14:48:52] ShiningFaith: cuz i never understand anything until i can do pratically
[14:48:59] ShiningFaith: guess my brains is hard wired that way
[14:49:15] suchness: ShiningFaith: There are many tutorials for rails that go over basic things like creating a todo list or writing a blog.
[14:49:39] ShiningFaith: any links you have in mind
[14:49:39] a1fa: suchness: basically turning the record into readonly
[14:49:51] MartinElvar: has joined #RubyOnRails
[14:50:38] suchness: a1fa: before_filter :raise_error_on_locked_user
[14:50:40] a1fa: suchness: currently i have @customer = customer.find :id; @customer.update(:locked TimeNow)
[14:51:05] a1fa: and in model, i have validate do if locked.present?
[14:51:19] a1fa: do what not
[14:51:31] messy: has joined #RubyOnRails
[14:52:05] jstodberg: has joined #RubyOnRails
[14:52:17] emilebosch: has joined #RubyOnRails
[14:53:06] JFlash: has joined #RubyOnRails
[14:53:44] a1fa: i kind of like that better
[14:54:15] a1fa: suchness: should i add if @customer ; @customer.lock!
[14:54:17] JFlash: Hi, I'm installing Ruby to run Rails on Openshift. Can I install 2.2.3 even if Openshift only supports 2.0 ?
[14:54:42] xcesariox: has joined #RubyOnRails
[14:54:52] suchness: a1fa: It's difficult to know how to direct you without knowing more broadly what it is you are trying to do.
[14:55:00] JFlash: I mean, I want o run on Openshift, I'm installing ruby on my computer
[14:56:28] Lightsword: has joined #RubyOnRails
[14:56:46] emilebosch: has joined #RubyOnRails
[14:57:01] naftilos76: has joined #RubyOnRails
[14:57:07] ShiningFaith: I installed ruby
[14:57:20] ShiningFaith: as well but I only see cmd
[14:57:32] ShiningFaith: is there a GUI like visuals studio
[14:57:53] naftilos76: what kind of GUI are you looking for?
[14:58:15] centrx: ShiningFaith, http://www.sitepoint.com/ides-rubyists-use/
[14:58:23] naftilos76: create/delete/edit databases and tables and row?
[14:59:24] ShiningFaith: create applicatin
[15:00:16] ShiningFaith: centrx u r great!
[15:01:44] jonathanwallace: has joined #RubyOnRails
[15:04:11] ShiningFaith: centrx tht was a superb site u just gave me
[15:04:30] centrx: Thanks, I found it all by myself with Google
[15:05:14] dionysus69: seriously dont waste time on ide research, just research which text editor would be best for you
[15:05:21] disgrntld: has joined #RubyOnRails
[15:05:34] joshkovach: has joined #RubyOnRails
[15:06:08] mustmodify: has joined #RubyOnRails
[15:06:25] dionysus69: if you are looking for something like visual studio for ruby it doesn't exist and depending on rubymine for example will unnecessarily hold you back
[15:06:28] mustmodify: Can someone explain why the route is patients_patients_dashboard instead of just ... patients_dashboard ? lizziewright.net
[15:06:43] mustmodify: Can someone explain why the route is patients_patients_dashboard instead of just ... patients_dashboard ? https://gist.github.com/mustmodify/3f47a849e43220e2b620
[15:06:51] ngscheurich: has joined #RubyOnRails
[15:06:57] mustmodify: I'm sure I'm overlooking something dumb.
[15:07:36] dionysus69: mustmodify: do you have domain called patients?
[15:08:26] Grundell: has joined #RubyOnRails
[15:08:36] dionysus69: i mean namespace
[15:08:38] mustmodify: When you say domain I think .com but I assume you mean something else. I'm going to say no. But I'm guessing, which
[15:08:40] cball: has joined #RubyOnRails
[15:08:58] mustmodify: I was like, listen, I've been using Rails since 2006 and I'm pretty sure that isn't a thing. :P
[15:09:26] dionysus69: haha I started using it this year sorry for confusing :D
[15:09:28] michael_mbp: has joined #RubyOnRails
[15:09:38] mustmodify: I have a patients controller, but not a namespace.
[15:09:53] davidheward: has joined #RubyOnRails
[15:10:10] dionysus69: hmm not sure then :s
[15:12:02] Rubie: has joined #RubyOnRails
[15:13:59] strcmp1: has joined #RubyOnRails
[15:14:24] dionysus69: if you go to http://www.socialatlas.net/contact you should see a map, but if you move to home action and back to contact, it doesnt show up anymore, can anyone sense why is that?
[15:15:16] messysaurus: has joined #RubyOnRails
[15:15:58] mustmodify: dionysus69: I get the following error in the console. "Failed to execute 'write' on 'Document': It isn't possible to write into a document from an asynchronously-loaded external script unless it is explicitly opened."
[15:16:20] mustmodify: dionysus69: beautiful background.
[15:17:22] dionysus69: haha its temporary i took it from some template :) so what do I do?? how do I make it load on every asynchronous load?
[15:17:24] mustmodify: dionysus69: I'm not sure about your issue but I would try wrapping your js, starting with 'function initialize' in this:
[15:17:26] emilebosch: has joined #RubyOnRails
[15:17:31] mustmodify: $(function(){ ... });
[15:18:12] dionysus69: oh maybe what you mean is document ready jquery check ??
[15:18:54] nbarnes2: has joined #RubyOnRails
[15:19:41] messy: has joined #RubyOnRails
[15:20:47] srinidhi: has joined #RubyOnRails
[15:24:22] s2013: has joined #RubyOnRails
[15:25:41] messysaurus: has joined #RubyOnRails
[15:27:04] messysaurus: has joined #RubyOnRails
[15:28:20] dopamean1: has joined #RubyOnRails
[15:28:29] zpe: has joined #RubyOnRails
[15:28:34] mary5030: has joined #RubyOnRails
[15:29:08] artto: has joined #RubyOnRails
[15:29:11] safety_cut: has joined #RubyOnRails
[15:29:49] beast: has joined #RubyOnRails
[15:30:16] pvertenten: has joined #RubyOnRails
[15:30:30] artto: has joined #RubyOnRails
[15:31:08] ramortegui: has joined #RubyOnRails
[15:31:39] qejk: has joined #RubyOnRails
[15:33:05] meatherly: has joined #RubyOnRails
[15:33:35] nya: has joined #RubyOnRails
[15:34:42] fedexo: has joined #RubyOnRails
[15:35:44] jenrzzz: has joined #RubyOnRails
[15:35:54] strcmp1: has joined #RubyOnRails
[15:36:48] sandstrom: has joined #RubyOnRails
[15:37:01] charliesome: has joined #RubyOnRails
[15:38:30] riotjones: has joined #RubyOnRails
[15:39:17] Cache_Money: has joined #RubyOnRails
[15:41:25] pawnbox: has joined #RubyOnRails
[15:43:26] mustmodify: has left #RubyOnRails: ()
[15:43:50] Scripore: has joined #RubyOnRails
[15:44:48] juanpaucar: has joined #RubyOnRails
[15:45:00] bruno-: has joined #RubyOnRails
[15:45:12] juanpaucar: has joined #RubyOnRails
[15:46:37] IceBear: has joined #RubyOnRails
[15:48:09] jenrzzz: has joined #RubyOnRails
[15:48:32] tubbo: hay s2013
[15:48:41] s2013: hows it going tubbo
[15:48:50] prestorium: has joined #RubyOnRails
[15:48:50] tubbo: oh you know
[15:48:54] tubbo: same old, same old
[15:49:02] s2013: for some reason letter opener isnt working.. like its not generating any emails.. really odd considering its been working.. oh well
[15:49:02] s2013: same here
[15:49:18] Maletor: has joined #RubyOnRails
[15:50:41] maz-dev: has joined #RubyOnRails
[15:51:21] meatherly: has joined #RubyOnRails
[15:53:05] joshkovach: has joined #RubyOnRails
[15:54:26] maz-dev_: has joined #RubyOnRails
[15:54:46] kinduff: has joined #RubyOnRails
[15:55:03] jcm: has joined #RubyOnRails
[15:55:24] jtthedev: has joined #RubyOnRails
[15:56:55] jtthedev: atmosx, your country is beautiful. Alot greener than american culture projects when speaking of the place. A lot greener and a lot more vegetation than I expected. I expected to come to desert like place.
[15:56:56] pvertenten: has joined #RubyOnRails
[15:57:17] _lazarevsky: has joined #RubyOnRails
[15:57:33] s2013: what country is that
[15:57:34] _lazarevsky: how can I make updated_at readonly
[15:57:41] emilebosch: has joined #RubyOnRails
[15:58:04] s2013: http://stackoverflow.com/questions/3342806/turn-off-updated-at-column-in-rails _lazarevsky
[15:58:28] [Butch]: has joined #RubyOnRails
[15:58:29] jtthedev: weirdness though, some guy today propsed php as the backend for a a android/ios app.... i started laughing because I thought it was a joke. It wasn't and when I saw he was straight faced, I got serious really quick,
[15:58:30] suchness: _lazarevsky: attr_reader :updated_at ?
[15:58:34] jtthedev: s2013, India
[15:58:48] s2013: india is alright
[15:58:48] meatherly: has joined #RubyOnRails
[15:59:02] s2013: its a huge shit hole but also parts of it is really nice, depends where you go
[15:59:08] _lazarevsky_: has joined #RubyOnRails
[15:59:12] _lazarevsky_: sorry mate I got d/ced
[15:59:18] _lazarevsky_: no I want to keep updated_at
[15:59:22] riotjones: has joined #RubyOnRails
[15:59:26] beauby: has joined #RubyOnRails
[15:59:27] _lazarevsky_: however, I am return updated_at from the front_end as well
[15:59:32] _lazarevsky_: can't turn it off on the front end
[15:59:32] s2013: did you read the link _lazarevsky_
[15:59:35] _lazarevsky_: ember is buggy as fuck
[15:59:41] ElSif: has joined #RubyOnRails
[15:59:41] s2013: it tells you how to make it read only
[15:59:46] sonofdirt: has joined #RubyOnRails
[15:59:54] jtthedev: I was in new delhi yesterday. went to a mall Emporio or something like that.. a lot nicer than American some american malls... but it was like upper class indians and they were kinda snobby... nice cars too
[15:59:55] mloy: has joined #RubyOnRails
[15:59:58] tubbo: _lazarevsky_: what version? it's become a lot better.
[16:00:05] jtthedev: today in Jodphur, a lot more... ermm
[16:00:09] jtthedev: .... humble?
[16:00:14] s2013: depends who you are with
[16:00:20] jtthedev: and hot as shit.... i sweated like 5 lbs today
[16:00:27] tubbo: _lazarevsky_: not sure what your issue is, but updated_at/created_at are part of rails itself. what do you mean by "read-only"?
[16:00:33] s2013: soem place has a lot of money but thats like 1% of the area.. rest of it is just piles of garbage
[16:00:37] nettoweb: has joined #RubyOnRails
[16:00:41] _lazarevsky_: tubbo: I am returning updated_at from the backend to the front-end
[16:00:45] nettoweb: guys can I compare if an array contains one or other word? Like this: tags.include? ("word1" || "word2") ?
[16:00:48] _lazarevsky_: I have defined on my front end model updatedAt
[16:01:00] _lazarevsky_: so when I send a PUT request
[16:01:16] _lazarevsky_: I send through the old value initially returned from the server for updatedAt
[16:01:32] tubbo: _lazarevsky_: oh i see what you're saying
[16:01:36] _lazarevsky_: and I have computed properties which depend on that value
[16:01:38] s2013: nettoweb not liek that
[16:01:50] centrx: nettoweb, One way: tags.detect { |x| ['word1', 'word2'].include?(x) }
[16:02:05] s2013: you can do ["word1", "word2"].any? { |w| tags.include? w }
[16:02:06] _lazarevsky_: tubbo: any help pls?
[16:02:21] _lazarevsky_: tubbo: that's why I wanted to make updated_at read onyl
[16:02:27] codenapper: has joined #RubyOnRails
[16:02:29] _lazarevsky_: so that it's only updated by active record u see..
[16:02:34] s2013: _lazarevsky_ Jesus dude.. read the link i sent
[16:02:42] s2013: it tells you exactly how to make it read only
[16:02:46] tubbo: _lazarevsky_: ^ lol
[16:03:01] tubbo: actually s2013 is wrong
[16:03:05] slash_nick: Hey, can someone help me with rendering an arbitrary bit of scss using Tilt or Sass?... I've tried Tilt::ScssTemplate.new { "$foo: blue;" }.render (#=> "")... also Sass::Engine.new("$foo: blue;", syntax: :scss) (#=> "")... The string ".foo { color: blue }" works
[16:03:09] tubbo: _lazarevsky_: https://github.com/emberjs/data/pull/303 is what you want
[16:03:19] _lazarevsky_: it should be timestamps!
[16:03:25] _lazarevsky_: cuz currently updated_at is datetime
[16:03:29] tubbo: _lazarevsky_: set the property to readOnly in DS.attr(), so Ember-Data won't pass the param
[16:03:36] _lazarevsky_: tubbo: I did do that
[16:03:47] tubbo: _lazarevsky_: what version of ember-data are you using?
[16:04:09] _lazarevsky_: tubbo: DEBUG: Ember Data : 1.0.0-beta.10+canary.30d6bf849b
[16:04:34] srinidhi: has joined #RubyOnRails
[16:04:40] slash_nick: It's been working for a while: Sass::Engine.new("$foo: blue; .foo { color: $foo }", syntax: :scss).render #=> ".foo {\n color: blue; }\n"
[16:04:45] tubbo: _lazarevsky_: this is the latest release https://github.com/emberjs/data/releases/tag/v1.13.11
[16:04:57] _lazarevsky_: tubbo: I know.. can't afford to migrate now
[16:05:08] _lazarevsky_: I think I'll just change the type of updated_at to timestamps
[16:05:12] _lazarevsky_: and voila, should solve my problem
[16:05:15] messysaurus: has joined #RubyOnRails
[16:05:37] tubbo: _lazarevsky_: in ember-data? yeah i think that works. because i've definitely never dealt with this issue...and i have timestamps on all my models.
[16:05:59] tubbo: _lazarevsky_: but for future reference, that readOnly thing will help you if you don't want certain attrs to be passed back during update/create requests
[16:06:18] tubbo: ember may be loosely documented, but it's certainly not buggy in my experience.
[16:06:36] tubbo: especially now that they got rid of 2-way data binding by default
[16:07:10] tubbo: i found the ember upgrade path to be quite easy honestly
[16:07:51] AzaToth: has joined #RubyOnRails
[16:07:52] cschneid_: has joined #RubyOnRails
[16:07:58] _lazarevsky_: tubbo: ... we're still on ember 1.7
[16:08:01] _lazarevsky_: too scared to upgrade lol
[16:08:22] _lazarevsky_: now s2013, what'll happen to the values for updated_at when i change the data type to timestamps ?
[16:08:49] tubbo: bet ya none of this is gonna work
[16:09:03] tubbo: because your problem is still ember is passing the data back to the server
[16:09:19] tubbo: someone, somewhere needs to stop that from happening. you either need to disallow the param to be set with strong_params, or you need to stop ember from sending it
[16:09:25] theery: has joined #RubyOnRails
[16:09:28] _lazarevsky_: tubbo: that's alright.. the server won't update the updated_at field
[16:09:32] dudo: has joined #RubyOnRails
[16:09:40] tubbo: seems like just filtering the param out and dealing with the extra log message is the quickest way to do that
[16:09:54] _lazarevsky_: tubbo: ideally i'd like to prevent it from being sent from the front end to begin with
[16:09:55] tfitts: anyone use awesome_nested_sets or something similar? I'm trying to figure out if it's possible to eager-load the set with ancestors
[16:09:57] smathy: has joined #RubyOnRails
[16:10:14] _lazarevsky_: tubbo: I've been stuck on this problem for 3 hours now
[16:10:17] tubbo: _lazarevsky_: but you can't do that, because you need the attribute for other computed properties
[16:10:30] tubbo: _lazarevsky_: so that's a like. you *do* need this attribute in your model and therefore the frontend ;)
[16:10:55] s2013: nvm i understood wrong my fault
[16:12:00] atmosx: jtthedev: haha thanks
[16:12:13] atmosx: _lazarevsky_: no one in screwed until the fat lady sings
[16:12:19] messy: has joined #RubyOnRails
[16:13:22] s2013: man i have so many trips planned
[16:14:15] thezanke: has joined #RubyOnRails
[16:14:21] _lazarevsky_: tubbo: I am using strong parameters mate
[16:14:33] _lazarevsky_: if I remove updated_at from the list an error is thrown
[16:14:59] safety_cut: has joined #RubyOnRails
[16:15:03] messysaurus: has joined #RubyOnRails
[16:15:27] thezanke: has joined #RubyOnRails
[16:16:02] bricker: has joined #RubyOnRails
[16:16:40] Scriptonaut: has joined #RubyOnRails
[16:17:10] jcm: has joined #RubyOnRails
[16:17:14] zendrix: has joined #RubyOnRails
[16:19:35] havenwood: has joined #RubyOnRails
[16:19:40] Scriptonaut: Hey guys, I'm having an issue submitting forms built with the form helpers. It submits just fine if I click the button, however it won't submit if I hit enter. It just closes the modal. The only way I can get it to submit by hitting enter is if ti put the submit button right below the text field on line 12, anywhere else and it won't. Here's the code: https://gist.github.com/robins35/6df084c2c38a8e0297cf
[16:20:04] _lazarevsky_: ok guys, so I update a model
[16:20:10] _lazarevsky_: on the rails side
[16:20:14] Scriptonaut: I would like it to submit both when I hit enter and when I click the button
[16:20:38] _lazarevsky_: like so =-> format.js { render :json => @project_team, :status => 200 }
[16:20:49] _lazarevsky_: this unfortunately loads all the associations of a projectTeam
[16:20:54] _lazarevsky_: namely, Project and a Team object
[16:21:05] _lazarevsky_: how can I only return the ProjectTeam model without the associated models?
[16:21:20] Denarii: has joined #RubyOnRails
[16:23:36] _lazarevsky_: hello! :) Anyone?
[16:24:14] zekriad: has joined #RubyOnRails
[16:24:25] pawnbox: has joined #RubyOnRails
[16:24:34] gerardc_: has joined #RubyOnRails
[16:25:36] messysaurus: has joined #RubyOnRails
[16:27:10] messy: has joined #RubyOnRails
[16:27:25] meatherly: has joined #RubyOnRails
[16:28:14] solars: has joined #RubyOnRails
[16:28:24] roxtrongo: has joined #RubyOnRails
[16:28:34] jcm: has joined #RubyOnRails
[16:28:45] nettoweb: has joined #RubyOnRails
[16:29:13] zpe: has joined #RubyOnRails
[16:30:13] towski_: has joined #RubyOnRails
[16:30:16] pvertenten: has joined #RubyOnRails
[16:30:36] messysaurus: has joined #RubyOnRails
[16:31:59] pawnbox: has joined #RubyOnRails
[16:33:51] Maletor: has joined #RubyOnRails
[16:33:54] DLSteve: has joined #RubyOnRails
[16:34:23] brycesenz: has joined #RubyOnRails
[16:35:16] slash_nick: _lazarevsky_: ProjectTeam.all
[16:35:25] slash_nick: unless i'm misunderstanding you
[16:35:38] _lazarevsky_: slash_nick: u are
[16:35:52] _lazarevsky_: in the update action on the controller
[16:36:02] brycesenz: Hi all. I'm having an issue I haven't seen before - I've cloned someone's Rails repo locally, but when I tried running "bundle install", nothing happened. And any normal rails commands, e.g. "rails c", basically tells me that rails isn't installed. I'm at a loss on how to fix this.
[16:36:02] _lazarevsky_: i go @project_team.save
[16:36:05] slash_nick: _lazarevsky_: !code
[16:36:05] helpa: _lazarevsky_: We cannot help you with your problem if you don't show us your code. Please put it on http://gist.github.com and give us the URL so we can see it.
[16:36:59] _lazarevsky_: slash_nick: https://gist.github.com/anonymous/fd22cbed43e365e2806a
[16:37:09] _lazarevsky_: check out line 9
[16:37:13] _lazarevsky_: that's where I return the object
[16:37:23] _lazarevsky_: now by default it uses the ProjectTeamSerializer
[16:37:28] _lazarevsky_: which includes the associations as well
[16:37:38] _lazarevsky_: I've created a new serializer called ProjectTeamOverviewSeralizer
[16:37:49] _lazarevsky_: which only includes tha attributes of the ProjectTeam model, excluding the associationsa
[16:37:57] _lazarevsky_: not too sure how to serializer the object using it
[16:38:02] fschuindt: has joined #RubyOnRails
[16:38:16] _lazarevsky_: I hope Im making myself clear.. if not, pls ask for clarification
[16:40:05] _lazarevsky_: slash_nick: ping
[16:41:24] kinduff: has joined #RubyOnRails
[16:41:45] renews: has joined #RubyOnRails
[16:43:43] axl_: has joined #RubyOnRails
[16:45:48] mices: there's no "longtext" in rails? just text?
[16:46:00] mices: data type ^
[16:46:05] atmosx: mices: yeah, why do you need longtext?
[16:46:15] atmosx: usually text (long) string (short)
[16:46:30] mices: for a column called notes
[16:46:38] atmosx: notes goes with text
[16:47:37] mices: there's no distinction in rails between what's in mysql varchar and longtext?
[16:48:09] jamiely: has joined #RubyOnRails
[16:48:24] zendrix: has joined #RubyOnRails
[16:49:13] centrx: mices, Correct
[16:49:16] centrx: mices, They are both strings
[16:49:19] messysaurus: has joined #RubyOnRails
[16:49:36] centrx: mices, There might be a way to get longtext, by specifying a long length for the t.string
[16:49:45] mices: what's the difference between text and string data type
[16:50:04] lipoqil: mices: As atmosx sad : usually text (long) string (short)
[16:50:14] atmosx: mices: change_column :articles, :body, :text, :limit => 4294967295
[16:50:18] atmosx: mices: http://stackoverflow.com/questions/4443477/rails-3-migration-with-longtext for details
[16:50:53] atmosx: mices: rails will update the column as needed. If you wanna be pedantic you can set the limit hash
[16:51:07] atmosx: err symbol
[16:51:08] centrx: mices, text and varchar are different in the database because they are typically stored differently and support different features
[16:51:38] bronson: has joined #RubyOnRails
[16:51:48] atmosx: I don't like the fact that I followed devise's howto and now I have an entire model for Roles... and the roles are current_user.role.name ... shit.
[16:52:06] atmosx: I can live with that but I don't understand the added complexity, as if we need to create a new class for everything.
[16:52:17] atmosx: should just go with a column.
[16:52:20] sonofdirt: has joined #RubyOnRails
[16:52:47] centrx: Figure this out: https://github.com/rails/rails/blob/dac822ef58ae05f0e805222fa8744116080165ac/activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb#L585-L592
[16:52:49] kinduff: has joined #RubyOnRails
[16:53:19] arup_r: has joined #RubyOnRails
[16:53:37] mices: so if i have a column with no really long entries and someone submits a form with an input field containing a lenghty amount of text rails is gonna change the string column to text behind the scenes?
[16:53:50] manfrin: has joined #RubyOnRails
[16:54:28] centrx: mices, no it won't do anything silently like that. You specify the length and type in the database migration and that sticks
[16:54:57] centrx: mices, but both varchar/nvarchar and text/longtext map to the Ruby "String" type
[16:54:59] arup_r: mices: if you think so.. make the column datatype as text
[16:55:12] kinduff: has joined #RubyOnRails
[16:56:29] mices: i thought string was short text was long so why does longtext map to string instead of text
[16:56:54] centrx: mices, they all map to Ruby String
[16:56:55] atmosx: mices: no it will automatically change the upper limit silently, going from MEDIUMTEXT to LONGTEXT.
[16:57:17] atmosx: Limit by default is 65535 bytes
[16:57:31] _lazarevsky_: pls guys.. have mercy on me
[16:57:39] mices: i'm looking at a list of rails data types, there's string and text
[16:57:46] MartinElvar: has joined #RubyOnRails
[16:57:53] atmosx: mices: awesome, where do you think you could find such a list?
[16:57:58] atmosx: mices: use your imagination
[16:58:16] mices: i dunno i googled it
[16:59:08] _lazarevsky_: https://gist.github.com/anonymous/35de17831433f9a5ac81
[16:59:14] _lazarevsky_: check this short gist
[16:59:17] _lazarevsky_: and the output
[16:59:38] _lazarevsky_: you'll notice that there's an additional node in the JSON called project_team_overview which is redundent and it's messing up with my front end serializer
[16:59:42] _lazarevsky_: how can I remove it?
[16:59:57] riotjones: has joined #RubyOnRails
[17:00:50] hoodow: has joined #RubyOnRails
[17:00:58] atmosx: mices: that works too :_)
[17:01:15] lipoqil: mices: The list exists. Gimme sec
[17:02:17] joshkovach: has joined #RubyOnRails
[17:02:24] eGGsha: has joined #RubyOnRails
[17:02:40] lipoqil: mices: http://api.rubyonrails.org/classes/ActiveRecord/ConnectionAdapters/TableDefinition.html#method-i-column
[17:02:42] troyready: has joined #RubyOnRails
[17:02:58] erich: has joined #RubyOnRails
[17:03:12] arup_r: _lazarevsky_: it seems you need to defined as_json for your custom serializer class
[17:03:22] arup_r: and inside that you can do that
[17:03:56] _lazarevsky_: arup_r: I'm not quite following
[17:04:12] _lazarevsky_: wadja mean by that?
[17:05:05] _lazarevsky_: arup_r: nvm SOLVED IT!
[17:05:07] arup_r: http://api.rubyonrails.org/classes/ActiveModel/Serializers/JSON.html#method-i-as_json
[17:05:20] _lazarevsky_: arup_r: format.js { render :json => { :project_team => @project_team }, :status => 200 }
[17:05:24] joshuakovach: has joined #RubyOnRails
[17:05:27] _lazarevsky_: realised that I was serializing it twice! :)
[17:06:00] _lazarevsky_: I love you guys!
[17:06:03] _lazarevsky_: you're the best!
[17:06:16] arup_r: nah.. I am not :(
[17:06:26] _lazarevsky_: whoops.. wrong channel
[17:06:36] _lazarevsky_: im outta here y'all! thanks again!
[17:09:12] jcm: has joined #RubyOnRails
[17:11:05] jenrzzz: has joined #RubyOnRails
[17:11:13] northfurr: has joined #RubyOnRails
[17:11:58] umgrosscol: has joined #RubyOnRails
[17:13:13] papercode: has joined #RubyOnRails
[17:13:51] messysaurus: has joined #RubyOnRails
[17:14:00] rakm: has joined #RubyOnRails
[17:15:37] smathy: has joined #RubyOnRails
[17:17:46] dudo: has joined #RubyOnRails
[17:20:58] marr: has joined #RubyOnRails
[17:22:14] _djbkd: has joined #RubyOnRails
[17:23:28] meatherly: has joined #RubyOnRails
[17:23:58] messysaurus: has joined #RubyOnRails
[17:24:00] tubbo: _lazarevsky_: who are you cheating on us with
[17:24:20] tubbo: oh it's #ruby :D
[17:24:24] _djbkd: has joined #RubyOnRails
[17:25:34] northfurr: has joined #RubyOnRails
[17:27:19] blackmesa: has joined #RubyOnRails
[17:30:01] zpe: has joined #RubyOnRails
[17:31:02] kinduff: has joined #RubyOnRails
[17:31:10] jcm: has joined #RubyOnRails
[17:35:23] johnflux: has joined #RubyOnRails
[17:35:26] mices: with a field like zip_code that uses numbers not for calculations should i use string or integer data type?
[17:37:52] bricker: mices: string for zip codes
[17:37:56] podman: has joined #RubyOnRails
[17:40:06] havenwood: has joined #RubyOnRails
[17:40:22] maz-dev: has joined #RubyOnRails
[17:41:37] messy: has joined #RubyOnRails
[17:41:57] mices: is that only because zip codes may likely contain the dash special char
[17:42:13] centrx: leading 0's
[17:42:15] erich: has joined #RubyOnRails
[17:42:21] smathy: Other countries use alphas too.
[17:42:28] mices: let's say a field like account_no then that's only numbers but no calculations will be performed on
[17:42:44] smathy: mices, integer.
[17:42:46] tubbo: i typically use strings until i can't anymore
[17:42:58] jcm: has joined #RubyOnRails
[17:43:09] otherj: has joined #RubyOnRails
[17:44:28] dionysus69: has joined #RubyOnRails
[17:45:24] pragmatism: has joined #RubyOnRails
[17:45:29] baweaver: has joined #RubyOnRails
[17:45:33] messysaurus: has joined #RubyOnRails
[17:45:56] bruno-: has joined #RubyOnRails
[17:46:34] baweaver: has joined #RubyOnRails
[17:47:06] mloy: tubbo, so, until they've unraveled?
[17:47:22] tubbo: hardee har harrrrr
[17:48:59] ekinmur: has joined #RubyOnRails
[17:50:05] sonofdirt: has joined #RubyOnRails
[17:50:17] joshkovach: has joined #RubyOnRails
[17:51:13] jondot: has joined #RubyOnRails
[17:51:26] ekinmur: has joined #RubyOnRails
[17:54:09] ekinmur: has joined #RubyOnRails
[17:54:43] lapide_viridi: has joined #RubyOnRails
[17:56:20] dionysus69: has joined #RubyOnRails
[17:56:52] ekinmur: has joined #RubyOnRails
[17:59:06] messysaurus: has joined #RubyOnRails
[18:01:09] pvertenten_: has joined #RubyOnRails
[18:01:53] _djbkd: has joined #RubyOnRails
[18:02:19] jeadre: has joined #RubyOnRails
[18:02:56] jtthedev: Can someone help me with a quick solution. I have a method that runs an API call to a foreign app and inserts all of the requested data into our local db. I need to add to this method that before all records are downloaded, to delete all of the records that were created today in the target DB table
[18:03:06] jtthedev: can someone help me out or point me in the right direction
[18:03:19] jtthedev: If this can be achieved in a single line of code, that would be great
[18:03:48] jtthedev: I can do this on the backend on the DB side, but I want to achieve it on the same method
[18:04:54] eGGsha: has joined #RubyOnRails
[18:05:41] tubbo: jtthedev: i think you can do records.where(created_at: Date.today).destroy_all, or potentially delete_all if that operation is too expensive (delete_all will do it all in one big SQL query iirc, but not run through callbacks or validations...the data is just gone)
[18:06:28] jtthedev: as long as it's just todays data, I am okay with that
[18:06:50] mloy: In rails 4 what file calls application.html.erb? I'm trying to follow a railscast to include JQuery Calendar Datepicker but the <body> in application.html.erb is just yielding to whatever's calling it.
[18:07:05] Starf0x: has joined #RubyOnRails
[18:07:42] mloy: Wait nvm I'm dumb.
[18:07:47] jtthedev: so if the table model is reps, i can do something like "Rep.where(created_at: Date.Today).destroy_all" ??
[18:09:05] kegan_: has joined #RubyOnRails
[18:09:08] sinkensabe: has joined #RubyOnRails
[18:09:49] ratmav: has joined #RubyOnRails
[18:09:54] gaussblurinc1: has joined #RubyOnRails
[18:11:22] smathy: jtthedev, I think that tubbo meant to say: `Foo.where("created_at >= ?", Date.current)`
[18:11:36] smathy: *Rep.where
[18:12:48] jtthedev: Smathy, thanks
[18:13:14] jtthedev: and after closing created at variable. do i do destoy_all after the parenthisis ?
[18:13:16] Sylario: has joined #RubyOnRails
[18:13:56] smathy: jtthedev, destroy_all will run any callbacks, delete_all will just run the SQL.
[18:14:11] baweaver: has joined #RubyOnRails
[18:14:52] christiandsg: has joined #RubyOnRails
[18:15:33] jtthedev: I need to do it inthe same method I am calling through a url path on a button. I would have this run first, and then have it fetch the remote records via the api call
[18:15:34] Lightsword: has joined #RubyOnRails
[18:15:52] jtthedev: the end game is that each time the api fetch is called, in that same call all records for the day are deleted
[18:17:29] messysaurus: has joined #RubyOnRails
[18:18:10] arup_r: jtthedev: You presentation is done?
[18:18:23] mices: where should i paste
[18:18:37] arup_r: some Js framework and Rails framework
[18:18:44] smathy: mices, see the topic
[18:18:51] arup_r: mices: Gist
[18:19:29] arup_r: https://gist.github.com/
[18:19:35] nym: has joined #RubyOnRails
[18:20:36] kegan_: i have an object that has a column for and is (for its functionality) dependent upon session id... it must be checked for and then, if non-existent, instantiated and saved upon any page load, and most of the site's functionality is contingent upon this operation being performed successfully
[18:20:44] kegan_: right now in application controller there's just a before_action for it, on _everything_
[18:21:02] kegan_: this feels gross
[18:21:03] mices: https://gist.github.com/anonymous/6612ede4a4b433993eea
[18:21:04] kegan_: what can be done
[18:21:09] kegan_: any hints?
[18:21:35] messysaurus: has joined #RubyOnRails
[18:22:11] northfurr: has joined #RubyOnRails
[18:22:22] jtthedev: arup_r, wasn't really a presentation, was a screening of programmers.. One decided to say that a good idea would be a php backend for the rest API that would talk to a communications platform. I started laughing and thought it was a joke. Within 3 or 4 seconds, after realizing he wasnt joking due to his straight face, I got it together. Spoke to the PM and asked him to excuse that person for any future conversations or involvement in the project
[18:22:23] safety_cut: has joined #RubyOnRails
[18:22:56] jtthedev: but i didnt tell him on the spot, i told him after today
[18:22:57] maz-dev: has joined #RubyOnRails
[18:23:44] jtthedev: so that it didnt seem like an asshole thing to do. but considering the application requirements involved and the fact that the only 2 platforms on the table is ruby and node
[18:23:52] jtthedev: why someone would bring up php in 2015, is beyond me
[18:23:57] arup_r: Papierkorb: What.. You lost your primary key fron User table .. ?
[18:24:16] arup_r: "ouch"...
[18:24:25] Papierkorb: arup_r: was directed at jtthedev's story
[18:24:32] manfrin: is it appropriate to post projects here (when I dont need help, just wanna show it off)
[18:25:09] bricker: manfrin: sure
[18:25:19] messy: has joined #RubyOnRails
[18:25:19] manfrin: www.podgram.com
[18:25:36] manfrin: just got it live on 'prod' last night, ran my scrapers to get my first 2 podcasts (with permission)
[18:25:45] manfrin: not much, there's a neat 'feed' thing when logged in
[18:26:09] manfrin: shows you the latest episodes of podcasts you follow, and an action tracker (right now just logs following/unfollowing)
[18:26:21] MartinElvar: has joined #RubyOnRails
[18:26:34] manfrin: but at this point everything is wired up and running, and code is in there to support comments, code is in there to check for (simple) permissions
[18:26:38] manfrin: mp3 processing
[18:26:44] smathy: mices, look at the permissions on the file mentioned. Looks like you might have run some part of your app as sudo at some point.
[18:26:59] tubbo: manfrin: i'm working on a podcast hosting app myself
[18:27:32] tubbo: we now have about 5 6+ hour recordings of the brother.ly parties, and i'm trying to redo the site so it supports hosting both video and audio podcast downloads
[18:27:45] tubbo: manfrin: what did you use to process the mp3s?
[18:27:48] troyready: has joined #RubyOnRails
[18:28:31] manfrin: right now just to convert from other formats
[18:28:47] manfrin: but soon going to make a processor to do actual audio manipulation (adding bumpers, ads, ets)
[18:29:05] manfrin: at some point I want them to be able to record, too
[18:29:08] manfrin: but for now just hosting
[18:29:22] manfrin: so many different subprojects are popping up now that I've gotten this far
[18:29:25] manfrin: it's awesome
[18:29:31] manfrin: my imagination is a great pm
[18:29:45] mices: smathy: that .pid file's not in the directory
[18:29:59] _djbkd: has joined #RubyOnRails
[18:30:17] tubbo: manfrin: cool. yeah i've been using amazon's elastic transcoder
[18:30:32] NBarnes: Am I insane for thinking, 'All these Ruby wrappers for Tesseract are kinda bad. I should write a new one that exposes all the functionality.'?
[18:30:42] manfrin: ooo, i might have to try that
[18:30:45] zpe: has joined #RubyOnRails
[18:30:45] manfrin: didnt even know about that
[18:30:54] manfrin: I'm just doing it with paperclip and ffmpeg D:
[18:31:00] manfrin: probably chewing up ec2 bil
[18:31:16] Spami_: has joined #RubyOnRails
[18:32:35] _djbkd: has joined #RubyOnRails
[18:32:59] smathy: mices, you do an `ls -l /tmp/spring/341b1c6d34a54e001ac462b77d255ebc.pid` and you get nothing?
[18:33:00] tubbo: manfrin: yeah, plus like i said i have to upload 6+ hours of 720p video. my server would be heavily taxed if i couldn't just directly upload that to S3. once it's on S3 i can kick off jobs to convert the file into other formats, like HLS.
[18:33:45] manfrin: I dont even have my processing in jobs yet
[18:34:04] manfrin: uploading a 30min audio file takes like a minute, even though it's only 10mb~
[18:34:22] manfrin: because that thread then processes it, and ffmpeg basically has to 'play' it
[18:35:12] mices: smathy: there's a file with no extension and a pid file but neither begin with 341
[18:37:31] lxsameer: has joined #RubyOnRails
[18:38:17] fifi-v: has joined #RubyOnRails
[18:38:48] smathy: mices, and do you get the same filename error each time?
[18:39:02] riotjones: has joined #RubyOnRails
[18:41:38] shilon: has joined #RubyOnRails
[18:42:00] papercode: has left #RubyOnRails: ("WeeChat 0.4.3")
[18:42:13] pvertenten: has joined #RubyOnRails
[18:43:03] meoblast001: has joined #RubyOnRails
[18:43:07] mices: i ran the command once
[18:43:35] mices: i see what's happening
[18:43:47] mices: i'm not sudo'd that's why i don't see it
[18:43:50] zekriad: has joined #RubyOnRails
[18:44:00] arBmind: has joined #RubyOnRails
[18:44:13] mices: but it didn't change anything the files still not there
[18:44:31] dionysus69: how do I save images to database, is carrierwave or paperclip better for this?
[18:44:59] manfrin: I like paperclip
[18:45:07] manfrin: it can save locally, but works great with s3
[18:45:24] manfrin: and their github page is pretty detailed, easy to follow
[18:45:53] dionysus69: but what if I dont wanna pay for s3 ? :S
[18:45:59] manfrin: I have awful memories of carrierwave, but this was at a company that was doing everything horribly wrong with rails, so that's a biased opinion
[18:46:11] manfrin: you dont need to use it, it can just save locally
[18:46:11] dionysus69: ok fine, how much would I need for s3 per month as a developer?
[18:46:16] ivanskie: has joined #RubyOnRails
[18:46:17] manfrin: also s3 has a free tier I think
[18:46:46] manfrin: As part of the AWS Free Usage Tier, you can get started with Amazon S3 for free. Upon sign-up, new AWS customers receive 5 GB of Amazon S3 standard storage, 20,000 Get Requests, 2,000 Put Requests, and 15GB of data transfer out each month for one year.
[18:46:50] dionysus69: save locally fine but heroku has a problem with it, it deletes static assets on every restart
[18:46:52] NBarnes: When I was working with images extensively, I eventually decided that storing images in local storage or, even better, cloud storage was GIGANTICALLY better than trying to save them as blobs or something in the db.
[18:47:03] manfrin: yeah, heroku doesnt like local assets
[18:47:04] NBarnes: And I worked on this for about a week and a half, since I really wanted to store them in the DB.
[18:47:05] Papierkorb: dionysus69: if you have a server already, and just want to store some uploaded images, I don't see a reason for S3
[18:47:19] ngscheur1: has joined #RubyOnRails
[18:47:28] NBarnes: well, storing them in flat files is semi-ok, except that if you're using heroku, the file system is ephemeral, so the files vanish the first time your dynos go to sleep.
[18:47:44] tubbo: dionysus69: S3 is like pennies, cost is not your concern.
[18:47:46] dionysus69: ye week and a half doesn't seem good :D no I dont wanna save to db anymore :D
[18:47:51] manfrin: and if you're not careful, you'll probably check those 'uploaded' images in to your repo
[18:47:52] manfrin: like I did
[18:47:58] NBarnes: S3 is free-to-cheap unless you're doing something really serious.
[18:48:00] manfrin: and was like 'why is my repo 200mb??'
[18:48:09] tubbo: the reason for S3 is the ability to also place your stuff in a CDN, which enables much faster rendering times and a more distributed nature for your site
[18:48:32] NBarnes: I once accidentally saved some League of Legends fanart to my assets directory. *>_<* Not my most glorious moment.
[18:48:45] NBarnes: What tubbo said about CDNs.
[18:48:46] Papierkorb: Check out CloudFlare, I use their free tier to serve images from their cache, which origin on my server
[18:48:56] dionysus69: ok decided I guess, sticking with paperclip and researching rest on s3
[18:49:24] NBarnes: fog is good-ish for interfacing with S3, works well with paperclip.
[18:49:33] dionysus69: Papierkorb: thanks, I have it setup already actually :)
[18:49:39] zendrix: has joined #RubyOnRails
[18:49:43] tubbo: yeah...the point is, stick with a CDN and host your images elsewhere, don't originate them off your own server. it's just one less thing your app server has to worry about
[18:50:00] tubbo: so while we're on this topic, i have a disturbing question
[18:50:05] tubbo: why am i using nginx?
[18:50:09] NBarnes: (good-ish because the last time I was using it, it handled folders incorrectly, so you had to manually define your directory structure to make it work, which is vexacious)
[18:50:23] Papierkorb: tubbo: why not nginx? It's fast, and easy to configure.
[18:50:30] tubbo: Papierkorb: i store all of my assets on S3, i always recall them from the CDN. this is *every* static asset file i have, btw. why do i need a static web server?
[18:50:31] maz-dev: has joined #RubyOnRails
[18:50:35] NBarnes: tubbo; I'm not even sure what nginx is, really. I have the luxury of using PAAS for everything.
[18:50:38] tubbo: nothing ever gets served off it
[18:50:50] tubbo: nbarnes: well google exists ;)
[18:50:54] toertore: has joined #RubyOnRails
[18:50:54] dionysus69: dont know, heroku uses puma right?
[18:50:56] Papierkorb: tubbo: I use passenger ;)
[18:51:00] jeadre: has joined #RubyOnRails
[18:51:02] armyriad: has joined #RubyOnRails
[18:51:31] NBarnes: tubbo; truth, but I could spend the rest of my life googling technologies I don't know what they are, so nginx shall remain a mystery to me for now. ;)
[18:51:39] Papierkorb: tubbo: but I also have better trust in nginx that it does HTTP 'right'. With HTTP/2.0 coming round, I have a good chance supporting that with nginx in a stable manner
[18:51:46] manfrin: tubbo if you stored everything on s3 and your site were static, you could actually host it on s3
[18:51:46] tubbo: Papierkorb: yeah but what does that mean?
[18:51:50] manfrin: aws gives you that option
[18:51:52] tubbo: does it actually affect you?
[18:51:53] manfrin: just point a domain to it
[18:51:59] Papierkorb: tubbo: affect me in what?
[18:52:08] tubbo: manfrin: yeah i know, that's how psychedeli.ca and brother.ly are hosted. ember apps ftw!
[18:52:09] dionysus69: i am on 0 on this topic since I have been using heroku from the very start and havent setup web servers for rails manually yet
[18:52:30] tubbo: Papierkorb: like, when you say "nginx does HTTP right"...what does that mean? how does it affect you?
[18:52:42] tubbo: i've yet to be "bitten" by something nginx did
[18:53:05] manfrin: dionysus69 I've been a rails dev for 3+ years now and I'm still awful at devops stuff
[18:53:07] manfrin: heroku is useful
[18:53:08] tubbo: or, more accurately, i've never "missed" nginx. it's never done anything useful for me other than run my rails app on 80 as a privileged user (whereas my rails app runs as an unprivileged user)
[18:53:11] jholm: has joined #RubyOnRails
[18:53:20] manfrin: when you want to 'graduate' from that, check out elastic beanstalk; very herokuey but more control
[18:53:31] zendrix: has joined #RubyOnRails
[18:54:21] Papierkorb: tubbo: HTTP/1.1 is hard to implement right, and nginx is battle tested in that regard. I'm positive that their HTTP/2 implementation will also be solid. I have trust in them in that regard. Compare that to e.g. puma, which has a much smaller user-base. I implemented an HTTP server myself, so I cringe everytime a server does not follow the RFCs, and I've yet to come across a ruby HTTP server which sends the friggin Date header in a response
[18:54:40] dionysus69: hmm ok, btw if I want to serve a regular website (meaning not much dynamic going on) will heroku dev plan be enough (it is like 7$ish per month)
[18:55:00] dionysus69: hobby plan I mean not dev
[18:55:11] Mendenhall: has joined #RubyOnRails
[18:55:12] tubbo: Papierkorb: interesting. the fact that we can just copy/paste nginx configs around makes it less of an issue
[18:55:38] tubbo: but still, i always questioned why app servers who never served a single static thing in their puny little lives would need nginx running on the box and proxying *everything* to the rails app?
[18:55:47] tubbo: like why not just run the rails app on :80, right? :)
[18:55:51] Papierkorb: tubbo: and it's well supported by init systems. My services are all managed through systemd services, and for nginx there are already proven configuration files for that
[18:56:28] NBarnes: dionysus; heroku's $7 hobby tier is fine for low-traffic stuff.
[18:56:28] Papierkorb: tubbo: afaik, with passenger, assets are served by nginx and don't reach your rails app at all
[18:56:41] tubbo: Papierkorb: if you choose to serve them on the same box, which i don't do.
[18:56:41] Papierkorb: tubbo: which doesn't seem to affect you though
[18:56:44] NBarnes: It doesn't have the sleep limitations of their free tier (by the way, fuck you and your sleep requirements, heroku)
[18:57:00] fryguy: tubbo: you buffer your rails app from the public internet because nginx is much better at handling non-standard requests than your rails app
[18:57:03] tubbo: Papierkorb: and that is actually a rails config setting, called serve_static_assets. otherwise rails will just 404 every call to an image, css or js file
[18:57:41] Papierkorb: tubbo: It's just that 1) nginx is battle tested 2) has tons of customers 3) good HW and protocol support 4) won't go away anytime soon 5) is pretty fast 6) I know nginx 7) many other know too so if you need help that's easy
[18:57:49] dionysus69: nbarnes: ye good to know, well heroku is so good that I cant blame it for sleeping free plans :D no one would actually host stuff on it otherwise :P
[18:57:50] tubbo: nbarnes: yeah, why can't they let me serve my memory leaking rails app for free? :rolleyes:
[18:58:04] pragmatism: has joined #RubyOnRails
[18:59:11] tubbo: fryguy: hmm, would this be mitigated at all if my app was already behind a load balancer of some sort?
[18:59:17] roxtrongo: has joined #RubyOnRails
[18:59:20] fryguy: tubbo: yes
[18:59:22] dionysus69: haha right, there sleeping is like killing an app, there is probably someone who has thousand apps created and maybe that someone forgot heroku even exists, seems like a waste to keep all those things running
[18:59:23] NBarnes: tubbo; YOU TAKE YOUR REASONABLE POINTS AND YOUR BALANCED PERSPECTIVES AND GET OUT!
[18:59:41] NBarnes: I WANT MY FREE HOSTING
[19:00:04] NBarnes: Besides, my apps don't leak memory. :/
[19:00:14] tubbo: nbarnes: at least heroku doesn't shove their own advertising content all over your site. that's how free hosting works.
[19:00:16] Papierkorb: tubbo: I actually have a nginx on the front-end and passenger/nginx on the backend. Need this because the app runs inside a linux container, and the front-end runs on the host and forwards requests to different containers based on the Host: domain
[19:00:25] NBarnes: tubbo; 'tis truth you speak.
[19:01:04] uris: has joined #RubyOnRails
[19:01:05] tubbo: s/works/worked back in the day*
[19:01:07] Papierkorb: tubbo: also, nginx has tons of migitations against 'common' DoS attacks which happen on the TCP/HTTP end. Like slow clients, etc.
[19:01:18] NBarnes: If I could get all my hobby stuff hosted without sleep requirements on a single plan, I'd like that option a lot more. But I'm really skeptical of paying $7 for EACH little tool I put together that gets a serious user every three days.
[19:01:36] tubbo: Papierkorb: yeah that makes sense. when i've been playing around with docker-compose, i always have a 'web' container that runs nginx and an 'app' container running my app, they proxy over tcp to each other.
[19:01:37] NBarnes: (but that user REALLY needs exactly what my tool does!)
[19:01:41] tubbo: figured the network can't be *that* slow on my own machine
[19:01:46] mices: disregard
[19:01:51] manfrin: aws has a free tier
[19:01:51] pvertenten: has joined #RubyOnRails
[19:01:54] manfrin: good for 1 app
[19:02:02] tubbo: Papierkorb: yeah i think that's what fryguy was talking about.
[19:02:05] manfrin: with lots of resources (for a free tier)
[19:02:10] dionysus69: nbarnes: wait 7$ per app ?:D or per account?
[19:02:19] NBarnes: Per app, my understanding is.
[19:02:31] manfrin: wait, so is this applied to all new heroku boxes?
[19:02:35] Papierkorb: nbarnes: have you checked out using some VPS hoster? You should be able to find a cheap one where you can run multiple low traffic apps without problems.
[19:02:36] manfrin: are old ones grandfathered?
[19:02:42] manfrin: OR ARE THEY KILLING MY IRC BOT?!
[19:02:46] NBarnes: Actually, you might be able to deploy a server that'll host multiple small apps from one heroku account. I don't know devops.
[19:03:03] NBarnes: manfrin; no grandfathering. WHERE IS YOUR IRC BOT NOW!
[19:03:09] manfrin: you could do it programatically, but you'd need to get in to the weeds with nginx
[19:03:20] manfrin: my bot lives still
[19:03:31] NBarnes: Yeah, they aren't actually killing anybody yet.
[19:03:45] NBarnes: But I get email from them every time an app doesn't sleep enough.
[19:03:46] Papierkorb: nbarnes: if you don't know devops .. DO use ssh keys, and disable password authentication. That alone saves you from a huge ton of bot attacks.
[19:03:46] manfrin: my bot is worthless and people in my irc channel might be relieved
[19:04:07] manfrin: all it does
[19:04:16] NBarnes: Papierkorb; I am noting down 'vps host' for later research.
[19:04:26] manfrin: is when someone says 'cloud' or 'data', it repeats them but replaces those words with 'butt' and 'dong', respectively
[19:04:32] manfrin: i am a child
[19:04:55] NBarnes: I want to be able to easily sort and manage big dong in my app?
[19:04:55] chouhoulis: has joined #RubyOnRails
[19:04:57] NBarnes: I like it.
[19:05:33] manfrin: i invited it in here, but i dont think i set it up to respond to invites
[19:05:34] dionysus69: ok one on-topic question, I found out that turbolinks works in a way that it caches resources, so if I go to the site and if I go to contact page the js google map is not loaded but if I go to to contact page and then refresh it does. how do I approach this problem if I want to "call" that js code on every action?
[19:05:51] manfrin: just ran in to that a few days ago
[19:06:01] manfrin: there's a gem that'll hook in jquery listeners
[19:06:03] manfrin: it is called...
[19:06:09] NBarnes: I can't help. Every time I touch turbolinks, I draw back a withered claw.
[19:06:23] dionysus69: guys you are scaring me haha
[19:06:32] Papierkorb: nbarnes: that's just a "virtual private server", also known as 'vServer'. Not to confuse with 'shared hoster' (!). Google for a hoster, and read up on them. Some claim to be VPSes while they're actually shared hosters, which you don't want. Depending on your country, you should be fine with some 10-15 euros per month or dollars. Also, don't use GoDaddy if you're in the US.
[19:06:35] manfrin: https://github.com/kossnocorp/jquery.turbolinks
[19:06:40] dionysus69: i am like a noob and you dont seem like noobs so when you say things like that I loose intension to learn anything :D :D
[19:06:41] manfrin: i was annoyed
[19:06:59] manfrin: like, i get you wanna add in turbolinks, dhh, but you break like EVERY jquery-reliant app out there
[19:07:02] NBarnes: Papierkorb; Thanks for the pointers, I appriciate it.
[19:07:03] manfrin: which is like 50% of all rails apps :{
[19:07:10] dudo: has joined #RubyOnRails
[19:07:26] NBarnes: I'm nice. I think.
[19:07:31] tubbo: dionysus69: if you're scared of that you better just stop coding now
[19:07:39] smathy: dionysus69, have you read https://github.com/rails/turbolinks#events ? Most people's issues are solved by understanding the actual events turbolinks uses.
[19:07:40] tubbo: "zomg i don't want to learn new things" - the worst programmer ever
[19:07:49] manfrin: dionysus69 https://github.com/kossnocorp/jquery.turbolinks << add that (add the gem, then add it to your js manifest) and things should work correctly
[19:08:00] manfrin: good on you for diagnosing that it was a turbolinks issue, though
[19:08:03] tubbo: i think turbolinks works well if you use it correctly.
[19:08:23] smathy: FWIW jquery.turbolinks is solving a technical delicate problem with a sledgehammer.
[19:08:31] manfrin: I'm going to try to see if I can hook it up right, so that my podcast audio player wont be interrupted by pageloads
[19:08:31] NBarnes: I imagine it does, I just haven't taken the time to learn it correctly. I imagine that most things that are mis-used are like that for anybody.
[19:08:32] dionysus69: lol tubbo come on I meant like experienced rails dev should exactly know what turbolink thing is about but some people here said that they were "still" not comfy with it :P
[19:08:53] manfrin: i have never explicitly used turbolinks
[19:08:57] sloggerkhan: I admit to disabling turbolinks and not using it.
[19:08:59] manfrin: in my rails career
[19:09:01] dionysus69: ok thanks guys will take a look at those solutions ))
[19:09:05] Papierkorb: nbarnes: also, being the admin of a server is a different beast if you're new to it. Take your time. Never ever use weak passwords, not even for "just 5 minutes". There are many many bots out there who try to hack into badly 'secured' servers. On the upside, you can do a lot on one. Quickly want to share some photos? Need e-mail? Try out some new web app with some friends? No problem. Also, "With great power comes great responsibility" :)
[19:09:06] NBarnes: In my experience, what you're comfortable with can be pretty varied, even amongst people with 'similar' experience.
[19:09:10] sloggerkhan: But I mostly build API driven apps.
[19:09:20] manfrin: or was ditto til this current job
[19:09:25] manfrin: now more frontendy stuff
[19:09:37] manfrin: but still no turboleekseeks
[19:09:41] andessen: has joined #RubyOnRails
[19:09:48] NBarnes: I haven't needed turbolinks to work on anything I've done, so I haven't had a reason to become familiar with the technicalities.
[19:09:49] lsone: has joined #RubyOnRails
[19:10:02] NBarnes: But I'm a lot more familiar with image manipulation than I was six months ago.
[19:10:06] kadoppe: has joined #RubyOnRails
[19:10:10] NBarnes: being a dev can be weird.
[19:10:10] manfrin: nbarnes are you me
[19:10:18] smathy: I use it and love it (although agree that adding it as a default, like spring, was not a great move for Rails).
[19:10:19] NBarnes: I don't think so.
[19:10:30] manfrin: the past like 4 months I've been working on image manipulation, before I knew nothing
[19:10:31] NBarnes: Are any of us anybody? Am I a butterfly dreaming of being a Rails dev?
[19:10:40] sloggerkhan: I think it was more useful before everything became driven by stuff like Angular and Backbone and there were still a lot plain pages.
[19:10:45] manfrin: if you are, maybe you just caused a hurricane in china~
[19:11:02] NBarnes: SloggerKhan; I had that same impression.
[19:11:06] manfrin: and that's the source of the disagreement (spat?) between dhh and katz
[19:11:37] jsrn_: has joined #RubyOnRails
[19:12:14] manfrin: dhh = rails + turbolinks, katz = rails + ember{data: {options: [:angular, :react, :backbone]}}
[19:12:17] Papierkorb: depends how you want to dev your app IMO. Turbolinks is great for writing smart webpages with dumb clients, but require good network connections for it to work good. Angular etc. are far more complex and require a much larger stack, but are more happy with flaky connections
[19:12:38] smathy: Funny, people speaking as if primarily server-based apps are outmoded.
[19:13:25] paulcsmith: has joined #RubyOnRails
[19:13:39] patrick_star: has joined #RubyOnRails
[19:13:41] sloggerkhan: smathy: I wouldn't say outmoded, but it's usually easier for me to maintain something where the front end is more loosely coupled to the back end than vice versa.
[19:13:43] Papierkorb: smathy: highly depends on the application what is better
[19:13:55] NBarnes: They totally aren't. It's more that (and this is what I think is going on) primarily static, server-side sites are considered a solved problem.
[19:14:05] smathy: Papierkorb, network stability is the least important factor in my decisions to use either client-heavy or server-heavy architectures.
[19:14:08] NBarnes: Where as the fresh hotness is all those front-end dynamic sites and tools.
[19:14:11] manfrin: nein, but the talk is that isomorphic apps are on the downturn, so when people think 'server', they think go, node, elixir
[19:14:18] manfrin: rails is in a weird position
[19:14:38] smathy: manfrin, "people" do eh? :)
[19:14:40] manfrin: it *can* be the backend to these js frameworks, but go or node are much more appriate
[19:14:54] NBarnes: Eh. I really like Rails for RESTful API servers.
[19:14:54] Papierkorb: smathy: my target audience is well known for having shitty network connection, so what I can do on device I do there :)
[19:15:00] manfrin: ye, last shop I was at was replacing our rails api with a go api, i see a lot of that happening
[19:15:08] manfrin: rails is great for making apis
[19:15:13] manfrin: rails is bad for scaling those up well
[19:15:29] craysiii: dont say that >.<
[19:15:38] manfrin: we replaeced so many bits in our api with raw sql, but it still could not even scratch 1/10th the speed of go
[19:15:38] craysiii: im in school for rails lol
[19:15:41] Papierkorb: Anyone in here took a look at Elixir/Phoenix? The latter just got to version 1.0
[19:15:43] tubbo: dionysus69: well, it's optional...so a lot of us just don't use it
[19:15:44] manfrin: no no, rails i great
[19:15:47] tubbo: Papierkorb: fuck. yes. it's amazing.
[19:16:03] manfrin: I'm just saying that rails exists in the middle -- it is *the best* isomorphic framework out there
[19:16:18] manfrin: but the current wave seems to be splitting these ends apart
[19:16:23] manfrin: in to back and front ends
[19:16:25] jgt3: has joined #RubyOnRails
[19:16:50] Papierkorb: manfrin: which is funny considering that especially nodejs is famous for doing that, where code could run perfectly fine on client and server
[19:17:03] dionysus69: just out of curiousity, will rails get damaged by node angular and js-es like that, and generally is rails gonna survive 2025 year mark?
[19:17:17] manfrin: nothing we code today will survive 2025
[19:17:25] craysiii: yet fortran remains..
[19:17:25] Pumukel: has joined #RubyOnRails
[19:17:28] dionysus69: i mean, general framework
[19:17:32] manfrin: i mean, yeah, you'll have relics
[19:17:40] manfrin: DOD's payment architecture is COBOL
[19:17:46] Papierkorb: dionysus69: haha, absolutely *no one* knows what's going on in ten years. You can barely estimate the next year, but that's already risky
[19:17:57] johnflux: I was trying to switch from bootstrap to polymer, but now I'm getting the error:
[19:18:03] johnflux: usr/local/bin/rails:23:in `load': cannot load such file -- /usr/share/rubygems-integration/all/gems/railties-4.1.8/bin/rails (LoadError)
[19:18:06] manfrin: 2 years ago react wasn't a thing, ember was huge, and angular was piquing peoples interests
[19:18:19] manfrin: now angular is old hat, people have forgotten about ember outside of the ember community, and react is huge
[19:18:25] Papierkorb: dionysus69: will rails be here in a year? YES. in two years? Yup. Three to five? Probably, maybe on the decline, maybe not. Beyond that? Who knows
[19:18:53] manfrin: you're learning to program -- the tableau you're using is rails, but those skills will translate over
[19:18:53] sloggerkhan: has left #RubyOnRails: ()
[19:18:54] johnflux: In /usr/share/rubygems-integration/all/ there is no folder gems
[19:19:03] sloggerkhan: has joined #RubyOnRails
[19:19:07] smathy: manfrin, your point is that the ghetto is fickle in what sparkly things they chase?
[19:19:14] smathy: I agree with that.
[19:19:27] Papierkorb: dionysus69: focus on learning the most out of rails, and keep an eye on things like Phoenix.
[19:19:37] greengriminal: has joined #RubyOnRails
[19:19:49] manfrin: literally everything you learn in rails will be useful elsewhere -- if not for the syntax then for the patterns
[19:20:04] dionysus69: dunno I just want to be learning something that will be long time :D its natural for everyone )) I am not saying i am gonna quit rails just because in 5 years it might be less popular, clients dont care what their app is written in, most of them at least
[19:20:06] smathy: ...or anti-patterns.
[19:20:10] gambl0re: has joined #RubyOnRails
[19:20:38] johnflux: I don't have rvm installed.. is that important?
[19:20:40] manfrin: it's like learning to survive in a forest, and then being transprorted around the world to a different forest
[19:20:46] manfrin: all the things you used to eat or avoid are different
[19:20:51] dionysus69: johnflux: ye install rvm
[19:21:01] manfrin: but you notice that that frog has the same weird reddish tint that the one you shouldnt eat does, so you avoid it
[19:21:13] manfrin: and those berries look kinda like the berries you used to eat, so you try them
[19:21:15] johnflux: dionysus69: It seems I can't just apt-get install it ?
[19:21:38] Papierkorb: dionysus69: forget the part "for a long time". This is IT, barely anything holds true for more than 5 years. technology wise, if you're two years behind, you're nothing. Learn how to structure code, patterns, algorithms, etc., all of that will come again and again.
[19:21:41] craysiii: and then you get that weird rash your mom told you about.
[19:21:52] mices: smathy: https://gist.github.com/anonymous/ab276592227258191c27
[19:21:56] dionysus69: johnflux: nope unfortunately it is problematic as I remember, google it and install it following a guide on its official website, that way it works I am positive ^.^
[19:22:04] NBarnes: I wouldn't say that react is huge. react's HYPE is white-hot, but uptake and shipping functionality?
[19:22:25] baweaver: has joined #RubyOnRails
[19:22:36] NBarnes: Also, what Papierkorb said.
[19:22:57] NBarnes: What you _must_ learn is how to learn. No technology will feed you and your family for the next twenty years (well, maybe SQL)
[19:23:11] Papierkorb: or COBOL haha
[19:23:17] NBarnes: But if you can adapt to the changing needs of the IT business, you'll be fine.
[19:23:24] manfrin: learning COBOL is like becoming a train engineer
[19:23:25] smathy: mices, if /tmp/spring/341b1c6d34a54e001ac462b77d255ebc.pid doesn't exist then I can't help you.
[19:23:36] manfrin: you'll always have a job, and might even have a good job since all the old engineers are retiring
[19:23:48] smathy: mices, is this your dev machine?
[19:23:50] NBarnes: My dad does COBOL.
[19:23:57] NBarnes: He's been coding for, like, 45 years.
[19:23:57] manfrin: but nbarnes is right: being a programmer is about learning how to learn, continually
[19:23:58] mices: smathy: eya
[19:24:01] sloggerkhan: I've never had a programming job that used the same primary language as a previous job (though nearly all of them required JS and SQL to some degree, I suppose).
[19:24:04] dionysus69: nbarnes: well ye learning how to learn is definitely most precious asset ))
[19:24:04] manfrin: my neighbor is an old cobol engineer
[19:24:21] NBarnes: Me and my sibs went to college on the y2k bug's dime. Good times.
[19:24:24] smathy: mices, ok good, at least not a prod machine. Lots of concerning messages there.
[19:24:27] sonofdirt: has joined #RubyOnRails
[19:24:29] messysaurus: has joined #RubyOnRails
[19:24:36] manfrin: js and sql i think are pretty ubiquitous -- although i think raw js might be in the decline with es6/jsx/dart/coffeescript
[19:24:47] manfrin: build in new metalanguage, compile back down
[19:24:57] NBarnes: ES6 is raw JS, just the next generation. It's not that different.
[19:24:58] Papierkorb: With ES6 I see it on the rise tbh
[19:25:06] Papierkorb: People might ditch coffee for it
[19:25:10] manfrin: yeah, but it's different from the js in the browser
[19:25:26] NBarnes: And I luuuuurve CoffeeScript, but I'm not optomistic about the long-term prospects when it's competing with JSX, dart, TypeScript, etc, etc, etc.
[19:25:26] Papierkorb: nah, won't take too long until it's widely supported I guess
[19:25:28] manfrin: so at this point it's a very similar but different language that you still need to compile
[19:25:42] manfrin: coffeescript is I think going to become like ember
[19:25:54] manfrin: still used, but mainly around the communities and sister communities of rails
[19:25:55] messy: has joined #RubyOnRails
[19:25:55] christiandsg: has joined #RubyOnRails
[19:25:58] atzorvas: has joined #RubyOnRails
[19:26:07] NBarnes: There's just a ton of churn in the JS space, lots of transpilers and whatnot. Many of them won't make it another three years.
[19:26:12] Papierkorb: typescript may become interesting because of angular. if you don't use angular, then ...
[19:26:13] tubbo: manfrin: until react fucks up
[19:26:14] smathy: I think Rails will switch to ES6
[19:26:26] manfrin: react 2.0: all the syntax is different!!
[19:26:31] tubbo: manfrin: people said the same thing about angular until 2.0
[19:26:33] manfrin: ACTION coughs *angular*
[19:26:43] NBarnes: Is Ember good?
[19:26:52] NBarnes: I have a co-worker that is pushing hard for Ember on our next green-field.
[19:26:53] sloggerkhan: I've never been a huge fan of coffeescript. It's always felt like it was trying to hide the fact that JS isn't ruby IMO.
[19:27:07] Papierkorb: SloggerKhan: then use Opal instead :P
[19:27:08] manfrin: pls, hiding js in ruby is Opal's job
[19:27:15] NBarnes: It IS trying hard to hide the fact that JS isn't Ruby. I luurrrrve it.
[19:27:20] manfrin: brb, walking to store
[19:27:38] tubbo: i like ember because of a few things 1.) they care about upgrading, it's very easy; 2.) the tooling surrounding it (ember-cli, ember chrome extension) ROCKS and i haven't seen anything better for any JS framework; 3.) it's still the only actual framework out there
[19:27:41] tubbo: the rest of them are just libraries
[19:27:43] northfurr: has joined #RubyOnRails
[19:27:48] tubbo: ember changes the way you write javascript. that's what i call a framework
[19:27:52] NBarnes: Remember how I said that a lot of JS transpilers and whatnot won't make it another three years? Yeah, I'm looking at you here, Opal.
[19:28:06] Mendenhall: has joined #RubyOnRails
[19:28:15] sloggerkhan: I've always wanted to learn ember.
[19:28:19] NBarnes: Yeah, I've seen good things about Ember, just haven't dug in much. Some smart people like Ember.
[19:28:23] sloggerkhan: Have never gotten around to it.
[19:28:27] Coldblackice: has joined #RubyOnRails
[19:28:34] webdestroyaz: has joined #RubyOnRails
[19:28:36] tubbo: nbarnes: ember is good. but it's probably too much complexity for an app that doesn't need to be super crazy. like, i'm using ember to build the client app for this project i'm working on (it runs in electron, so it's a desktop client app)
[19:28:46] Papierkorb: nbarnes: will be interesting what happens with it. I don't care if it doesn't make it another some years. Until JS becomes a genuinely good language I don't think transpilers for it will surge to exist
[19:29:10] tubbo: yeah, like the only reason i use babel now is because i'm 90% sure ES6 will eventually just "be" javascript
[19:29:15] dionysus69: maybe its a stupid question but wouldn't world be a greater place if instead of js we used ruby as standard? I am not pro in neither but ruby seems to be cooler
[19:29:25] tubbo: dionysus69: until you need it to run fast, it's really neat.
[19:29:25] sloggerkhan: I've always felt like JS is actually a decent language where a bunch of things happen to have been terribly named for marketing reasons.
[19:29:33] messysaurus: has joined #RubyOnRails
[19:29:37] NBarnes: I agree with tubbo on that. ES6 is the future of JS; someday ES6 will just be 'vanilla Javascript'.
[19:29:37] manfrin: it's not about deciding, it's about what is used
[19:29:39] Papierkorb: nbarnes: also, seeing projects like Elixir/Phoenix and Crystal/HTTP???, it may live on as stand-alone generator embedded into a larger tooling environment, much like coffee
[19:29:44] manfrin: js is on browsers, so people use js for forntends
[19:29:53] manfrin: ruby needs to be installed, so it's a server language
[19:30:00] sloggerkhan: But yeah, I'm on board with ES6 also.
[19:30:09] manfrin: but also, js is much faster, as it's had a lot more time to mature
[19:30:18] tubbo: nbarnes: huh? those are other languages, not transpilers.
[19:30:19] manfrin: hence why people like using js on the server side, like with node
[19:30:25] craysiii: bring on the ruby browser interpreters :)
[19:30:25] NBarnes: manfrin; Yeah, I've been saying that for a while. One of the reasons that JS is used everywhere is that EVERY COMPUTER ON THE PLANET has a JS runtime installed.
[19:30:36] tubbo: nbarnes: like Elixir isn't a transpiled language into Erlang, it runs on the Erlang VM but it gets compiled into byte code, not another human readable language
[19:30:48] manfrin: yeah -- if you wanna write somethign and not give a damn about the environment, js is great
[19:30:49] dionysus69: ok tubbo you mentioned speed, why cant scripting languages like ruby be compiled and run as binary ?
[19:31:14] manfrin: difficulties with a dynaically typed language
[19:31:22] smathy: dionysus69, they can be.
[19:31:31] zpe: has joined #RubyOnRails
[19:31:32] NBarnes: tubbo; I'm not sure you're responding to me and not Papierkorb?
[19:31:34] tubbo: dionysus69: i suppose you probably could eventually get that working, but at that point it's not a scripting language. and you can't use it in place of JS.
[19:31:35] dionysus69: so how can it be slower then :P?
[19:31:46] tubbo: nbarnes: haha you're right
[19:31:54] smathy: dionysus69, I mean, before they actually run, that *is* what the ruby runtime does.
[19:31:56] mices: smathy: could this be because i added the mysql2 gem to the gemfile without commenting out the sqlite3 gem
[19:31:56] tubbo: Papierkorb: Elixir isn't a transpiled language into Erlang, it runs on the Erlang VM but it gets compiled into byte code, not another human readable language
[19:31:56] s2013: has joined #RubyOnRails
[19:32:06] Papierkorb: tubbo: never said otherwise
[19:32:07] NBarnes: Oh, good. I was worried I'd said something more stupid usual. I don't know a damn thing about Elixir or Erlang.
[19:32:07] smathy: mices, no.
[19:32:17] smathy: mices, try killing all your spring processes.
[19:32:18] tubbo: dionysus69: i don't understand your question
[19:32:37] Papierkorb: tubbo: I meant that elixir, being near to ruby in terms of syntax et al, could become a 'home' for projects like Opal
[19:32:37] mices: do you know how i do that on fbsd
[19:32:54] Papierkorb: mices: bin/spring stop
[19:33:02] craysiii: just because something is compiled doesn't make it optimized
[19:33:09] dionysus69: if both can be compiled, why does one run slower than the other, the slowness comes with the real-time compiler, but if you precompile, that slowness is taken away?
[19:33:11] tubbo: dionysus69: you're asking "why can't this be compiled into binary" but also "why can't we use ruby as a scripting lang", and those answers contradict each other. at some point, you have to make a tradeoff.
[19:33:24] smathy: dionysus69, that's not the only cause of slowness.
[19:33:50] tubbo: dionysus69: JS is actually a lot faster because of most of its implementations' JIT compilation techniques. there's also more "cooks in the kitchen" with regards to JS...there are a lot more people who drive where it goes than ruby.
[19:34:01] sandstrom: has joined #RubyOnRails
[19:34:02] Lightsword: has joined #RubyOnRails
[19:34:06] tubbo: i mean, ruby is just a small project with a core committer team. JS effectively spans 3 codebases and a standard.
[19:34:28] Papierkorb: See Python in that regard. Ever since Google picked it up, it got a LOT faster over the years
[19:34:31] NBarnes: JS has a stupid number of stupidly smart people working on it and its compilers and its runtimes.
[19:34:44] tubbo: personally (i have no data to back this up) i think part of the success of JS in relation to Ruby is in a lot of ways due to the fact that we, as a community, have more control.
[19:34:46] smathy: dionysus69, even compiled ruby can't ever use memory as efficiently as a typed language - because it's not typed.
[19:34:50] andrew-l: has joined #RubyOnRails
[19:34:52] centrx: JS is more common and established than practically every language, but it's also not a very good language
[19:34:57] messysaurus: has joined #RubyOnRails
[19:34:58] NBarnes: I mean, imagine if Ruby had a full-scale Google press behind making it as fast as it possibly can be. Ruby'd be pretty fast.
[19:35:00] juanpaucar: has joined #RubyOnRails
[19:35:02] tubbo: hence the global interpreter lock's continued existence. :P
[19:35:20] craysiii: python has GIL too
[19:35:20] jcm: has joined #RubyOnRails
[19:35:22] centrx: smathy, the compiler could figure out which variables can be a single type
[19:35:27] tubbo: smathy: neither is JS?
[19:35:29] smathy: centrx, ha :)
[19:35:40] smathy: tubbo, right, and JS can never be as fast as Go or C either.
[19:35:44] Starf0x: has joined #RubyOnRails
[19:35:45] tubbo: yeah that's true
[19:35:48] tubbo: well, maybe :)
[19:35:48] dionysus69: yes thats what I mean, if ruby had all the backup that js has, it would be better in sum
[19:35:53] NBarnes: I've always assumed that a sufficiently smart compiler could infer types and assign them statically at compile time. Untrue?
[19:35:55] tubbo: smathy: depends on what you're doing with Go lol
[19:36:06] Starf0x: has left #RubyOnRails: ()
[19:36:09] Papierkorb: nbarnes: Look at crystal-lang - completely true
[19:36:18] Papierkorb: they do exactly that
[19:36:19] smathy: tubbo, not really, just depends on whether you're a terrible Go programmer or not.
[19:36:27] tubbo: smathy: well i'm definitely a terrible Go programmer.
[19:36:38] tubbo: that's a fact
[19:36:44] NBarnes: Any terrible programmer can produce terribly slow code in any language you care to name.
[19:37:01] dionysus69: well ye haha
[19:37:17] craysiii: and great programmers could make it even slower ;)
[19:37:26] NBarnes: (I _vividly_ remember my first n+1 error)
[19:37:26] arup_r: If I do `options_from_collections_for_select(@users, :id, ->(ob) { "#{ob.id}. #{ob.name}" })`
[19:37:28] baweaver: has joined #RubyOnRails
[19:37:46] dionysus69: I have read some history of ruby and in the beginning ruby was very slow as I know, and then someone wrote much faster compiler for it and it became standard, thats enough info, that means it can be indefinitely otpimized
[19:38:30] NBarnes: There is a point of diminishing returns for most things.
[19:38:36] arup_r: They said Proc, but not example.. http://api.rubyonrails.org/classes/ActionView/Helpers/FormOptionsHelper.html#method-i-options_from_collection_for_select
[19:38:37] NBarnes: I mean, even C isn't as fast as assembly, neh?
[19:38:56] tubbo: i like JS a lot
[19:39:01] dionysus69: and anyways speed isnt everything, hardware is getting faster and faster and for most operations you dont notice how one language is slower than the other
[19:39:16] dman777_alter: has joined #RubyOnRails
[19:39:26] smathy: arup_r, they said `selected` could be a Proc, not `text_method`
[19:39:36] dman777_alter: I have a controller that I want to proxy the request to another server. What would I use for this?
[19:39:44] NBarnes: tubbo, maybe you can answer me a long-standing question for me; what is the actual practical different between class-based inheritance and prototype-based? I cannot for the ilfe of me see how they are meaningfully different.
[19:40:07] smathy: arup_r, but even if you could do that, why would you want to? You won't be able to test it, can't reuse it anywhere else, not a great place for view logic.
[19:40:22] messy: has joined #RubyOnRails
[19:40:25] smathy: dman777_alter, you mean like httparty?
[19:40:37] naftilos76: Hi, i was trying send_file on rails 4.2. Is it possible for send_file to respond to an ajax call from $.ajax ?
[19:40:41] NBarnes: I mean, yeah, you define a superclass and subclass it on the one hand. Or on the other hand, you build an object and then you build another object and set the first object as the second's prototype. That is not a big difference in my head.
[19:41:01] kinduff: has joined #RubyOnRails
[19:41:10] craysiii: i write all my web apps in x86 bytecode.
[19:41:19] NBarnes: crysiii, they must run fast.
[19:41:26] Papierkorb: nbarnes: if done optimally, C and ASM would be same speed. In reality, they trade placces all the time, depending on the knowledge of the dev. In fact, I used gcc to compile C code for assembler class, because I didn't feel like doing that on my own ;)
[19:41:27] dman777_alter: smathy: maybe...I need to read up on that. thanks. It's for api requests that return json responses. I need to pass through to another server
[19:41:34] tubbo: nbarnes: class-based inheritance uses classes. prototypal inheritance does not. it's pretty simple ;)
[19:42:17] tubbo: nbarnes: more accurately...prototypal inheritance is basically like instead of using the class as a blueprint for how to create new objects, you just copy the entire object and rename it. classes are like document templates, prototypes are like duplicating a document and renaming it.
[19:42:36] NBarnes: (good analogy)
[19:42:39] webdestroyaz: has joined #RubyOnRails
[19:42:44] NBarnes: I can see that. It doesn't seem very different tome.
[19:43:05] jeadre: has joined #RubyOnRails
[19:43:07] tubbo: nbarnes: it's not that different in theory, but in practice it changes things. Sorella from ##javascript wrote a very succinct and informative blog post explaining what it really is http://robotlolita.me/2011/10/09/understanding-javascript-oop.html
[19:43:13] NBarnes: I mean, you're still basically dealing with an abstract definition and then a concrete defintion that delegates some attributes to the abstract definition.
[19:44:25] shilon: has left #RubyOnRails: ()
[19:44:36] givanse: has joined #RubyOnRails
[19:44:38] jblack: What's the easiest proper way to create a new model, view and controller at the same time?
[19:44:47] tubbo: yeah but with class-based inheritance, the separation is a little more clear
[19:44:53] NBarnes: jblack: rails g scaffold <name>
[19:45:13] greengriminal: has joined #RubyOnRails
[19:45:30] NBarnes: If the separation isn't clear in prototypical inheritance, the programmer did something wrong. The ENTIRE POINT of modern programming is to make your intent clear.
[19:45:33] jblack: I'm trying to create a new Person MVC, and I know which fields I'd like to have
[19:46:00] NBarnes: jblack; there's additional paramteres you can feed to rails g scaffold to make the fields, but I don't remember them off the top of my head.
[19:46:08] jblack: ok. I'll consult the help
[19:46:24] NBarnes: yeah, just look for 'scaffold' and it'll have what you need.
[19:46:32] craysiii: i dont think you can create the M and C at the same time can you?
[19:46:35] bruno-: has joined #RubyOnRails
[19:46:38] manfrin: rails g scaffold <model name> <attribute>:<type>
[19:46:53] safety_cut: has joined #RubyOnRails
[19:46:54] NBarnes: I never use the fields to scaffold, anyway. I achieve my model definitions through successive approximation.
[19:46:55] tubbo: nbarnes: like for example, let's say i create an object and add some methods to its prototype, then i want to add more methods to the object later on: https://gist.github.com/tubbo/540fb92638ef8c6bafb4
[19:47:01] manfrin: rails g scaffold Comments user:references title:string content:text
[19:47:04] dionysus69: jblack: rails g scaffold_controller User name email
[19:47:38] craysiii: thats cool.
[19:47:40] tubbo: that's kind of a bad example but the concept is...if i add a method to my prototype, then instantiate a new object, then add ANOTHER method to the original prototype, that method doesn't get magically carried into the new object.
[19:48:16] NBarnes: Huh. I can see how that'd bite you.
[19:48:25] naftilos76: Can i use method 'send_file' via an ajax request on rails 4.2?
[19:48:40] dman777_alter: if i have a controller for proxy...and the request could be any method from post to get.... how would i define the method in the controller? since it wouldn't be def index
[19:48:55] manfrin: naftilos76 are you making an upload form?
[19:49:06] manfrin: you can just use the form builder and pass it remote: true
[19:49:34] rodfersou: has joined #RubyOnRails
[19:49:35] naftilos76: manfrin, i am trying to download a file from the server "send_file" is the method
[19:50:09] smathy: nbarnes, biggest difference is that in prototypical there's no call stack (the methods are actually copied into the object's prototype) and the inheritance is done at runtime and hence is more flexible than classical.
[19:50:11] jacaballero: has joined #RubyOnRails
[19:50:13] manfrin: you're trying to let the user download an asset held by the server?
[19:50:21] manfrin: and send_file does what, returns the asset path?
[19:50:27] naftilos76: manfrin, but i think it only works with non-ajax calls, can you confirm?
[19:50:57] NBarnes: Ah,that's why you get bit by tubbo's example. Adding to the prototype won't change already-instantiated objects, correct?
[19:51:10] NBarnes: Because the methods from the prototype are copied at create time?
[19:51:17] naftilos76: the file is a zip file and the user should get the download dialog and evntually download the file
[19:51:28] x-light: has joined #RubyOnRails
[19:51:30] tubbo: naftilos76: why does it need to be ajax?
[19:51:36] jblack: eighth time was the charm!
[19:51:40] [Butch]: has joined #RubyOnRails
[19:51:41] erich: has joined #RubyOnRails
[19:51:58] tubbo: naftilos76: when you click the button that downloads this file, and the response has the right headers in it, your browser will auto download the file
[19:52:09] naftilos76: tubbo, because i do not want the site to reload
[19:52:21] manfrin: it wouldnt reload
[19:52:37] manfrin: if they click on a file their browser sees as something it doesnt display (like a zip), it'll just download
[19:52:41] baweaver: has joined #RubyOnRails
[19:52:49] tubbo: naftilos76: open it in a new tab...not sure if ajax requests work like that. like the ajax request will probably error because a ZIP isn't the same Content-Type as an HTML or JSON response.
[19:52:54] manfrin: if you are intent on showing a dialog and having it count down or whatever, you can do something like http://stackoverflow.com/a/15832662/1329321
[19:53:05] manfrin: you wouldnt get the zip via ajax
[19:53:08] manfrin: you'd get the path
[19:53:17] manfrin: then just have js to make a link and click it or whatever
[19:53:24] Xiti: has joined #RubyOnRails
[19:54:22] mary5030: has joined #RubyOnRails
[19:54:52] shinnya: has joined #RubyOnRails
[19:54:57] Lycanii: has joined #RubyOnRails
[19:55:00] jeadre: has joined #RubyOnRails
[19:55:01] mices: when i run "rails new" can i put the database adapter as an argument
[19:55:17] smathy: nbarnes, not sure what tubbo was trying to demonstrate but if you want to copy the prototype of j to the prototype of y then you do y.prototype = j.prototype;
[19:55:21] mary5030: has joined #RubyOnRails
[19:55:33] smathy: (not y.prototype = j )
[19:55:37] weaksauce: has joined #RubyOnRails
[19:56:29] manfrin: did you try to google that?
[19:56:46] tubbo: oh never mind i was wrong there
[19:57:16] tubbo: https://gist.github.com/tubbo/b03480b3dc37c6c16140 :)
[19:57:59] pragmatism: has joined #RubyOnRails
[19:58:02] annlewis: has joined #RubyOnRails
[19:58:06] mices: i'm here http://api.rubyonrails.org/ looking for "new" but can't find it
[19:58:12] pvertenten: has joined #RubyOnRails
[19:58:18] weaksauce: mices new what?
[19:58:22] dionysus69: I added jquery-turbolinks gem but it still doesnt load my js :\ heres my page https://gist.github.com/webzorg/ac02fdf00e9c98e385cd
[19:58:38] mices: weaksauce: 'rails new'
[19:58:56] netzfisch: has joined #RubyOnRails
[19:59:11] NBarnes: mices; in here? http://guides.rubyonrails.org/command_line.html
[19:59:44] manfrin: i copy-pasted your question in to google and the answer is in the preview text of the 3rd item :|
[19:59:52] s2013_: has joined #RubyOnRails
[19:59:56] manfrin: rails new myapp --database=postgresql
[19:59:59] jenrzzz: has joined #RubyOnRails
[20:00:02] jacaballero: Hey guys, I have this error in my production environment https://gist.github.com/jorgeacaballero/c0327fffe7fb966f80e6#file-error-log-L11 and have no idea what's causing it. If I change the env to development it works fine... The server is a Passenger/Nginx, ruby 2.1.3p242, Rails 4.2.0. I tried to turn off the config.assets.compile to false and the app starts working but without css and js... any clues?
[20:00:14] smathy: I will say nbarnes (cc tubbo) that some of the advantages of prototypical inheritance fall flat on ruby programmers because we can do magical things like Class.new("BaseClass".constantize)
[20:00:34] manfrin: jacaballero I'm betting money you need to set your env variable for SECRET_KEY_PAIR or something along those lines
[20:00:39] mary5030: has joined #RubyOnRails
[20:00:39] smathy: dionysus69, like I said, learn turbolinks - or disable it.
[20:00:45] weaksauce: yeah rails new is a command line thing. the guide or rails new --help is the best docs mices
[20:00:59] gambl0re: when i create a logout link in devise i usually write "<%= link_to "Sign Out", destroy_user_session, method: :delete %>"
[20:01:03] gambl0re: is that correct?
[20:01:06] andessen: has joined #RubyOnRails
[20:01:13] manfrin: SECRET_KEY_BASE
[20:01:17] tubbo: smathy: you're a magical thing
[20:01:21] jacaballero: manfrin that sounds like a posible problem, let me check
[20:01:43] craysiii: gambl0re yes i believe
[20:01:44] manfrin: in new rails apps, it generates keys for dev/staging, but sets prod to ENV['SECRET_KEY_BASE']
[20:02:06] gambl0re: is :method => :delete the same thing?
[20:02:08] dionysus69: smathy: which of these I would use for a case where I am going from one action to another ? v
[20:02:09] dionysus69: https://gist.github.com/webzorg/660e4e059d44c542b857
[20:02:28] crystal77: has joined #RubyOnRails
[20:02:37] craysiii: <%= link_to destroy_user_session_path, method: :delete, class: 'btn btn-primary btn-sm' do %> example from my project.
[20:02:48] tubbo: dionysus69: it doesn't know what action you're going to, those are states within a single page change.
[20:02:57] smathy: tubbo, abracadabra.
[20:03:17] tubbo: dionysus69: you'd use 'page:before-change' if you wanted to, say, show/hide a loading gif when things changed
[20:03:18] mices: i see, rails new appname -d mysql
[20:03:44] smathy: dionysus69, throw some console.log statements into each to see when each is fired.
[20:03:57] smathy: dionysus69, better to learn for yourself than be told by an IRCer.
[20:04:00] arup_r: gambl0re: yes
[20:04:39] craysiii: he forgot _path :P
[20:04:50] dionysus69: hmm ok so its good to know one of them works :D smathy thanks and tubbo )
[20:05:09] gambl0re: has joined #RubyOnRails
[20:05:10] blackmesa: has joined #RubyOnRails
[20:06:01] jeadre: has joined #RubyOnRails
[20:06:06] pragmatism: has joined #RubyOnRails
[20:06:56] smathy: jacaballero, run: rake assets:clobber; rake assets:precompile
[20:08:15] liquid-silence: has joined #RubyOnRails
[20:09:14] allcentury: has joined #RubyOnRails
[20:09:22] Mendenhall: has joined #RubyOnRails
[20:09:35] messysaurus: has joined #RubyOnRails
[20:10:02] ildarsafin: has joined #RubyOnRails
[20:10:57] mices: can i run gem pristine --all as root
[20:11:42] Zadrel: has joined #RubyOnRails
[20:12:26] messysaurus: has joined #RubyOnRails
[20:12:44] jacaballero: smathy i got rake aborted! JSON::GeneratorError: source sequence is illegal/malformed utf-8 :O
[20:13:13] jacaballero: but this narrows things down to the JSON generator
[20:13:18] safety_cut: has joined #RubyOnRails
[20:13:24] jacaballero: thanks! i'll do some investigation.
[20:13:36] diegorv: has joined #RubyOnRails
[20:13:49] smathy: jacaballero, add the --trace option to the assets:precompile and maybe it will tell you more.
[20:15:05] strcmp1: has joined #RubyOnRails
[20:15:20] jacaballero: smathy got this https://gist.github.com/jorgeacaballero/db3421a0bebc00985f12
[20:16:49] smathy: D'oh. Looks like it doesn't get anywhere in the JS stuff.
[20:17:04] smathy: jacaballero, I'd just start commenting things out, one by one, in application.js
[20:17:05] ruurd: has joined #RubyOnRails
[20:17:29] smathy: (or moving things one by one out of assets/javascripts )
[20:17:32] safety_cut: has joined #RubyOnRails
[20:18:04] Zadrel: hello there! anyone could please tell me why this message shows when i run rails s: **/usr/lib/ruby/2.1.0/psych.rb:370:in `parse': (<unknown>): found character that cannot start any token while scanning for the next token at line 23 column 1 (Psych::SyntaxError)** using rvm ruby 1.8.7?
[20:18:22] Zadrel: i don't have any clue yet :(
[20:18:42] jacaballero: yeah, thanks smathy i'll let you know how it goes
[20:19:20] messy: has joined #RubyOnRails
[20:19:33] christiandsg: has joined #RubyOnRails
[20:20:45] jeadre: has joined #RubyOnRails
[20:22:39] havenwood: has joined #RubyOnRails
[20:23:29] smathy: Why do you say that you're using 1.8.7 and yet the error is from .../ruby/2.1.0/... ?
[20:25:02] ur5us: has joined #RubyOnRails
[20:26:08] Zadrel: smathy: that's the point. when i check "ruby -v " #=>ruby 1.8.7 (2014-01-28 patchlevel 376) [i686-linux]#; but when i run rails s it says that. that's why i'm confused.
[20:27:01] messysaurus: has joined #RubyOnRails
[20:27:27] smathy: Zadrel, I see. Sorry, I have no idea how rvm works.
[20:27:41] jacaballero: smathy I got around it, for now, by disabling the uglifier by commenting this line out in the production.rb: config.assets.js_compressor = :uglifier, weird right?
[20:27:54] Zadrel: smathy: that's allright, ty for your attention
[20:27:57] slash_nick: Zadrel: which do you intend to run?
[20:28:08] Zadrel: slash_nick: 1.8.7 :)
[20:28:24] solars: has joined #RubyOnRails
[20:28:25] slash_nick: Zadrel: if you run `rvm list` which ruby is indicated?
[20:28:28] smathy: jacaballero, there'll be some broken character in one of your files somewhere. But the workaround isn't a terrible one, so go for it :)
[20:28:42] cpg: has joined #RubyOnRails
[20:28:49] Zadrel: =* ruby-1.8.7-head [ i686 ]
[20:29:36] ratmav: has joined #RubyOnRails
[20:30:06] slash_nick: Zadrel: i don't have any good guesses as to why you're getting the error you're getting
[20:30:16] toretore: has joined #RubyOnRails
[20:30:30] Zadrel: slash_nick: yeah, weird one isn't it? lol
[20:30:58] bronson_: has joined #RubyOnRails
[20:31:58] gambl0re: anyone use add acts as votable gem?
[20:32:19] zpe: has joined #RubyOnRails
[20:32:33] jgt3: has joined #RubyOnRails
[20:32:42] relix: has joined #RubyOnRails
[20:32:49] jenrzzz: has joined #RubyOnRails
[20:34:13] relix: Hey guys - I'm working on a Railtie and I need to test some functionality that only runs during a rails config/initializer run
[20:34:31] relix: is there a way to "reboot" the rails app that is set up in the tests, so that I can test wether the initializer did run correctly?
[20:34:37] Rubie: has joined #RubyOnRails
[20:35:55] Mendenhall: has joined #RubyOnRails
[20:37:52] bruno-: has joined #RubyOnRails
[20:38:00] Linuus: has joined #RubyOnRails
[20:38:21] dstarh: has joined #RubyOnRails
[20:39:34] mices: when i run 'rails generate scaffold' i get returned 'Usage: rails new APP_PATH [options]'
[20:40:39] meatherly: has joined #RubyOnRails
[20:41:19] dstarh: anyone have experience decrypting data from attr_encrypted in java, specifically BouncyCastle
[20:41:31] jholm: has joined #RubyOnRails
[20:41:44] dstarh: I can't seem to get the algorythm correct in the single iv & salt mode
[20:42:27] giantoctopus: has joined #RubyOnRails
[20:42:27] jaequery: has joined #RubyOnRails
[20:42:47] jottr: has joined #RubyOnRails
[20:42:55] slash_nick: mices: are you inside a rails project?
[20:43:50] slash_nick: mices: i may be wrong, but i'm guessing you just rain "rails new some_project" then "rails g scaffold SomeModel", but you didn't cd into the `some_project` directory before running the `g scaffold` bit
[20:45:45] JakFrist: has joined #RubyOnRails
[20:46:56] nettoweb: has joined #RubyOnRails
[20:47:12] juanpaucar: has joined #RubyOnRails
[20:47:26] gambl0re: has joined #RubyOnRails
[20:47:46] jholm: has joined #RubyOnRails
[20:48:43] doodlehaus: has joined #RubyOnRails
[20:49:08] mices: still getting this error "/usr/local/lib/ruby/gems/2.0/gems/spring-1.3.6/lib/spring/server.rb:22:in `initialize': Permission denied - /tmp/spring/c8a959b6c20e4462671d059256060421.pid (Errno::EACCES)"
[20:52:40] NBarnes: Is there a way, in Ruby, to list all the methods in a class's interface containing some string?
[20:52:58] NBarnes: (the codebase here is pathological, it'd make it easier to navigate what's actually available)
[20:54:21] slash_nick: nbarnes: obj.methods... obj.public_methods...
[20:54:38] slash_nick: nbarnes: obj.methods.select {|x| x.to_s =~ /somestr/ }
[20:54:52] NBarnes: Very nice, thank you kindly.
[20:55:30] oscarb92: has joined #RubyOnRails
[20:56:38] slash_nick: nbarnes: no problem
[20:56:41] yfeldblum: has joined #RubyOnRails
[20:56:41] slash_nick: oscarb92: hola
[20:56:55] gambl0re: what is the largest rails site right now on the web?
[20:57:16] mloy: gambl0re, possibly Github?
[20:57:43] mloy: gambl0re, depending on certain criteria I'd call it the largest.
[20:57:56] gambl0re: github is made entirely by rails?
[20:57:58] tubbo: does twitter still use rails on the frontend?
[20:58:23] tubbo: gambl0re: the actual services are written in C i believe
[20:58:46] tubbo: like the git daemons and "plumbing" that we don't interact with as users, but github uses internally to keep things moving
[20:59:23] mloy: gambl0re, I read an article the other day about how Github is still pretty much a monolithic Rails stack with I think some C
[20:59:24] oscarb92: I need to access an attribute from an association within a loop in the view (for each instance of the list of objects I need to find an attribute from its associated model). It seems that is not possible to use ActiveRecord in the view. How can I achieve that?
[20:59:38] mloy: gambl0re, I'll try to find it
[20:59:59] tubbo: yeah i'm looking for it too mloy :D
[21:00:02] thezanke: has joined #RubyOnRails
[21:00:14] tubbo: mloy: "monolithic" is disputed here, imho
[21:00:31] tubbo: because while the user-facing front-end of github is definitely a monolith, calling "github" a monolith is doing it a disservice
[21:00:40] roxtrongo: has joined #RubyOnRails
[21:00:40] tubbo: even basecamp isn't a monolith
[21:00:50] mloy: tubbo, yeah I just used that term since it was in the article haha, it definitely isn't a monolith
[21:00:52] tubbo: https://signalvnoise.com/posts/3897-go-at-basecamp
[21:01:18] tubbo: basecamp is supposed to be THE rails app, and even they're using go! ;)
[21:01:28] slash_nick: I can't imagine a highly trafficked rails app being "just rails"
[21:02:21] Spami_: has joined #RubyOnRails
[21:03:55] sandstrom: has joined #RubyOnRails
[21:05:20] jenrzzz: has joined #RubyOnRails
[21:05:22] mloy: I'm setting default parameters for a calendar in my controller and I'd like to set :start to (t.strftime("%m-%d-%Y") and :end to x amount of weeks after, what's the best way to go about doing that?
[21:05:32] mloy: using Time.strftime()
[21:06:19] ur5us: has joined #RubyOnRails
[21:07:04] craysiii: why format the time in the model, when you can do it in the view?
[21:07:19] Mendenhall: has joined #RubyOnRails
[21:08:14] pvertenten: has joined #RubyOnRails
[21:08:17] slash_nick: end_time = t + x.weeks
[21:08:22] messysaurus: has joined #RubyOnRails
[21:08:29] craysiii: @calendar.start = sometime; @calendar.end = @calendar.start + 7.weeks
[21:08:32] mloy: slash_nick, thanks, perfect. Was hoping something like that would be possible
[21:08:33] Gabriel403: mloy: did you find that article? I'd be interested in readin it
[21:08:34] mloy: craysiii, thanks
[21:08:58] mloy: Gabriel403, it was taking too long and I need to be productive -_- I'll look again in a few minutes. Pretty sure it was on news.ycombinator yesterday or the day before
[21:09:41] MattDunbar: has joined #RubyOnRails
[21:10:42] mloy: craysiii, because I want to set default params that align with how Datepicker formats the date in my view.
[21:11:18] axl_: has joined #RubyOnRails
[21:11:46] mloy: Like, the user will be able to change the date using Datepicker and that's the format that Datepicker is outputting so I want to be sure all dates stored in my table are in the same format
[21:11:55] jottr_: has joined #RubyOnRails
[21:12:51] slash_nick: mloy: craysiii is (wisely) suggesting you store dates in the DB as date type... not sure how best to make what he's suggesting click
[21:12:59] Radar: GOOD MORNING
[21:13:29] mloy: slash_nick, oh I totally get that and yeah I should.
[21:14:03] slash_nick: mloy: in the DB, they're date type... when you render it, you parse it to any format of string you like... so if a user uses datepicker to send "09/07/1985" to a controller, the controller should use something like Date.strptime to parse that string into a date before saving it...
[21:14:05] emilebosch: has joined #RubyOnRails
[21:14:30] slash_nick: Radar: good morning!
[21:14:33] mloy: slash_nick, thanks, you just answered the question I was about to ask of how to parse Datepickers string as a date
[21:15:20] mloy: and thanks craysiii
[21:16:17] juanpaucar: has joined #RubyOnRails
[21:16:59] craysiii: does rails differentiate between date, time, and datetime?
[21:17:21] jgt3: has joined #RubyOnRails
[21:18:03] bronson_: has joined #RubyOnRails
[21:18:52] safety_cut: has joined #RubyOnRails
[21:19:03] gizmore: has joined #RubyOnRails
[21:19:19] slash_nick: craysiii: not sure what you're asking
[21:19:50] darrencauthon: has joined #RubyOnRails
[21:20:03] moeabdol: has joined #RubyOnRails
[21:20:08] gizmore: i am using devise and would like to change the errors in the json response.... and another question... is in "errors: email: "bla"" the string/key "email" already localized?
[21:20:31] slash_nick: craysiii: Time.now.is_a? Date #=> false Date.today.is_a? Time #=> false
[21:21:08] darrenca_: has joined #RubyOnRails
[21:21:25] messysaurus: has joined #RubyOnRails
[21:24:49] messy: has joined #RubyOnRails
[21:24:55] NBarnes: has joined #RubyOnRails
[21:25:50] mloy: If I want to change the types of two columns in a psql table, but the preexisting data won't transfer and I don't care about it, should I just drop the table and then run rake db:migrate again?
[21:26:05] baweaver: has joined #RubyOnRails
[21:26:22] mloy: Or is there a way to force the column change and just drop the data
[21:26:43] nettoweb: has joined #RubyOnRails
[21:28:54] Scripore: has joined #RubyOnRails
[21:29:29] Usaur: has joined #RubyOnRails
[21:29:39] mloy: nvm I got it.
[21:30:06] christiandsg: has joined #RubyOnRails
[21:30:47] frzn: has joined #RubyOnRails
[21:31:18] lxsameer: has joined #RubyOnRails
[21:31:22] neanderslob: has joined #RubyOnRails
[21:31:33] Sylario: has joined #RubyOnRails
[21:33:01] zpe: has joined #RubyOnRails
[21:33:16] dman777_alter: if request.url is 'http://10.10.10:3000/foo/bar' how can I extract just the /foo/bar?
[21:34:09] mices: got my environment fixed and generated scaffold
[21:34:11] paulcsmith: has joined #RubyOnRails
[21:34:39] messysaurus: has joined #RubyOnRails
[21:35:41] slash_nick: mices: way to go
[21:36:41] choke: has joined #RubyOnRails
[21:37:38] messysaurus: has joined #RubyOnRails
[21:37:44] Cervajz: has joined #RubyOnRails
[21:38:47] bricker: dman777_alter: URI.parse(uri).path
[21:41:45] Contigi: has joined #RubyOnRails
[21:42:48] mloy: After dropping my calendars table, running db:migrate isn't making a new one. :I
[21:43:00] drale2k: has joined #RubyOnRails
[21:43:03] siddart_: has joined #RubyOnRails
[21:43:08] dideler: has joined #RubyOnRails
[21:43:58] mices: when i create a table what does rails use for the database name'
[21:44:18] dman777_alter: bricker: thanks...is there a way to include the query parameters also if they exist?
[21:44:33] dman777_alter: I see URI.parse(uri).query but I would like to get it all together
[21:46:20] mices: i ran rails new -d mysql to create my app then i ran generate scaffold to create a table, when i navigated to it in my browser mysql returned access denied
[21:46:31] messysaurus: has joined #RubyOnRails
[21:47:05] mloy: How can I force a single migration to run?
[21:47:12] siddart_: has joined #RubyOnRails
[21:47:45] mices: what user do i have to grant permissions to in my sql on what database?
[21:47:47] mloy: my CreateCalendars migration is no longer running since dropping the Calendars table to reset the data so that I could change the types of two fields and it's a huge headache
[21:48:04] mloy: no longer running when I rake db:migrate*
[21:48:17] jtperreault: mloy: i believe you should have rolled it back first, edited the migration, then re-ran it
[21:48:31] mloy: jtperreault, yeah I think you're right. Learned that the hard way
[21:48:43] mloy: jtperreault, any ideas on how I can clean up this mess I've caused?
[21:49:11] jtperreault: mloy: ive got an easy one, but it drops the entire DB first, you ok with that?
[21:49:18] pvertenten: has joined #RubyOnRails
[21:49:25] mloy: jtperreault, yes that's fine! :)
[21:49:28] jtperreault: mloy: you can rake db:migrate:reset
[21:49:40] mloy: jtperreault, omg thank you, exactly what I need.
[21:49:56] jtperreault: mloy: drops the entire thing, then creates, then re-runs all migrations
[21:50:46] Jardayn: has joined #RubyOnRails
[21:51:45] messysaurus: has joined #RubyOnRails
[21:52:02] jtperreault: mloy: in the future there are a few ways to edit the table, you can rollback, edit the migration, then re-run. you can also create a new migration that changes the existing table, which you might image is something that would need to be done after the app is in production
[21:52:22] mices: what does rails name it's databases
[21:52:29] jtperreault: mloy: and you can drop a table in production, so another migration to edit would be appropriate there
[21:52:35] mloy: jtperreault, thanks. I actually was running a migration to change the table but the data was not transferrable from string to date
[21:52:39] jtperreault: mloy: cant* ha
[21:52:45] mices: when i open mysql i can't find the database created for my app
[21:52:50] n00bDev: has joined #RubyOnRails
[21:53:05] tubbo: mices: it names the db $YourAppName_$RailsEnv
[21:53:17] mloy: jtperreault, what's the quickest way to just ignore untransferrable data and have it be forgotten during a migration?
[21:53:22] messy: has joined #RubyOnRails
[21:53:24] mices: doesn't seem to be there
[21:53:33] siddart_: has joined #RubyOnRails
[21:53:37] mloy: jtperreault, specifically when I want to change a column type
[21:53:42] rails590: has joined #RubyOnRails
[21:54:35] jtperreault: mloy: write a migration that removes the column, then creates a new column with the correct type
[21:54:39] mices: tubbo: it's not there
[21:54:50] mloy: jtperreault, ahh that makes sense, thanks again for all the advice.
[21:55:05] jtperreault: mloy: glad to help
[21:55:25] tubbo: mices: did you run `rake db:create`? you need to do that first.
[21:55:30] x-light: has joined #RubyOnRails
[21:55:41] uris: has joined #RubyOnRails
[21:56:17] messysaurus: has joined #RubyOnRails
[21:56:40] mices: tubbo: i have to do that after i generate the scaffold?
[21:56:54] Mendenhall: has joined #RubyOnRails
[21:57:00] tubbo: mices: yep
[21:57:04] tubbo: mices: only the first time though
[21:58:42] dman777_alter: does rails have a feature to remove the host in a url?
[21:59:38] siddart_: has joined #RubyOnRails
[22:00:24] cpg: hi, i keep on having a ???Could not find rake-10.4.2 in any of the sources???
[22:00:37] cpg: even though i have it installed just fine in the bundle
[22:01:00] cpg: i tried to force rake to 10.1.0, which is what the system has installed, and that did not work either
[22:01:01] mices: tubbo: mysql complains access denied then asks for the root password for the mysql installation and then says couldn't create database
[22:01:49] siddart_: has joined #RubyOnRails
[22:02:26] cpg: i tried it by hand with thin and also with passenger
[22:02:34] tubbo: mices: you need to grant it access first before doing any of this stuff. rails assumes your db user has the proper access to your database.
[22:02:35] cpg: any suggestions why this may be?
[22:02:47] Omilun: has joined #RubyOnRails
[22:02:59] mices: Access denied for user 'root'@'localhost' (using password: YES)
[22:03:18] mices: my apps not gonna run as root
[22:03:27] mices: supposed to be running as what?
[22:03:27] Omilun: hi i need to use an app like pgadmin3 for mysql
[22:03:27] tubbo: jeez i hop enot
[22:03:29] tubbo: hope not*
[22:03:31] tubbo: mices: depends
[22:03:42] jtthedev: has joined #RubyOnRails
[22:03:46] siddart_: has joined #RubyOnRails
[22:04:01] tubbo: mices: this is breaching out of the realm of rails and more into the rails of mysql server administration. but there is a `username:` field in database.yml that will let you configure what user you're accessing mysql as
[22:04:10] tubbo: s/the rails/the realm/gc :D
[22:04:27] tubbo: omilun: so use sequel pro? :P
[22:05:00] mices: so i have to set up yml file before adding fixture data?
[22:05:27] Omilun: tubbo: i'm using ruby on rails ... and i need mysql to learn rails
[22:05:28] messysaurus: has joined #RubyOnRails
[22:05:43] tubbo: omilun: i don't get your question
[22:05:50] mices: so any user could have caused the app to run as root
[22:05:53] tubbo: omilun: !lmgtfy sequel pro
[22:05:57] tubbo: omilun: !google sequel pro
[22:05:59] siddart_: has joined #RubyOnRails
[22:06:00] mices: cause i didn't run the command as root
[22:06:12] Omilun: tubbo: thx dude
[22:06:14] tubbo: mices: well, you did...if database.yml doesn't have username configured
[22:06:20] Omilun: helpa: thx man
[22:06:55] jholm: has joined #RubyOnRails
[22:07:04] drale2k: has joined #RubyOnRails
[22:07:08] rails590: has left #RubyOnRails: ()
[22:07:08] rails590: has joined #RubyOnRails
[22:07:38] helpa: http://2.bp.blogspot.com/-vjsvBsc2pPo/TdCaxuXpO3I/AAAAAAAADYI/2CNDH1oWvgw/s1600/super_8_intergalactic.png
[22:08:09] siddart_: has joined #RubyOnRails
[22:08:26] Omilun: helpa: :D:D
[22:09:18] tvw: has joined #RubyOnRails
[22:09:50] messysaurus: has joined #RubyOnRails
[22:11:22] dnewkerk: has joined #RubyOnRails
[22:11:34] VeryBewitching: has joined #RubyOnRails
[22:11:46] n00bDev: if i need an action to update a certain attribute in a model, does it make sense to place it in the controller
[22:12:06] messy: has joined #RubyOnRails
[22:12:24] tubbo: or you could just pass a param to the update action
[22:12:30] tubbo: unless there's extra logic that needs to be taken care of
[22:13:18] n00bDev: well basically i have a button that toggles the attribute from true to false
[22:13:57] n00bDev: i have the route defined already in routes as a put but when i click on the button rails is complaining that there is no route matches for get
[22:14:00] Omilun: has left #RubyOnRails: ()
[22:14:08] nertzy: has joined #RubyOnRails
[22:16:12] jtperreault: n00bdev: are you using a button_to helper?
[22:16:37] jtperreault: n00bdev: cause you can pass the proper method (put) as an argument to it.
[22:16:49] christiandsg: has joined #RubyOnRails
[22:17:17] jtperreault: n00bdev: docs here: http://api.rubyonrails.org/classes/ActionView/Helpers/UrlHelper.html#method-i-button_to
[22:17:30] mices: tubbo: you were right, i wiped everything, started over making sure not to be logged in as root and this time it ran with no errors
[22:19:07] Scriptonaut: has left #RubyOnRails: ()
[22:20:02] tubbo: mices: when you say "logged in as root" i assume you mean the computer itself? and not just the DB?
[22:20:07] tubbo: because...don't ever log in as root.
[22:20:28] corioliss: has joined #RubyOnRails
[22:21:22] CheckYourSix: has joined #RubyOnRails
[22:23:37] kdman: has joined #RubyOnRails
[22:24:40] siddart_: has joined #RubyOnRails
[22:26:43] Mendenhall: has joined #RubyOnRails
[22:27:26] VeryBewitching: Or just be sure you're on the console when you do it.
[22:29:39] juanpaucar: has joined #RubyOnRails
[22:33:45] zpe: has joined #RubyOnRails
[22:35:28] mices: although i'm not logged in as root when i run rake db:create it says access denied for root@localhost
[22:36:14] Mendenhall: has joined #RubyOnRails
[22:37:38] baweaver: database.yml
[22:38:23] crystal77: My model has an attribute with the type "Hash". It has a ton of nested values, is there a way to search a specific key? Like Model.find_by_attribute(:hash.key.other_key LIKE something), idk
[22:39:25] siddart_: has joined #RubyOnRails
[22:39:28] maz-dev: has joined #RubyOnRails
[22:40:04] bootstrappm: has joined #RubyOnRails
[22:40:36] n00bDev: jtperreault: thanks! that helped
[22:41:37] christiandsg: has joined #RubyOnRails
[22:41:43] erich: has joined #RubyOnRails
[22:41:50] bootstrappm: has anybody else run into this "feature" where Rails just ignores what environment you're in and uses DATABASE_URL for rake tasks / tests?
[22:42:00] bootstrappm: I just dropped two production tables because of it
[22:42:48] erich: has joined #RubyOnRails
[22:42:51] lipoqil: bootstrappm: Where does the DATABASE_URL comes from?
[22:42:56] wethu: has joined #RubyOnRails
[22:43:04] bootstrappm: .env file loaded with dotenv-rails gem
[22:44:56] x-light: has joined #RubyOnRails
[22:45:01] lipoqil: bootstrappm: Isn't it this case? http://edgeguides.rubyonrails.org/configuring.html#connection-preference
[22:45:03] mary5030_: has joined #RubyOnRails
[22:46:22] bootstrappm: yep, looks like it
[22:46:58] lipoqil: bootstrappm: So you don't have config/database.yml , right?
[22:47:08] notori0us: has joined #RubyOnRails
[22:47:17] lipoqil: Ah, then that is weird
[22:47:18] bootstrappm: rails just prefers the environment variable over my database.yml
[22:47:22] bootstrappm: it says it right there in the docs
[22:47:53] bootstrappm: its just not the best default IMO. Support for url: nil should be added to database.yml at least
[22:47:56] bootstrappm: gonna create a github issue
[22:48:13] lipoqil: bootstrappm: nn I just read more
[22:48:43] lipoqil: bootstrappm: When you have both it merge the ENV variable into the stuff of database.yml
[22:50:16] ecnalyr: has joined #RubyOnRails
[22:50:28] idd2d: has joined #RubyOnRails
[22:50:36] lipoqil: bootstrappm: So the solution would be to don't have the ENV variable, or set according to what do you want to connect to
[22:50:38] roxtrongo: has joined #RubyOnRails
[22:51:39] hahuang65: has joined #RubyOnRails
[22:51:42] mary5030: has joined #RubyOnRails
[22:51:49] lipoqil: bootstrappm: Solved?
[22:52:04] bootstrappm: one solution yes, I'm just saying its a bad default. DATABASE_URL shouldn't just automatically be used ... its used in a lot of other apps (Heroku for example)
[22:52:15] mloy: bah I'm getting to the point where I have to work on my stylesheets
[22:52:52] bootstrappm: the default database.yml has username / database, no url field for dev / test environments. I ran a specific test and had DATABASE_URL set and it dropped tables in production
[22:52:56] bootstrappm: = bad defaults
[22:53:04] jobewan: has joined #RubyOnRails
[22:53:18] bootstrappm: thanks for pointing it out, though, lipoqil - I'm just gonna file it as an issue
[22:53:26] jesterfraud: has joined #RubyOnRails
[22:53:33] lipoqil: bootstrappm: And you have the variable set for the environments, right?
[22:53:39] michaellippold: has joined #RubyOnRails
[22:53:48] bootstrappm: correct, I explicitly set RAILS_ENV=tets
[22:53:50] lipoqil: (like Heroku)
[22:53:58] lipoqil: bootstrappm: noo
[22:54:09] lipoqil: bootstrappm: I mean the DATABASE_URL
[22:54:23] ecnalyr: has joined #RubyOnRails
[22:54:24] bootstrappm: yes it is set in a .env file and then dotenv-rails gem is used
[22:54:33] bootstrappm: but I think you're missing the point ...
[22:54:35] bootstrappm: thanks for the help, I'm all set
[22:54:59] lipoqil: bootstrappm: So why not to set it up only in the environments where you need it?
[22:55:34] beauby: has joined #RubyOnRails
[22:55:39] bootstrappm: that is one way to do it yes. But also a perfectly acceptable use case is to `export DATABASE_URL=blah` for use with some Heroku CLI commands for example
[22:55:42] lipoqil: bootstrappm: I guess the variable has higher priority because you have to explicitly create it
[22:55:42] kegan_: has joined #RubyOnRails
[22:55:45] paulcsmith: has joined #RubyOnRails
[22:56:04] moeabdol: has joined #RubyOnRails
[22:56:33] atomical: has joined #RubyOnRails
[22:57:15] ariedler: has joined #RubyOnRails
[22:58:18] lipoqil: bootstrappm: It seems to me you really don't need to ship the config with your code ??? image
[22:58:42] lipoqil: Heroku setup https://usercontent.irccloud-cdn.com/file/PcHm8ELe/budgerapp_%C2%B7_Settings___Heroku.jpg
[22:59:35] bootstrappm: you don't ship it with your code lipoqil, I'm talking about using it as an environment variable for interacting w/ the Heroku CLI as an example of how you use DATABASE_URL for other things
[22:59:48] bootstrappm: not a heroku app
[22:59:53] bootstrappm: the command line tools
[23:00:15] bootstrappm: like heroku pg:info for example
[23:00:40] ngscheur1: has joined #RubyOnRails
[23:00:59] michael_mbp: has joined #RubyOnRails
[23:01:34] lipoqil: You sad you have the variable in your .env file
[23:01:58] ariedler: wonder if anyone had suggestions for ways to build API clients, did some research I wront one in Faraday but seems ... odd
[23:02:43] bootstrappm: correct lipoqil but you don't ship .env with your code. .env is specifically for environment variables you use on your local machine
[23:03:03] bootstrappm: I had it in there because I was pulling some things from the production database
[23:03:20] bootstrappm: that doesn't mean I wanted it used for EVERYTHING, I just wanted it in my environment to use when I needed it
[23:03:59] ecnalyr: has joined #RubyOnRails
[23:04:03] bootstrappm: what I'm saying is that its a bad default because there are perfectly acceptable / common use cases where DATABASE_URL will be in environment variables but the user will not wish for it to be used
[23:04:34] lipoqil: bootstrappm: That was hard lesson ;)
[23:04:48] bootstrappm: I have backups, no big deal, it's just annoying
[23:05:35] lipoqil: bootstrappm: I guess in the issue you'll get something like: Next time please use RAILS_ENV=production ;)
[23:05:54] bootstrappm: but thats the point, I specifically set RAILS_ENV=test
[23:06:08] lipoqil: bootstrappm: Anyway send me link when you'll create it. I am interested about the output
[23:06:22] acti0nman: has joined #RubyOnRails
[23:06:28] strcmp1: has joined #RubyOnRails
[23:06:55] gaussblurinc1: has joined #RubyOnRails
[23:07:23] lipoqil: bootstrappm: I meant use RAILS_ENV=production instead of DATABASE_URL for production
[23:08:19] mices: tubbo: after generating scaffold and running db:create it fails at unable to create databasename_test and creates the database with no tables in mysql
[23:10:18] saneki: has joined #RubyOnRails
[23:10:28] beast: has left #RubyOnRails: ()
[23:11:30] ebbflowgo: has joined #RubyOnRails
[23:11:41] ebbflowgo: has left #RubyOnRails: ()
[23:12:27] idd2d: has joined #RubyOnRails
[23:13:32] Grundell_: has joined #RubyOnRails
[23:13:53] Ropeney: has joined #RubyOnRails
[23:14:59] jenrzzz: has joined #RubyOnRails
[23:16:10] lipoqil: bootstrappm: Or you can mention me there (I go to bed), I am roolo on github
[23:16:22] lipoqil: Good night guys
[23:16:37] bootstrappm: okay cool lipoqil are you a contributer? or should i just mention you in the comments so you know it exists?
[23:16:57] martinbjeldbak: has joined #RubyOnRails
[23:17:09] ]Men: has joined #RubyOnRails
[23:17:18] eyck: has joined #RubyOnRails
[23:17:51] DoctorMonocular: has joined #RubyOnRails
[23:18:23] mices: https://gist.github.com/anonymous/5561b1c01ac66e8f34f7
[23:18:33] a1fa: on show pages, is it always smart to use simple_format for stuff coming out of the user editable fields?
[23:19:33] erichu: has joined #RubyOnRails
[23:19:55] Lightsword: has joined #RubyOnRails
[23:23:12] greengriminal: has joined #RubyOnRails
[23:23:20] ivanskie: has joined #RubyOnRails
[23:24:12] mices: my database.yml doesn't have any host entries
[23:24:25] mices: is it supposed to or did they get depracated?
[23:24:43] mices: do i have to add them
[23:27:53] johnflux: has joined #RubyOnRails
[23:27:55] a1fa: simle_format u punk
[23:28:14] bruno-: has joined #RubyOnRails
[23:28:47] andessen: has joined #RubyOnRails
[23:28:52] a1fa: simple_format ("#{whatever.model.try(:name)} (#{whatever.model.try(:friendly_name)})")
[23:28:58] a1fa: why is this not working?
[23:29:13] Radar: You're the one telling the story.
[23:30:16] a1fa: it works simple_format whatever.model.try(:name)
[23:30:20] a1fa: but not the other way
[23:32:36] deavid: has joined #RubyOnRails
[23:32:37] baweaver: does it happen to give you an error message
[23:32:57] andessen: has joined #RubyOnRails
[23:32:58] a1fa: not on the frontend
[23:33:03] a1fa: ACTION checks backend
[23:33:33] a1fa: no error -_-
[23:33:55] baweaver: not working is fairly broad, you do realize
[23:34:22] baweaver: throwing an error, wrong string comes out, no string at all, could be anything
[23:34:23] a1fa: yeah my bad
[23:34:25] a1fa: its working
[23:34:31] zpe: has joined #RubyOnRails
[23:34:33] a1fa: but its not outputing to the site
[23:34:45] a1fa: forgot to <%= or puts
[23:34:55] ecksit: has joined #RubyOnRails
[23:35:12] christiandsg: has joined #RubyOnRails
[23:35:35] Radar: puts won't put it to the page
[23:35:43] bootstrappm: here's that issue I promised: https://github.com/rails/rails/issues/21441 looks like its already being worked on
[23:38:03] Radar: bootstrappm: You're mad for having production credentials referenced in any local environment.
[23:38:15] allcentury: has joined #RubyOnRails
[23:38:16] Radar: bootstrappm: ideally the production credentials should only exist on the production servers
[23:38:49] Radar: for instance, http://twist.ryanbigg.com/ has a Capistrano script backed deployment which copies over config/database.yml to the app's directory.
[23:39:38] Radar: Sorry, the link is http://twistbooks.com/
[23:39:43] Radar: I forgot I had moved it :)
[23:40:09] bootstrappm: Radar take a look at the issue Rafael linked to. Regardless of whats ideal, people do it .... a lot it seems from Heroku's comment. I am annoyed yes, but that's not why I created the issue, I created it because its dangerous
[23:40:29] bootstrappm: one of the reasons is that DATABASE_URL is asked for by a lot of Heroku's command line programs
[23:40:50] Radar: I thought that you could specify DATABASE_URL on Heroku and it would use that in production automatically?
[23:40:59] bootstrappm: so I, as I'm sure others, do `export DATABASE_URL=blah`
[23:41:06] Radar: i.e. it didn't even need to be specified in your config/database.yml at all
[23:41:07] bootstrappm: yes but thats on their end
[23:41:20] bootstrappm: alright, gonna try to explain this from the beginning, sorry
[23:41:20] Radar: But why is it in your config/database.yml too?
[23:41:22] Radar: I am confused.
[23:41:28] bootstrappm: its that confusion thats the problem
[23:41:56] Radar: https://gist.github.com/radar/40b36282f49090bed974
[23:41:57] ebbflowgo: has joined #RubyOnRails
[23:41:59] bootstrappm: by being the config/database.yml it sounds like it'll only be used if used explicitly, which is not the case. If there was something in the comments about it that'd be cool too ... but their isn't
[23:42:03] Radar: This is a database.yml from a Heroku app that I have deployed.
[23:44:04] jottr: has joined #RubyOnRails
[23:44:09] ]Men: has joined #RubyOnRails
[23:44:19] Radar: It looks like on my Heroku app it ignores the production block in database.yml and uses DATABASE_URL from heroku instead
[23:45:24] christiandsg: has joined #RubyOnRails
[23:45:53] bootstrappm: yes, that's right. That's what it does, its expected behavior and everything. The issue is Rails uses that no matter what environment you're in. Which is dangerous because you can accidentally drop production tables, as is mentioned in the issue Rafael linked in the comment to my issue: https://github.com/rails/rails/pull/21237
[23:46:36] Radar: That's pretty bad :D
[23:46:46] bootstrappm: yep, thank god for backups
[23:46:59] Radar: Is god your devops person?
[23:47:09] joshkovach: has joined #RubyOnRails
[23:47:59] shilon: has joined #RubyOnRails
[23:48:19] shilon: has left #RubyOnRails: ()
[23:49:13] jesterfraud: has joined #RubyOnRails
[23:50:27] rogue_koder: has joined #RubyOnRails
[23:51:11] baweaver: has joined #RubyOnRails
[23:51:26] bootstrappm: was using it more idiomatically but if we had one named Jes??s that would have been a great joke
[23:52:09] idd2d: has joined #RubyOnRails
[23:53:45] rickmasta: has joined #RubyOnRails
[23:53:58] drim: has joined #RubyOnRails
[23:55:12] VeryBewitching: So are all settings in database.yml in the production block ignored on Heroku?
[23:55:26] jholm: has joined #RubyOnRails
[23:55:37] VeryBewitching: I have an app in there, just curious.
[23:56:00] jher: has joined #RubyOnRails
[23:56:20] jottr_: has joined #RubyOnRails
[23:56:34] paulcsmith: has joined #RubyOnRails
[23:56:58] drim: I am done a isolate gem engine, which is using url_for with only_path: false. default_url_options is set from the main_app but when calling url_for in the engine, iam getting : "Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true
[23:57:30] mices: what happens when the user creating apps is a member of the group wheel?
[23:58:01] atomical: has joined #RubyOnRails
[23:58:12] quazimodo: has joined #RubyOnRails
[23:59:49] Radar: VeryBewitching: I thought so until bootstrappm tells me otherwise.