« Back to channel list

#RubyOnRails - 10 July 2016

« Back 1 day Forward 1 day »
[00:02:24] hahuang61: has joined #RubyOnRails
[00:03:16] jottr: has joined #RubyOnRails
[00:09:58] ia9371: anyone have experience deploying a ruby on rails with gatorhost
[00:10:10] ia9371: im going to have to change host this is rediculous
[00:11:29] pontiki: just use heroku to start
[00:12:17] kies: has joined #RubyOnRails
[00:17:23] rogue_koder: has joined #RubyOnRails
[00:24:29] ecnalyr: has joined #RubyOnRails
[00:25:06] Oliphaunte: has joined #RubyOnRails
[00:27:52] SteveC: has joined #RubyOnRails
[00:34:22] SteveC: Rails newbie here. Can anyone recommend CoffeeScript alternatives? I noticed that by default generating controllers also creates a view w/ a corresponding CoffeeScript file for the JS in assets.
[00:37:19] matthewd: SteveC: ... JavaScript?
[00:38:58] der-landgraf: has joined #RubyOnRails
[00:39:42] matthewd: fredolinhares: AC::API is AC::Base without a bunch of things. If they were there, it wouldn't be any different. You should be able to re-include the specific module you want, if you like.
[00:39:45] kevr: How can I ensure that one javascript file is loaded before another one in assets, that is, b.js depends on a.js, and i think b.js is being loaded first
[00:40:34] matthewd: kevr: Make sure your '//= require' lines are in the right order
[00:41:26] matthewd: kevr: You should be able to just look at the returned file to confirm which is first (it sounds like you're not sure)
[00:42:08] kevr: matthewd: ah, indeed, i thought i wasn't supposed to mess with application.js much, but i can completely manage my dependencies there
[00:42:10] kevr: thank you
[00:42:18] kevr: good to know ;)
[00:42:20] kevr: all is well
[00:43:49] kevr: matthewd: is there a place where i should be placing javascript files that aren't inside the /app/assets/javascripts tree? i don't want to be loading this file twice for no reason
[00:44:12] kevr: actually, i can just look for where jquery_ujs is located.
[00:44:40] kevr: Hm, looks like it's not even in the project tree
[00:47:22] matthewd: You generally don't want to be doing a require_tree on the whole javascripts directory... for pretty much this reason
[00:48:32] matthewd: But, even if you keep it, require will only include files once, the first time they're mentioned
[00:48:46] kevr: oh, fantastic.
[00:48:55] kevr: thanks for all your help, matthewd.
[00:49:03] matthewd: So another option, instead of listing a & b in application.js, would be to '//= require a' inside b
[00:49:09] matthewd: No worries :)
[00:49:25] SteenJobs: has joined #RubyOnRails
[00:51:27] markin_: has joined #RubyOnRails
[00:53:54] Ayey_: has joined #RubyOnRails
[00:58:19] orolo: has joined #RubyOnRails
[00:58:38] ia9371: has left #RubyOnRails: ()
[00:59:37] SteenJobs: has joined #RubyOnRails
[01:03:24] blackmesa: has joined #RubyOnRails
[01:03:44] fredolinhares: matthewd: thank you.
[01:04:30] jottr: has joined #RubyOnRails
[01:24:12] Osmosis311: has joined #RubyOnRails
[01:25:05] Osmosis311: hi...this question may be more appropriate in the ruby channel, if so let me know. can someone explain to me the fundamentals of getting a simple web server (that can obviously handle concurrent users), up and running with a simple ruby app? are sinatra and puma interchangebale? meaning, they do the same thing?
[01:25:15] Osmosis311: Puma's website says it only runs "rack apps", what does that mean?
[01:25:22] Osmosis311: i've tried googling all this but im getting very confused
[01:28:32] fryguy: Osmosis311: rack is an interface that applications follow to allow them to be served by webservers
[01:28:43] fryguy: puma is an example of a webserver that serves things that follow rack
[01:28:51] fryguy: sinatra and rails are common frameworks that follow rack
[01:29:39] kies: has joined #RubyOnRails
[01:29:50] Osmosis311: so you would either use puma or sinatra?
[01:30:16] fryguy: puma is a webserver, sintatra is an application framework
[01:30:24] fryguy: you run a sinatra app by using puma, for example
[01:30:53] matthewd: Osmosis311: You would use puma|unicorn|thin|webrick to serve an application built with sinatra|rails. Rack is the interface between those two things.
[01:31:09] Osmosis311: so when Puma says it "only runs rack apps", all i need is a simple ruby app that uses sinatra, and it will run it?
[01:31:19] Osmosis311: and its automatically able to handle multiple clients at the same time?
[01:31:25] matthewd: Yes; sinatra is a rack app
[01:31:47] Osmosis311: gotcha. still learning ruby. i'm about a month in to my self-training. love ruby.
[01:32:15] Osmosis311: coming from Node, it's great and all, but i think asynchronous code was invented by the devil
[01:33:44] macsteps: has joined #RubyOnRails
[01:35:14] pontiki: synchronicity is just a special case of asynchronicity :D
[01:36:41] Osmosis311: haven't able to find something like this yet: is there any daemon service like PM2 but for Ruby
[01:38:05] matthewd: Nothing that directly corresponds, from a quick glance at the readme
[01:39:27] Osmosis311: is there a pattrn people follow for this?
[01:39:34] matthewd: Some combination of puma/unicorn's built-in child process management, and possibly https://github.com/ddollar/foreman, would probably be it
[01:40:33] fryguy: supervisord might also be relevant, and systemd
[01:41:30] eserror: has joined #RubyOnRails
[01:41:56] roamingdog: has joined #RubyOnRails
[01:42:02] quazimodo: has joined #RubyOnRails
[01:54:32] Ayey_: has joined #RubyOnRails
[02:02:08] JoshGlzBrk: has joined #RubyOnRails
[02:06:31] jottr: has joined #RubyOnRails
[02:08:03] flashpoint9: has joined #RubyOnRails
[02:08:56] dtzuzu: has joined #RubyOnRails
[02:10:40] akira616`: has joined #RubyOnRails
[02:13:22] roamingdog: has joined #RubyOnRails
[02:16:34] blackmesa: has joined #RubyOnRails
[02:21:25] hunq8: has joined #RubyOnRails
[02:21:53] hunq8: what is the most popular vm virtual lab setup?
[02:22:04] hunq8: basically i would like to run a production environment locally
[02:22:17] hunq8: using ubuntu server
[02:25:51] chimkan: has joined #RubyOnRails
[02:26:06] fryguy: hunq8: vagrant for traditional VMs, docker for containers
[02:26:53] hunq8: why vagrant?
[02:26:59] hunq8: i don't understand what it does
[02:27:05] fryguy: it creates VMs
[02:27:25] hunq8: why not just download a copy of ubuntu server and use vmware?
[02:27:53] pontiki: that works
[02:27:56] fryguy: because you need to go through the effort of doing that, vagrant will automate more of that for you
[02:28:04] pontiki: but vagrant build some extra goodness on top of that
[02:28:12] hunq8: i just never understood what it was for
[02:28:24] hunq8: i downloaded vagrant but it was giving me an error so i stopped
[02:28:32] fryguy: you can take your existing puppet/chef/whatever you use to create your production environment and integrate that with vagrant provisioners, for example
[02:28:46] hunq8: what would be the non vagrant way of doing it?
[02:28:59] chimkan: has joined #RubyOnRails
[02:29:15] pontiki: what you just said, download the ISO and run it from vmware
[02:29:21] chimkan: question on mysql
[02:29:22] fryguy: hunq8: just like you described, go download the iso and add it to vmware or virtualbox manually
[02:29:39] chimkan: how active-record and rails leverage MySQL ENTERPRISE version
[02:29:44] chimkan: such as the audit log ?
[02:29:48] hunq8: the problem i am having is that i can not connect to the vm with my browser
[02:29:53] yfeldblum: has joined #RubyOnRails
[02:29:53] chimkan: how can I pull audit from Rails
[02:30:02] hunq8: the server is running locally on that vm
[02:30:16] hunq8: but it's not visible outside of the vm
[02:30:24] pontiki: hunq8: this is one of the things vagrant does for you
[02:30:24] fryguy: hunq8: you add port forwards
[02:30:28] fryguy: hunq8: vagrant does that for you
[02:30:36] pontiki: haha, fryguy
[02:30:38] hunq8: vagrant doesn't work for me
[02:30:44] fryguy: hunq8: so fix it
[02:30:56] fryguy: alternatively, you can switch to bridged networking
[02:31:11] hunq8: x ./box-disk2.vmdk: Write failed x ./box.ovf: Write failed x ./Vagrantfile bsdtar.EXE: Error exit delayed from previous errors.
[02:31:18] hunq8: so i gave up
[02:31:29] hunq8: but how do i port forward manually?
[02:31:50] fryguy: https://www.vmware.com/support/ws55/doc/ws_net_nat_advanced.html
[02:32:36] pontiki: hunq8: you're not asking questions that have anything to do with rails
[02:32:51] hunq8: yes it does
[02:32:55] pontiki: no it doesn't
[02:32:57] hunq8: i am trying to set up a rails environment
[02:33:07] hunq8: please stop trolling
[02:33:08] pontiki: you can do that on your local machine
[02:33:15] pontiki: you are the troll here
[02:33:33] pontiki: virtual machines are used for many many things besides setting up rails
[02:33:40] pontiki: therefore the knowledge is outside of rails
[02:33:56] hunq8: i went to get help in vmware they told me to go to rails
[02:34:14] fryguy: the questions you are asking have nothing to do with rails
[02:34:55] pawnbox: has joined #RubyOnRails
[02:37:01] roamingdog: has joined #RubyOnRails
[02:39:33] jswe: has joined #RubyOnRails
[02:50:41] pawnbox: has joined #RubyOnRails
[02:53:23] OldN0rse: has joined #RubyOnRails
[02:55:17] Ayey_: has joined #RubyOnRails
[03:03:10] Tempesta: has joined #RubyOnRails
[03:03:10] Tempesta: has joined #RubyOnRails
[03:03:30] dcunit3d: has joined #RubyOnRails
[03:03:55] chimkan: has left #RubyOnRails: ()
[03:05:36] tossup: has joined #RubyOnRails
[03:06:03] pawnbox: has joined #RubyOnRails
[03:07:18] jottr: has joined #RubyOnRails
[03:07:46] jahbrewski: has joined #RubyOnRails
[03:08:20] JoshGlzBrk: has joined #RubyOnRails
[03:09:36] flashpoint9: has joined #RubyOnRails
[03:10:34] tossup: Hello friends
[03:12:27] tossup: I want to know if would could make a question. Thanks
[03:14:24] kevr: has joined #RubyOnRails
[03:14:49] Paradox: has joined #RubyOnRails
[03:18:22] blackmesa: has joined #RubyOnRails
[03:20:41] treaki_: has joined #RubyOnRails
[03:21:38] tossup: Well, I new on Ruby and Rails, I use Ubuntu for programming. When I executed for example "rails new proyect" in my CLI Rails create the files but a error happen "ERROR REPORT TEMPLATE" and later "Errno::EACCES: Permission denied @ dir_s_mkdir - /home/tossup/.bundle/cache/compact_index/rubygems.org.443.29b0360b937aa4d161703e6160654e47/versions20160709-7422-1e6f6iu" but i dont understand because am working in my path /home/user/
[03:22:26] _Tariq: has joined #RubyOnRails
[03:22:47] pontiki: tossup: what are you using for the ruby and rails programs?
[03:23:21] tossup: The project is successfully created and works well but is that mistake ?
[03:23:56] brianpWins_: has joined #RubyOnRails
[03:23:56] pontiki: i've never seen it before
[03:24:06] pontiki: this is why i ask
[03:24:23] tossup: pontiki: You say the OS?
[03:24:34] pontiki: what did i ask?
[03:24:54] tossup: I installed Ruby and Rails with rvm from the rails guide
[03:26:03] pontiki: now do `rvm implode` and install them like so: http://ryanbigg.com/2014/10/ubuntu-ruby-ruby-install-chruby-and-you/
[03:26:55] tossup: You could recommend me a guide for install all correctly?
[03:27:06] tossup: I will do
[03:27:21] elomatreb: tossup: Did you by chance install or generate rails using sudo?
[03:27:59] tossup: Just my user
[03:28:23] elomatreb: Are you sure ruby is also running as a process of your user?
[03:30:14] jishankai: has joined #RubyOnRails
[03:38:13] quazimodo: has joined #RubyOnRails
[03:42:58] lxsameer: has joined #RubyOnRails
[03:43:44] zacts: has joined #RubyOnRails
[03:45:32] tossup: Yes, i saw
[03:45:47] tossup: I will reinstall again
[03:46:00] pontiki: you coulda been done by now :)
[03:46:18] The_Phoenix: has joined #RubyOnRails
[03:51:15] benlieb: has joined #RubyOnRails
[03:52:57] kevr: has joined #RubyOnRails
[03:55:26] tossup: Well, A lot of Thanks guys for your time
[03:56:28] Ayey_: has joined #RubyOnRails
[04:08:03] jottr: has joined #RubyOnRails
[04:13:18] pawnbox: has joined #RubyOnRails
[04:20:45] Oliphaunte: has joined #RubyOnRails
[04:21:01] Paradox: has joined #RubyOnRails
[04:21:30] blackmesa: has joined #RubyOnRails
[04:24:52] harfangk: has joined #RubyOnRails
[04:26:09] Oliphaunte: has joined #RubyOnRails
[04:28:08] xcesariox: has joined #RubyOnRails
[04:34:38] naftilos76: has joined #RubyOnRails
[04:37:59] zacts: has joined #RubyOnRails
[04:41:23] djbkd_: has joined #RubyOnRails
[04:43:57] Guest54890: has joined #RubyOnRails
[04:47:03] naftilos76: has joined #RubyOnRails
[04:51:12] jbrinkmusic: has joined #RubyOnRails
[04:53:21] pawnbox: has joined #RubyOnRails
[04:55:33] SharksAbove: has joined #RubyOnRails
[04:57:05] Ayey_: has joined #RubyOnRails
[05:07:22] norfumpit: has joined #RubyOnRails
[05:08:14] Oliphaunte: has joined #RubyOnRails
[05:08:49] jottr: has joined #RubyOnRails
[05:09:25] M-shine: has joined #RubyOnRails
[05:11:44] Oliphaunte: has joined #RubyOnRails
[05:22:35] max1: has joined #RubyOnRails
[05:24:33] blackmesa: has joined #RubyOnRails
[05:24:33] pawnbox: has joined #RubyOnRails
[05:27:55] benlieb: has joined #RubyOnRails
[05:30:55] asianMike: has joined #RubyOnRails
[05:31:14] Ebok: has joined #RubyOnRails
[05:37:54] sypheren: has joined #RubyOnRails
[05:40:25] rubyonrails563: has joined #RubyOnRails
[05:40:32] rubyonrails563: How can I style hints in simple form?
[05:49:50] ecnalyr: has joined #RubyOnRails
[05:55:20] pawnbox: has joined #RubyOnRails
[05:57:49] Ayey_: has joined #RubyOnRails
[06:00:43] chandlerbing: has joined #RubyOnRails
[06:01:33] kevr: has joined #RubyOnRails
[06:01:34] harfangk: has joined #RubyOnRails
[06:08:42] dionysus69: has joined #RubyOnRails
[06:09:33] jottr: has joined #RubyOnRails
[06:11:38] Parutz: has joined #RubyOnRails
[06:12:12] asianMike: has joined #RubyOnRails
[06:15:16] mad_cow: has joined #RubyOnRails
[06:16:01] OldN0rse: whats best practice for testing views? I seem to see more feature tests that cover a view rather than explicity view tests
[06:17:55] darutoko: has joined #RubyOnRails
[06:23:15] benlieb: has joined #RubyOnRails
[06:24:44] pontiki: what's important in testing views, OldN0rse ?
[06:25:15] OldN0rse: certain content appears when it should
[06:26:00] dtzuzu: has joined #RubyOnRails
[06:26:17] blackmesa: has joined #RubyOnRails
[06:27:53] pontiki: that's the best practice: ask what's important about testing it
[06:28:24] tego101: has joined #RubyOnRails
[06:28:30] benlieb: has joined #RubyOnRails
[06:30:11] tvw: has joined #RubyOnRails
[06:42:13] salemjs: has joined #RubyOnRails
[06:43:06] daumie: has joined #RubyOnRails
[06:45:46] salemjs: Hey guys! I need advice with Devise. I need to do user's profile with a lot of fields. Do you usually extend the Devise controller or do you split it 2 controllers?
[06:46:40] jstransky: has joined #RubyOnRails
[06:56:34] kevr: has joined #RubyOnRails
[06:58:24] Dimik: has joined #RubyOnRails
[06:58:52] Ayey_: has joined #RubyOnRails
[07:00:32] dionysus69: has joined #RubyOnRails
[07:05:30] tanuki: has joined #RubyOnRails
[07:08:16] tossup_: has joined #RubyOnRails
[07:10:21] jottr: has joined #RubyOnRails
[07:10:55] Ebok: has joined #RubyOnRails
[07:22:07] mad_cow: has joined #RubyOnRails
[07:23:44] srinidhi: has joined #RubyOnRails
[07:23:53] srinidhi: has joined #RubyOnRails
[07:27:29] blackmesa: has joined #RubyOnRails
[07:28:01] owaiswiz: has joined #RubyOnRails
[07:30:34] harfangk: has joined #RubyOnRails
[07:30:37] pawnbox: has joined #RubyOnRails
[07:37:48] solars: has joined #RubyOnRails
[07:38:58] marr: has joined #RubyOnRails
[07:43:50] alfiemax: has joined #RubyOnRails
[07:44:02] mad_cow: has joined #RubyOnRails
[07:55:39] armyriad: has joined #RubyOnRails
[07:55:43] daumie: has joined #RubyOnRails
[07:57:35] spyder55: has joined #RubyOnRails
[07:59:07] blackmesa: has joined #RubyOnRails
[07:59:54] Ayey_: has joined #RubyOnRails
[08:11:07] jottr: has joined #RubyOnRails
[08:11:38] fox_mulder_cp: can somebody use resque? when i change a job.rb, it seems that it nor be reloaded in resque worker..
[08:14:59] PotatoChipz: has joined #RubyOnRails
[08:16:04] yardenbar: has joined #RubyOnRails
[08:17:55] PotatoChipz: hello. i created an activerecord class method and i'm wondering if it's possible to get the current collection from there. so i can call something like... @ar_collection.my_method
[08:18:29] PotatoChipz: 'cos right now i can only map the IDs of the records of that collection
[08:19:13] zacts: has joined #RubyOnRails
[08:19:21] PotatoChipz: so basically I want to add an AR relation method...
[08:27:21] Tempesta: has joined #RubyOnRails
[08:38:12] SteenJobs: has joined #RubyOnRails
[08:42:28] SteenJobs: has joined #RubyOnRails
[08:43:06] matthewd: potatochipz: Real example please
[08:45:37] ur5us: has joined #RubyOnRails
[08:52:10] futilegames: has joined #RubyOnRails
[08:53:45] spectra: has joined #RubyOnRails
[08:53:45] joelsmith: has joined #RubyOnRails
[08:53:45] DigitalDarwin: has joined #RubyOnRails
[08:53:45] hadronzoo: has joined #RubyOnRails
[08:54:05] dtzuzu: has joined #RubyOnRails
[08:54:05] morfin: has joined #RubyOnRails
[08:54:05] antgel: has joined #RubyOnRails
[08:54:05] The_Phoenix: has joined #RubyOnRails
[08:54:05] lxsameer: has joined #RubyOnRails
[08:54:05] yfeldblum: has joined #RubyOnRails
[08:54:05] markin: has joined #RubyOnRails
[08:54:05] crdpink: has joined #RubyOnRails
[08:54:05] xibalba: has joined #RubyOnRails
[08:54:05] banisterfiend: has joined #RubyOnRails
[08:54:05] Markhor1991: has joined #RubyOnRails
[08:54:06] MuffinPimp: has joined #RubyOnRails
[08:54:06] Scient: has joined #RubyOnRails
[08:54:06] tw1sted: has joined #RubyOnRails
[08:54:06] svkurowski: has joined #RubyOnRails
[08:54:06] mcr-credil: has joined #RubyOnRails
[08:54:06] c355E3B: has joined #RubyOnRails
[08:54:06] Liothen: has joined #RubyOnRails
[08:54:06] phon: has joined #RubyOnRails
[08:54:06] baweaver: has joined #RubyOnRails
[08:54:06] Ikri: has joined #RubyOnRails
[08:54:06] meinside: has joined #RubyOnRails
[08:54:06] hive-mind: has joined #RubyOnRails
[08:54:06] fumck: has joined #RubyOnRails
[08:54:06] fryguy: has joined #RubyOnRails
[08:54:06] tfitts: has joined #RubyOnRails
[08:54:06] arathald: has joined #RubyOnRails
[08:54:06] upgrayeddd: has joined #RubyOnRails
[08:54:06] thomasfedb: has joined #RubyOnRails
[08:54:06] Guest92364: has joined #RubyOnRails
[08:54:06] kitallis: has joined #RubyOnRails
[08:54:06] LateralOctober: has joined #RubyOnRails
[08:54:06] ndrst: has joined #RubyOnRails
[08:54:06] universa1: has joined #RubyOnRails
[08:54:06] csmb_: has joined #RubyOnRails
[08:54:06] spastorino: has joined #RubyOnRails
[08:54:06] Seich: has joined #RubyOnRails
[08:54:07] Sylario: has joined #RubyOnRails
[08:54:07] swistak35: has joined #RubyOnRails
[08:54:07] borkdude: has joined #RubyOnRails
[08:54:07] jlpeters: has joined #RubyOnRails
[08:54:07] Hates_: has joined #RubyOnRails
[08:54:07] TheShaun: has joined #RubyOnRails
[08:54:07] nyandoge: has joined #RubyOnRails
[08:54:07] deeprave: has joined #RubyOnRails
[08:54:07] jcugno__: has joined #RubyOnRails
[08:54:07] hjdivad: has joined #RubyOnRails
[08:54:07] RubyNewbey_____: has joined #RubyOnRails
[08:54:07] tpendragon: has joined #RubyOnRails
[08:54:07] Y_Ichiro: has joined #RubyOnRails
[08:54:07] cschneid: has joined #RubyOnRails
[08:54:07] epochwolf: has joined #RubyOnRails
[08:54:07] Psy-Q: has joined #RubyOnRails
[08:54:07] euphoria-: has joined #RubyOnRails
[08:54:07] Junaos: has joined #RubyOnRails
[08:54:07] jpterry: has joined #RubyOnRails
[08:54:07] bodie_: has joined #RubyOnRails
[08:54:07] wsmoak: has joined #RubyOnRails
[08:54:07] markelite: has joined #RubyOnRails
[08:54:07] Hosh: has joined #RubyOnRails
[08:54:07] herenow: has joined #RubyOnRails
[08:54:07] Klumben: has joined #RubyOnRails
[08:54:07] Gabriel413: has joined #RubyOnRails
[08:54:07] codepete: has joined #RubyOnRails
[08:54:07] ELCALOR: has joined #RubyOnRails
[08:54:07] alxndr: has joined #RubyOnRails
[08:54:07] FooBarWidget: has joined #RubyOnRails
[08:54:07] BBHoss: has joined #RubyOnRails
[08:54:08] lipoqil: has joined #RubyOnRails
[08:54:08] blackjid: has joined #RubyOnRails
[08:54:08] roqo: has joined #RubyOnRails
[08:54:11] the_drow: has joined #RubyOnRails
[08:54:11] dr_summer: has joined #RubyOnRails
[08:54:11] triangles: has joined #RubyOnRails
[08:54:11] bool_: has joined #RubyOnRails
[08:54:11] quakephil: has joined #RubyOnRails
[08:54:11] Jon30: has joined #RubyOnRails
[08:54:11] Aherin: has joined #RubyOnRails
[08:54:11] Zackio: has joined #RubyOnRails
[08:54:11] erlend: has joined #RubyOnRails
[08:54:11] sunya7a_: has joined #RubyOnRails
[08:54:11] wkoszek_: has joined #RubyOnRails
[08:54:11] callumacrae: has joined #RubyOnRails
[08:54:12] tjvc: has joined #RubyOnRails
[08:54:12] TessaM: has joined #RubyOnRails
[08:54:12] constantinexvi: has joined #RubyOnRails
[08:54:12] martinbjeldbak_: has joined #RubyOnRails
[08:54:12] ltd_: has joined #RubyOnRails
[08:54:12] nickjj: has joined #RubyOnRails
[08:54:12] Prira: has joined #RubyOnRails
[08:54:12] ghormoon: has joined #RubyOnRails
[08:55:57] AntiSpamMeta: has joined #RubyOnRails
[08:56:05] blackmesa: has joined #RubyOnRails
[08:56:20] Pupeno: has joined #RubyOnRails
[08:57:52] pfg: has joined #RubyOnRails
[08:58:22] edwinvdgraaf: has joined #RubyOnRails
[08:58:52] srinidhi: has joined #RubyOnRails
[08:59:11] SteenJobs: has joined #RubyOnRails
[08:59:14] kevr: has joined #RubyOnRails
[08:59:35] lexileo: has joined #RubyOnRails
[09:00:35] Ayey_: has joined #RubyOnRails
[09:02:03] futilegames: has joined #RubyOnRails
[09:03:09] norfumpit: has joined #RubyOnRails
[09:07:43] futilegames: has joined #RubyOnRails
[09:07:55] fermonkus: has joined #RubyOnRails
[09:10:35] flashpoint9: has joined #RubyOnRails
[09:11:53] jottr: has joined #RubyOnRails
[09:12:12] futilegames: has joined #RubyOnRails
[09:12:42] pawnbox: has joined #RubyOnRails
[09:13:46] M4dH4TT3r: has joined #RubyOnRails
[09:17:37] blackmesa: has joined #RubyOnRails
[09:21:31] barajasfab: has joined #RubyOnRails
[09:23:28] quazimodo: has joined #RubyOnRails
[09:27:08] ecnalyr: has joined #RubyOnRails
[09:27:20] shinnya: has joined #RubyOnRails
[09:28:59] jottr: has joined #RubyOnRails
[09:32:03] deeprave: has left #RubyOnRails: ()
[09:32:43] Guest27170: has joined #RubyOnRails
[09:32:44] harfangk: has joined #RubyOnRails
[09:38:21] theod: has joined #RubyOnRails
[09:39:28] rails56: has joined #RubyOnRails
[09:39:33] rails56: https://gist.github.com/anonymous/67988a1f2f3cdd12ef7633613cca770e
[09:39:38] rails56: can someone take a look?
[09:44:30] tvw: has joined #RubyOnRails
[09:46:24] netzfisch: has joined #RubyOnRails
[09:46:38] Ayey_: has joined #RubyOnRails
[09:50:16] AzaToth: has joined #RubyOnRails
[09:53:04] spyder55: has joined #RubyOnRails
[09:55:58] Pupeno: When signing up I need to ask for an extra field, the name of the organization, that doesn't go in the user model but in the organization model. What's the easiest way to do it? I already tried the nested fields route and I can't just get it to work.
[10:01:33] blackmesa: has joined #RubyOnRails
[10:05:09] jottr: has joined #RubyOnRails
[10:08:47] macsteps: has joined #RubyOnRails
[10:09:12] Megamos: has joined #RubyOnRails
[10:09:13] nettoweb: has joined #RubyOnRails
[10:16:15] Sashimi: has joined #RubyOnRails
[10:17:56] harfangk: has joined #RubyOnRails
[10:19:23] ur5us: has joined #RubyOnRails
[10:24:04] Guest27170: has joined #RubyOnRails
[10:27:50] mad_cow: has joined #RubyOnRails
[10:29:51] conta: has joined #RubyOnRails
[10:33:03] Jet4Fire: has joined #RubyOnRails
[10:34:00] jottr: has joined #RubyOnRails
[10:35:11] daumie: has joined #RubyOnRails
[10:43:02] skroon: has joined #RubyOnRails
[10:46:03] jottr: has joined #RubyOnRails
[10:46:03] the_drow: where do I place functional tests in rails?
[10:47:07] blackmesa: has joined #RubyOnRails
[10:47:20] Ayey_: has joined #RubyOnRails
[10:52:17] fermonkus: has joined #RubyOnRails
[10:52:19] jottr: has joined #RubyOnRails
[10:59:56] jottr: has joined #RubyOnRails
[11:02:10] Pupeno: has joined #RubyOnRails
[11:07:15] Pupeno: has joined #RubyOnRails
[11:13:04] conta: has joined #RubyOnRails
[11:13:26] fermonkus: In a situation where I'm defining a 'home' group for users (relationship is HMT on 'memberhsips' model) by adding a 'home' column to the memberships table, what reasons are there to use boolean vs binary?
[11:18:11] fox_mulder_cp: fermonkus: boolean - only nil/true/false. binary - i can't know cases, when we need binary, exept bad idea with storing blobs in sql
[11:19:50] fermonkus: fox_mulder_cp: ok it sounds like that makes boolean the best option
[11:20:33] fox_mulder_cp: fermonkus: and usable as true/false, with no shits with converting and parsing
[11:21:47] jottr: has joined #RubyOnRails
[11:22:35] t-ask: has joined #RubyOnRails
[11:22:35] fermonkus: fox_mulder_cp: thanks. Would the best way to enforce only a single 'home' be to set default to false, and add logic in the controller/model to change it to True when a home is set (and convert any standing True state to False), or is there a better way?
[11:23:30] renegadegaru: has joined #RubyOnRails
[11:23:49] blackhuey: has joined #RubyOnRails
[11:23:53] gokul: has joined #RubyOnRails
[11:25:05] max1: has joined #RubyOnRails
[11:26:03] t-ask: Hi, I'm about to install a Rail app on a webserver which serves several domains. Now I'm asking myself what'sthe best way to install this webapp. What do I need to do to secure the environment?
[11:26:20] fox_mulder_cp: fermonkus: hm. default can be set up in migration, and in controller unless var redirect link)to prifle
[11:26:21] pawnbox: has joined #RubyOnRails
[11:26:47] fox_mulder_cp: t-ask: now good way is a docker containers per apps
[11:26:50] gokulnath__: has joined #RubyOnRails
[11:27:08] t-ask: Do I need to use RVM in a multi-user environment? Which users and groups I need to assign eg.
[11:28:17] fox_mulder_cp: t-ask: i have a lxc container for development and production apps run in docker containers
[11:28:35] fox_mulder_cp: with nginx as proxying and caching behind it
[11:28:38] t-ask: fox_mulder_cp: never use ony of those
[11:29:20] fox_mulder_cp: t-ask: read about it. hmm. may be write dockerfile for my blog app for example use it..
[11:30:47] t-ask: fox_mulder_cp: as I read it, why are you using docker over lxc for production?
[11:32:29] fox_mulder_cp: t-ask: lxc - full vm. docker - runs only app instance, without syslog, mail, cron, systemd and etc. docker - 'one process' named confitainer. ir make smallest it's RAM usin
[11:38:25] Rodya_: has joined #RubyOnRails
[11:39:10] t-ask: Lets say I would use docker and I have a webapps 'typical' installation instructions. Do I just create anew docker instance, then just follow the instructions and run the rails server and proxying it? I read about so many things around Rails like RVM eg. or are those tools only needed without docker/LXC?
[11:40:30] t-ask: fox_mulder_cp: The thng is I'm getting a bit confused about all that stuff, users, groups eg. I need or don't need to assign then.
[11:41:35] fox_mulder_cp: t-ask: 1. create docker image. 2. create some instances of your app based on your image from step 1
[11:42:25] fox_mulder_cp: 3. install nginx and create vhosts per your external site name with upstream to instances from step 2
[11:42:45] petor: has joined #RubyOnRails
[11:42:53] t-ask: fox_mulder_cp: especially, if I it might be possible if I assign the webapp to several domains. I guess, it is like e creating a new conatiner, Installing it like I would install it as a single instance on a single domain and then proxying it to a subdomain eg.
[11:43:16] fox_mulder_cp: t-ask u can do everything :)
[11:44:00] fox_mulder_cp: app instance - only upstream for nginx. u can crate tons of vhost which be pointed to one upstream
[11:44:18] fox_mulder_cp: by dns cname, vhost redirection, or direct
[11:44:30] t-ask: fox_mulder_cp: and that's the problem, too many options I don't want to try out, before I know which one is working .)
[11:45:22] fox_mulder_cp: t-ask: if u create web app u must know how to this shit workd commonly :)
[11:45:44] fox_mulder_cp: or have a devops which makes CI for u :)
[11:46:34] fox_mulder_cp: anyway, now i'm write control panel for apps hosting
[11:46:46] t-ask: it is not about the details, it is about spending as least as time in learning the tools I really need, not wasting time with learning things I don't
[11:47:39] t-ask: haha, now I come along systemd-nspawn, too.
[11:48:23] Ayey_: has joined #RubyOnRails
[11:48:34] t-ask: OK, the general approch you recommend is create a conatiner, setup the webapp there, run the rails server and proxying liek I want.
[11:48:38] fox_mulder_cp: t-ask: i can help u as devops/admin, if u has a qa, learning docker make u profit in CI..
[11:50:03] blackmesa: has joined #RubyOnRails
[11:50:35] t-ask: What I assume now is that for a single webapp runing in a singel container I can just follow the install instructions provided and I don't neeed to think about RVM, multi/single user Rails environents eg. Just setting it up, and the proxying it.
[11:51:21] antgel: has joined #RubyOnRails
[11:51:42] fox_mulder_cp: when u create docker image, with git based src of your app, u can quickly deploying new app version
[11:52:06] fox_mulder_cp: by hooks, as example
[11:54:08] t-ask: but this isn't depend on docker only, or? I can ddo the same with other containers.
[11:55:59] t-ask: fox_mulder_cp: is my assumption starting with "What I assume now is ..." from above, right?
[11:56:56] fox_mulder_cp: english is not my native, so i sometimes can't know, what want speak my opponent for me, sorry
[11:57:48] fox_mulder_cp: t-ask: lxc/openvz/ or etc 'full' containers must be admined properly
[11:58:42] fox_mulder_cp: docker don't need it because it serve only your apps, no ssh/ftp and other services which must be served for security
[12:04:12] t-ask: fox_mulder_cp: no worries, it is just that experience, that if I want to achieve on thing, the web provides me with another "idea" to do it and then another one eg.
[12:05:05] benlieb: has joined #RubyOnRails
[12:07:26] t-ask: fox_mulder_cp: and if setting up a container is not beneficial (which I can't tell, as I didn't use so far) I get into confusion, if it is worth the time learning another "new cool way" of solving things. And setting up a multi/single user environemnt with RVM seems to be complicating things as I have to adopt the install instructions of any webapp to this RVM environment eg.
[12:08:21] fox_mulder_cp: u can do it one, after u can msake images quick and easy
[12:08:44] CausaMortis: has joined #RubyOnRails
[12:08:52] t-ask: images is like snapshots?
[12:08:55] fox_mulder_cp: whick stay secured and can be limited for cpu or ram
[12:09:11] fox_mulder_cp: read docker docs &)
[12:09:30] t-ask: I think, I go the docker way then
[12:10:08] t-ask: Looks liek there are some general instruction vids on YT
[12:11:10] fox_mulder_cp: but don store mysql/pg in docker
[12:11:16] quazimodo: has joined #RubyOnRails
[12:11:25] fox_mulder_cp: stay it at standalone host or lxc vm
[12:13:02] t-ask: LIke the database would be on a seperate system ;)
[12:13:23] fox_mulder_cp: in production - really, yes
[12:14:12] fox_mulder_cp: in testing/dev - some years ago i test one app with tons of mysql/clones verions
[12:16:24] blackmesa: has joined #RubyOnRails
[12:22:32] jottr: has joined #RubyOnRails
[12:23:10] binaryplease: has joined #RubyOnRails
[12:23:49] jahbrews1i: has joined #RubyOnRails
[12:26:19] nickjj: t-ask, i just released a tool that you might like
[12:27:07] t-ask: nickjj: another tool ;) I'm just overwhelmed by all that new stuff I try to understand
[12:27:28] daumie: has joined #RubyOnRails
[12:27:38] nickjj: t-ask, in this case, it's a tool that generates an example rails app that's dockerized
[12:27:50] nickjj: so you can look at it to see how you can tie in a multi-service rails app with docker
[12:27:56] t-ask: just got a hint on docker-machines and then it is used with virtualbox. I can tell you ... :)
[12:29:23] blackmesa: has joined #RubyOnRails
[12:29:40] t-ask: I feel like.. "once there were just a simple http folder to run a webpage" :)
[12:29:55] nickjj: t-ask, also just released a blog post that goes into great detail explaining the docker aspects of the app
[12:29:56] tedwards: has joined #RubyOnRails
[12:34:12] allcentury: has joined #RubyOnRails
[12:34:15] fox_mulder_cp: nickjj: link, plz
[12:34:38] nickjj: fox_mulder_cp, the blog post is http://nickjanetakis.com/blog/dockerize-a-rails-5-postgres-redis-sidekiq-action-cable-app-with-docker-compose
[12:35:02] nickjj: the tool is linked within there, it's nothing fancy, it just generates what i would consider to be a "best practices" dockerized rails app that's ready for production
[12:35:04] fox_mulder_cp: nickjj: oww. u use activecable in production?
[12:36:01] fox_mulder_cp: nickjj: i'n now write apps hostin control panel with some other features
[12:36:14] nickjj: sort of kind of, i have a lot of experience with faye
[12:37:08] fox_mulder_cp: nickjj: i'm very intrested in activecable manual, but default chat example - very example.. ((
[12:37:08] nickjj: i have an app in dev now that's using AC and i'd feel comfortable shipping it (the app isn't ready yet), but it's passing various performance related tests that i've thrown at it
[12:37:34] Pupeno: has joined #RubyOnRails
[12:37:43] nachtw1nd: has joined #RubyOnRails
[12:37:54] nickjj: dhh has a video on youtube that he posted last month, it uses AC for real time blog comments
[12:37:55] fox_mulder_cp: nickjj: i think, that activecable with angular/react etc seems good, for clientside
[12:38:03] nickjj: it's nothing super in detail but it's a good start
[12:38:26] nickjj: it's basically the 2016 version of his "make a blog with rails!" video, about 20min long
[12:38:48] nickjj: except he doesn't sound like he took a bottle of speed and drank 17 cups of coffee before recording it haha
[12:39:23] fox_mulder_cp: oh shit.. some litres of coffee
[12:39:42] nickjj: i don't know if you remember his original video from way back, the original rails blog video
[12:43:49] durexlw: has joined #RubyOnRails
[12:43:54] durexlw: afternoon all
[12:48:25] fox_mulder_cp: i have a russian language post for my app, but schema and screenshot now in english
[12:49:29] Ayey_: has joined #RubyOnRails
[12:52:05] pawnbox: has joined #RubyOnRails
[12:53:10] The_Phoenix: has joined #RubyOnRails
[12:54:28] durexlw: fox_mulder_cp: what do you mean?
[12:54:30] daumie: has joined #RubyOnRails
[12:54:43] durexlw: you need to translate your app itself using localization
[12:55:01] fox_mulder_cp: durexlw: lat hour we speaking about dockerizing own apps
[12:56:02] durexlw: ok, bad timing for me then :)
[12:57:10] durexlw: probably cause I missed the context of your question then
[12:57:47] _Tariq: has joined #RubyOnRails
[12:59:33] fox_mulder_cp: durexlw: i says that i'm write post about my panel, but it in russian, with engish schema and screenshot of container
[12:59:56] fox_mulder_cp: mainly i have a qa about good active cable manual
[13:00:05] fox_mulder_cp: bun nickjj help me in pm
[13:00:10] durexlw: yeah, I can see that... I just interpreted it as being a problem, cause I missed the context, whereas you just made a statement, right :)
[13:01:06] fox_mulder_cp: durexlw: i'm a two small hostings hostmaster and write my own panel for apps control
[13:01:45] fox_mulder_cp: this sentence has a valid grammar?
[13:03:21] durexlw: it's ok if you ask me, it might be easier to read when writing "I'm a hostmaster of two small hostings and I write my own panels for controlling the hosted apps"
[13:03:45] durexlw: it's ok if you ask me, it might be easier to read when writing "I'm a hostmaster of two small hostings and I write my own panels for controlling the apps" (maybe it had a bit too much 'hosting' in it
[13:03:56] ecnalyr: has joined #RubyOnRails
[13:04:23] fox_mulder_cp: english is not my native, so i try to communicate and make up my english knowledges
[13:04:25] ElFerna: has joined #RubyOnRails
[13:04:58] Ebok: has joined #RubyOnRails
[13:05:01] durexlw: and the other one "There's a russian language post for my app, but the schema and the screenshots are currently in English"
[13:05:40] durexlw: and the other one "There's a russian language post for my app, but the schema and screenshots are currently in English" (second 'the' is a bit redundant)
[13:05:53] durexlw: you don't have the 'the' words in russian, right?
[13:06:57] fox_mulder_cp: yes, we have a free form of sentences forming, context-based
[13:07:21] durexlw: Say I have a User that has_many activations, a polymorphic 'activatable' model Activations and (several things like) Service that is activatable. If there a way to do something like: "user.activations.service" ?
[13:07:59] fox_mulder_cp: durexlw: what you mean about activation?
[13:09:02] durexlw: Activation is just a model that keeps track if a User has activated a Service
[13:10:14] durexlw: But since a user can activate many other things, say for example an article, I made 'Activations' a polymorphic table, so that I can do Article that is activatable to a user, as well as Service that is activatable to a user
[13:10:17] fox_mulder_cp: i think about user has many service, servive has a scope activated ->{activated: true}
[13:11:35] fox_mulder_cp: durexlw: keep schema KISS.. i don't know why u need polymorphic here
[13:12:36] gokul: has joined #RubyOnRails
[13:13:29] durexlw: fox_mulder_cp: say you want a user to be able to activate an Email-service and say a specific article, I'd think that's a fair use to use polymorphism, no?
[13:14:06] durexlw: then I can call the uniform user.activations to see if a user is entitled to use the email service or if he's entitled to see the article
[13:14:12] fox_mulder_cp: i have a client, which has a reseller with some rate plans
[13:14:34] fox_mulder_cp: if client ha rate plan without hosting, it can't create apps
[13:15:05] jeromelanteri: has joined #RubyOnRails
[13:15:54] fox_mulder_cp: durexlw: polymorphism has a good manual on default rails guides, so if your user, product has a photo - good idea to use it
[13:16:05] Z00t: has joined #RubyOnRails
[13:16:25] jeromelanteri: is it possible to share a form through different partial views (for exemple, edit by js call and render partial in each part of a show view... like that the edit page is exactly the same than the show page, but with each div edited...) ?
[13:17:02] durexlw: jeromelanteri: not sure if I understand the question
[13:17:10] durexlw: render 'partial' ?
[13:17:45] jeromelanteri: then the edit.coffee should have many $("#id_of_target_data").html '<%= j(render partial: "name_form", object: @article) %>'
[13:18:10] jeromelanteri: one for each field to be edited... inside the show page view.
[13:18:10] fox_mulder_cp: jeromelanteri: it's a default scaffolding :)
[13:18:33] jeromelanteri: yes, just add à target id or class for point on it for put the form field
[13:18:41] roamingdog: has joined #RubyOnRails
[13:18:41] fox_mulder_cp: when u create scaffold some - new and edit methods use one form for editing model
[13:18:56] jeromelanteri: fox_mulder_cp, thank you, i know that.
[13:19:32] jeromelanteri: fox_mulder_cp, imagine now that you do edit by javascript (ajax call)
[13:19:45] pawnbox: has joined #RubyOnRails
[13:19:47] jeromelanteri: then instead of render a unique partial form
[13:20:22] jeromelanteri: you render many. Why ? just for show edited field just in place of each data needed to be edited.
[13:21:12] jeromelanteri: but... i arrives to do that, the problem is to share the "form" data in the way that when you click submit, it read and post all the fields form
[13:21:21] fox_mulder_cp: jeromelanteri: hmm. some weeks ago i try to use react with rails and found a light and good guide..
[13:21:31] durexlw: jeromelanteri: why use js? just do that in your view? do render 'partial' many times. Even if you do it with js, it's just the same, just a form that sends something to a controller... nothing magic there
[13:21:58] jeromelanteri: durexlw, your answer show that i failed to explain what i try to do.
[13:22:09] fox_mulder_cp: but seems that render @article touch views/article/_article
[13:22:44] jeromelanteri: durexlw, if you split the form, at submit time, your form will have empty datas...
[13:23:17] jottr: has joined #RubyOnRails
[13:23:39] Ayey_: has joined #RubyOnRails
[13:23:42] jeromelanteri: i just try to share the data 'form'.
[13:23:51] jeromelanteri: between each partial views
[13:24:03] durexlw: ok, so multipage form?
[13:24:11] durexlw: wizard-like?
[13:24:38] fox_mulder_cp: durexlw: wicked gem
[13:24:41] jeromelanteri: ok, i will go to do a little example case test to paste gist... waiting 2 minutes.
[13:24:48] diegoviola: has joined #RubyOnRails
[13:24:49] durexlw: fox_mulder_cp: has_many :services, through: :activations, source: :activatable, source_type: "Service" was the correct answer
[13:25:21] fox_mulder_cp: durexlw: why use m=polymorthic in this case?
[13:25:31] futilegames: has joined #RubyOnRails
[13:25:42] fox_mulder_cp: i'm really interest, why u make code hardly?
[13:25:49] durexlw: fox_mulder_cp: cause a user can just as well have has_many :articles, through: :activations, source: :activatable, source_type: "Article"
[13:26:15] fox_mulder_cp: durexlw: hm. really strange case...
[13:27:10] durexlw: might be... just imagine you want to offer many services and think about how you would make the difference if one user has access and another has not... how would you do it?
[13:27:11] fox_mulder_cp: my user has_many sites, domains, and some other shit, with pundit-based scopes
[13:27:30] fox_mulder_cp: durexlw: pundit, cancancan
[13:27:38] durexlw: I use pundit
[13:27:50] fox_mulder_cp: durexlw: and use pundit scopes
[13:27:57] durexlw: see your activations never expire, so you don't need to keep extra data about that activation, right?
[13:29:18] fox_mulder_cp: durexlw: i don't mean activation, all user services has paid_until period, and stopped if user drop's it
[13:29:42] fox_mulder_cp: and user cat activate apps count which based on it's rate plan
[13:30:31] edwinvdg_: has joined #RubyOnRails
[13:30:58] durexlw: it's worth considering for me if I'm not making it too complex, but it first had it without polymorphism and it turned out to be a lot less managable
[13:31:52] fox_mulder_cp: durexlw: i think. that polymorphism make your code hard in this case
[13:32:09] fox_mulder_cp: apps must be KISS principles
[13:32:10] durexlw: for example: all activations would share an 'until' field, so I would need to scatter that over all other models that can be activated if I want to keep track of that... seems messy to me
[13:32:39] durexlw: yeah, might be... I'll keep it in mind for sure
[13:32:48] jeromelanteri: https://gist.github.com/jerome-diver/30068dfffcd336964cdbf58daf7e08a0
[13:32:54] flashpoint9: has joined #RubyOnRails
[13:32:57] jeromelanteri: this is a little exemple
[13:33:36] durexlw: ok, and what's the prob exactly now?
[13:33:36] fox_mulder_cp: durexlw: i think, that make model Until shared for my domains, sites, apps, maildomains make app 'hard'
[13:33:47] jeromelanteri: but... i have to share this "form" variable. I try by do @form = nil in the article_controller, and do a @form = form in the first render call
[13:34:14] durexlw: jeromelanteri: just tell what you are trying to achieve, not how you are not achieving it
[13:34:22] fox_mulder_cp: durexlw: because it make sql query when it not nedded
[13:34:42] fox_mulder_cp: if your 'until' props included in models
[13:34:48] jeromelanteri: durexlw, just look at the file and normally, you will undersatnd, if not... then you can not help me.
[13:35:03] durexlw: can't help you man
[13:35:06] fox_mulder_cp: select model from models join select untils w....
[13:35:18] fox_mulder_cp: durexlw: bad idea
[13:35:28] elementaru: has joined #RubyOnRails
[13:37:37] fox_mulder_cp: durexlw: main idea - if u can minimize sql queries - do it
[13:37:56] fox_mulder_cp: if u can make queries easy - do it
[13:38:08] durexlw: sounds very well worth considering for sure. I'm wondering again if I need the poly
[13:38:20] durexlw: *reconsidering that is
[13:38:32] fox_mulder_cp: durexlw: i'm glad to help u :_
[13:39:13] fox_mulder_cp: complexity should not be done where it is not necessary
[13:40:33] jeromelanteri: fox_mulder_cp, in my "_form_title.haml" file, if i include "- @form = form" (and in the article_controller: @form = nil inside "edit" memeber function), then why this @form global variable is not shared when i pass it by object: @form in the edit.coffee file code ?
[13:40:33] fox_mulder_cp: durexlw: i rewrite my app from beginning ~6 attempts
[13:41:04] blackmesa: has joined #RubyOnRails
[13:41:26] fox_mulder_cp: jeromelanteri i don't know haml, coffee, and js, sorry ^(
[13:41:57] jeromelanteri: fox_mulder_cp, ho ok... sorry to.
[13:42:40] jeromelanteri: (haml, make the file more clean, and life simpler... same for coffee code)
[13:42:40] fox_mulder_cp: jeromelanteri: if u can <%= render 'article', article: @article %>, u can create views/article/_article.haml
[13:42:59] jeromelanteri: fox_mulder_cp, yes, i know that.
[13:43:18] fox_mulder_cp: u can do it from all of your controllers
[13:43:19] jeromelanteri: fox_mulder_cp, my problem is to share the "form" variable...
[13:43:33] fox_mulder_cp: jeromelanteri: oh. what u mean about share?
[13:43:43] fox_mulder_cp: what u want to share>
[13:44:04] ElFerna: has joined #RubyOnRails
[13:44:07] jeromelanteri: https://gist.github.com/jerome-diver/97946941c6083674f9d4cc4c8fe97d9d
[13:44:32] jeromelanteri: fox_mulder_cp, normaly, this code is very very simple... you would be bale to understand it
[13:44:49] jeromelanteri: (and then this how haml is nice)
[13:45:08] jeromelanteri: and then "see" how haml is nice and easy
[13:45:32] fox_mulder_cp: ook, and why u make a ton of subforms?
[13:45:47] durexlw: jeromelanteri: it's not that your code is not understandable, it's just that it doesn't work and that it's unclear what you'd like to do
[13:46:08] jeromelanteri: the edit.coffee file is a kind of javascript file (works), and is call by :edit action controller (function member of article_controller) at render js format time....
[13:46:28] jeromelanteri: durexlw, don't answer if you can not help please.
[13:46:43] jeromelanteri: all works, just the @formp variable is not shared...
[13:47:38] jeromelanteri: fox_mulder_cp, i make many subforms for be able to have a ajaxed view where only part of views will become fields input at edit time (and not a new page)
[13:47:44] pontiki: has joined #RubyOnRails
[13:48:18] fox_mulder_cp: jeromelanteri: seems 'bike-writing'....
[13:48:23] jeromelanteri: only title will become edit field... only description div will become input field... etc... very nice and usefull
[13:48:57] jeromelanteri: fox_mulder_cp, i don't know what it seems... it is subjective thinking to. I just try to find a solution for use forms this way...
[13:49:16] arup_r: has joined #RubyOnRails
[13:49:16] durexlw: jeromelanteri: why not make a view for each 'ajaxed view'?
[13:49:18] fox_mulder_cp: jeromelanteri: make a subform per field...
[13:49:25] durexlw: sup pontiki
[13:49:28] fox_mulder_cp: pontiki: dinner )
[13:49:34] pontiki: watching minions
[13:49:42] jeromelanteri: so ok, don't worry, i will see if someone who has a better level on rails should be able to help me. thank you for tried it guys.
[13:50:06] durexlw: fox_mulder_cp: your rails skills suck, according to jeromelanteri :)
[13:50:19] durexlw: mine too... in that he might be right :):
[13:50:45] jeromelanteri: fox_mulder_cp, i try allready to make a subform per field... it not works because each subform had unik own vraiable form...
[13:50:51] fox_mulder_cp: durexlw: he right, but i have a experience in other ecosystems
[13:51:25] fox_mulder_cp: jeromelanteri: may be react helps u from writing some bikes
[13:51:39] jeromelanteri: durexlw, i definitly not understand your feeling and your objective in this kind of communication.sorry, stay quiet... i will ignore you now.
[13:52:21] fox_mulder_cp: durexlw: we can't help for all, really. all people want strange and strange
[13:52:58] jeromelanteri: fox_mulder_cp, yes, it seems sometime that want something particular is strange for some other...
[13:53:25] t-ask: I'm not sure that I understand this https://docs.docker.com/machine/get-started/ Is this only for Win or OSX machines? I don't see why I need Vbox to use docker?
[13:53:33] jeromelanteri: but thinking different is not the problem
[13:54:04] durexlw: xsup arup_r
[13:54:26] durexlw: jeromelanteri: arup_r is very skilled in rails, might want to ask him
[13:54:42] arup_r: this afternoon is raining here.. so thought to come here to see what you people are doing.. :)
[13:54:54] durexlw: lotsa sun here man :):
[13:55:06] durexlw: you're in india, no?
[13:55:16] pontiki: watching minions, arup_r
[13:55:21] fox_mulder_cp: t-ask: u have a linux on your server?
[13:55:26] durexlw: damn, when belgium has more sun than india, something is off :)
[13:55:30] t-ask: fox_mulder_cp: ArchLinux
[13:55:33] arup_r: ok, so you people took the sun away from us :p
[13:55:35] jeromelanteri: arup_r, i try to do this: https://gist.github.com/jerome-diver/97946941c6083674f9d4cc4c8fe97d9d
[13:56:07] fermonkus: has joined #RubyOnRails
[13:56:20] fox_mulder_cp: t-ask: yum|apt search docker and install it. i have ubuntu on my server, so i can use modern version ppa
[13:56:28] arup_r: jeromelanteri: I read it, so what is the doubt?
[13:56:40] jeromelanteri: t-ask, i think docker is used for situation where VM as many clients running in same times, and then needs to admin them easy way.
[13:56:42] arup_r: sorry, I just came. no idea what was asked before
[13:56:56] durexlw: arup_r: the code is self explanatory...
[13:57:13] jeromelanteri: arup_r, @form is not share, at submit time, content POST is empty
[13:58:05] jeromelanteri: arup_r, i thank that by this way i would have @form ambed all datas from fields input... but not
[13:58:47] pawnbox: has joined #RubyOnRails
[13:59:09] jeromelanteri: arup_r, the idea is to have the show view never move at edit timeµ... only div targeted by class or id should become fields input at edit time dynamicaly.
[13:59:29] t-ask: jeromelanteri: I think I was wrong here. Docker-machines is only for win+osx... I just thought it is a cli interface to make container management a bit more visual in cli.
[13:59:41] durexlw: fox_mulder_cp: about the polymorphism: in the end you're saying that you'd rather have many connecting tables between a user and whatever he can register for. You'd end up with more tables, but smaller ones. Where's with polymorphism, you'd have only one table connecting a user to whatever he can register for, but that would make the table bigger and slower?
[13:59:45] jeromelanteri: works... jsut need to submit datas from these fields nput...
[14:00:17] arup_r: yes, jeromelanteri, you mean the `@form` is `nil` inisde the partial right?
[14:00:38] arup_r: when in the context of JS response
[14:00:49] jeromelanteri: arup_r, only id of article is right, all the other is empty, yes
[14:01:17] fox_mulder_cp: durexlw: my dba says, that joins and etc make load for database, so in our and my case it's a bad idea
[14:01:19] jeromelanteri: all forms fields apear good, with the right content inside...
[14:01:34] jeromelanteri: but at submit time, there is no data to update
[14:02:02] t-ask: so spend 1h on watching a vid on docker-machines to find out it doesn't apply in my case:(
[14:02:12] durexlw: lol t-ask :)
[14:02:14] jeromelanteri: param is missing or the value is empty: article
[14:02:15] durexlw: recognisable :)
[14:02:50] fox_mulder_cp: t-ask: what is your case?
[14:02:57] jeromelanteri: t-ask, you use a VM under archlinux or archlinux turn on a VM ?
[14:03:35] fox_mulder_cp: t-ask: read plain docker guide
[14:03:46] t-ask: ok, anyone a link to a video which explains creating docker cantioner, deploy an existing rails app in it and run it. I don't mind which webserver is used. almost no one uses mine, hehe :)
[14:03:48] fox_mulder_cp: don't make hard your work
[14:04:19] fox_mulder_cp: t-ask: ohh. wait
[14:04:19] t-ask: I'm running a VPS with Arch on it
[14:05:17] t-ask: I never used docker before, while I thought systemd-nspawn would be another way, I'm now with the idea of docker bc. it seems to me, more ppl use it
[14:05:40] fox_mulder_cp: t-ask: i think, that i must write dockerfile for my blog as example, ook,, i do it
[14:06:04] t-ask: anyways. I want to try out some random rails apps, try them and then stick to the one which fulfills my needs.
[14:06:50] fox_mulder_cp: t-ask: still wait
[14:07:36] durexlw: when would it become worth checking out docker? In what cases is it useful?
[14:08:06] t-ask: btw is docker open source?
[14:08:18] fox_mulder_cp: durexlw: for running ton of app instances in it's own containers
[14:08:22] t-ask: or am I on a commercial path with oit somehow
[14:08:31] fox_mulder_cp: t-ask: it's free
[14:08:40] fox_mulder_cp: cgroups bases, such as lxc
[14:08:56] durexlw: fox_mulder_cp: so kinda like a mini-vm for rails?
[14:08:57] t-ask: free != open source != free software movement, hehe
[14:09:07] nickjj: t-ask, that blog post i linked earlier will walk you through dockerizing a rails 5, postgres, redis, sidekiq, action cable app
[14:09:41] fox_mulder_cp: durexlw: anything u want
[14:09:54] fox_mulder_cp: java, rails, perl, django, php..
[14:09:58] nickjj: it covers what types of problems docker solve and the implementation details of actually doing it
[14:10:01] t-ask: nickjj: my probelm with it is, that it talks about things I don't know about or not needed for the app I'm trying out
[14:10:21] durexlw: so basicly if you deploy apps on a self maintained server, this becomes interesting, right?
[14:10:33] nickjj: t-ask, what do you mean exactly?
[14:10:36] t-ask: nickjj: I just feel overwhelmed by it, sry
[14:10:43] chipotle: has joined #RubyOnRails
[14:11:23] nickjj: if you end up using docker, you'll most certainly need to know how to write a dockerfile and also how to use docker compose
[14:11:24] t-ask: nickjj: I want to stick as close as possible on "how to use docker to run a rails app, nothing additionally I don't need
[14:11:55] chipotle: has joined #RubyOnRails
[14:12:13] nickjj: yeah, that's exactly what's covered -- sure it uses postgres and redis because those are commonly things you'd want in your rails app but if you don't use them then just remove them the file
[14:12:39] nickjj: *from the file
[14:14:53] t-ask: nickjj: maybe you could add a (optional) to the chapters then? Btw. your headline's font might be a bit bigger, makes it easier to read imho
[14:15:27] morfin: there is a point to use docker for rails?
[14:15:42] t-ask: nickjj: some headlines are immediately followed by a list and then it looks like this is not a chapter
[14:16:14] nickjj: t-ask, oh, i thought you meant the h1
[14:16:54] nickjj: nothing is optional in the context of that application really
[14:17:25] nickjj: but i mean, if you wanted to use mysql instead of postgres, then you basically change 1 thing in the compose file
[14:18:06] morfin: not sure it could be that easy in case if you use MySQL-specific things
[14:18:48] t-ask: nickjj: well in my case mysql and postggres is already running on the host and then I came to the "Cretaing the rails app" chapter, then I thought: "I don't want to create one I want ot git clone one from somewhere".
[14:18:49] nickjj: morfin, yeah sure but i mean in the blog post i happen to use postgres
[14:19:26] nickjj: t-ask, ok then just read the dockerfile and docker-compose.yml files and apply it to your own app
[14:19:46] nickjj: there's nothing in the post that's really related to the app you generate -- that's all rails specific stuff, not docker stuff
[14:20:28] nickjj: for example, i've used that same dockerfile in over a dozen projects, all i've done is upgrade the ruby version when new releases are out
[14:20:51] t-ask: nickjj: for me it is a bit difficult to recognise which headline is which level eg. http://storage6.static.itmages.com/i/16/0710/h_1468160409_7960507_4a5a45aefd.png
[14:21:02] macsteps: has joined #RubyOnRails
[14:21:15] nickjj: the compose file is tied into using postgres, redis, etc. but if you read the post it explains what purpose this file is for, so then you can just start editing it for your own project
[14:21:29] fox_mulder_cp: i now i try dockerize my blog )
[14:21:51] nickjj: t-ask, yep those are all different sizes but i see what you mean. the top 2 with the arrow are kind of close
[14:22:12] t-ask: nickjj: maybe use another font or color
[14:22:45] nickjj: yeah, i'll tweak the font sizes a bit
[14:23:27] t-ask: nickjj: and maybe add at least 1 or two sentences after each headline
[14:23:42] t-ask: nickjj: I better stop, it's your blog ;)
[14:24:04] nickjj: in mose cases i do have a sentence under each
[14:24:15] nickjj: nah editing/formatting advice is always welcome
[14:24:39] t-ask: nickjj: maybe just add numbering, that makes it easy
[14:24:42] guest56: has joined #RubyOnRails
[14:25:13] t-ask: nickjj: for h1 and h2 maybe
[14:25:20] jottr: has joined #RubyOnRails
[14:27:16] nickjj: t-ask, how much different is your stack compared to the blog post?
[14:28:57] t-ask: nickjj: not sure, it all might be related to my knowledge gap. I guess it is not that different, it is just so many new terms I read and I have to lookup somewhere else then, understadn, come back eg.
[14:29:49] nickjj: how much rails experience do you have?
[14:29:53] t-ask: Maybe I'm just looking for a short introduction on "How to docktorize" any existing rails app."
[14:30:26] t-ask: not as much, I did some coding years ago.
[14:30:49] nickjj: what terms did you have to look up?
[14:31:17] nickjj: the post's goal isn't to parrot back docker's documentation, but it is enough to get you going without any additional lookups
[14:32:13] morfin: guys would you suggest use SP for specific stuff?
[14:33:58] t-ask: I can say which terms I loked up today: docker, lxc, systemd-nspawn, docker-machine, redis, rvm, rubis, passanger, orats, action cable. It's a bit much for some hours in .)
[14:34:34] nickjj: fair enough but half of those aren't in the blog post
[14:35:09] nickjj: but let's say you have your own app sitting in front of you, it works and it's ready to rock
[14:35:24] nickjj: all you'd have to do is read the post and apply what it says to your own app, and create any files that are missing
[14:35:31] morfin: like this one https://gist.github.com/morfin60/4c901b12680c6ed1bfe43bdd87e5e9b5
[14:35:35] t-ask: nickjj: sure, I just wanted to link you to my current situation. While initally I only wanted to 'gem install' a raisl app :)
[14:35:47] nickjj: for example, the logging section -- just add those 4 lines to your application.rb file after reading what they do
[14:36:07] nickjj: then the next part tells you which 4 files are docker related, and explains them in massive detail, you'd just need to create them on your end
[14:36:15] pawnbox: has joined #RubyOnRails
[14:36:18] nickjj: if your app doesn't use action cable, then just remove the action cable related bit
[14:37:07] nickjj: at that point you've just set your app up to work with docker -- done
[14:38:43] t-ask: nickjj: all is fine with your post. It is just that I'm running from one topic to the next the last hours. To virtuall remove something form any article on this topic, ou actually need to know which is removable, which I don't feel save enough
[14:40:04] nickjj: t-ask, https://gist.github.com/nickjj/dcd6826b93bb4db22ebe69ac41a6e516 , there's an example of what you'd want to change to remove action cable and sidekiq
[14:41:31] spyder55: has joined #RubyOnRails
[14:42:10] blackmesa: has joined #RubyOnRails
[14:42:21] Xentil: has joined #RubyOnRails
[14:42:54] pollardj: has joined #RubyOnRails
[14:43:42] nickjj: if you want to look at the complete source of the rails app, it's at https://github.com/nickjj/orats/tree/master/lib/orats/templates/base , the only difference is .env is named .env.example in the repo to avoid being git ignored
[14:45:19] alfiemax: has joined #RubyOnRails
[14:45:32] Xentil: has joined #RubyOnRails
[14:47:16] dtzuzu: has joined #RubyOnRails
[14:47:47] pollardj: Hi guys, I'm trying to get a list of all model names. `put` is outputting them but the method returns nil, what am I doing wrong? https://gist.github.com/anonymous/308c347cca2bd03f0c877354d1a9d227
[14:48:07] pollardj: `puts` i mean
[14:48:28] pontiki: puts always returns nil
[14:50:25] pollardj: pontiki, ah okay. When I call .each on that from another class I get undefined method for nil class though
[14:50:38] Oliphaunte: has joined #RubyOnRails
[14:50:46] macsteps: has joined #RubyOnRails
[14:52:21] ecnalyr: has joined #RubyOnRails
[14:53:54] Oliphaunte: has joined #RubyOnRails
[14:58:52] rikkipitt: has joined #RubyOnRails
[15:01:06] pontiki: hi alfiemax
[15:02:19] morfin: (puts 'test') === nil #true
[15:05:00] srinidhi: has joined #RubyOnRails
[15:05:03] pawnbox_: has joined #RubyOnRails
[15:07:14] adavia: has joined #RubyOnRails
[15:09:44] conta: has joined #RubyOnRails
[15:12:49] ParmReg: has joined #RubyOnRails
[15:14:40] morfin: why in rails app utf8=✓ being sent?
[15:15:10] morfin: is that just check if browser supports UTF-8?
[15:15:43] pontiki: i don't kjnow
[15:16:03] morfin: first time i noticed that in Redmine
[15:16:28] pontiki: it's been there forever
[15:16:30] morfin: and browser were displaying that as ✓ in address line
[15:17:05] morfin: ACTION knows that you can even render emoji in address linew
[15:18:44] pontiki: well, here, from yehuda katz himself: http://stackoverflow.com/questions/3222013/what-is-the-snowman-param-in-ruby-on-rails-3-forms-for/3348524#3348524
[15:19:21] allcentury: has joined #RubyOnRails
[15:22:26] Guest27170: has joined #RubyOnRails
[15:25:14] blackmesa: has joined #RubyOnRails
[15:26:05] jottr: has joined #RubyOnRails
[15:26:55] morfin: IE crap is cra[p
[15:27:02] Oliphaunte: has joined #RubyOnRails
[15:28:08] agit0: has joined #RubyOnRails
[15:29:22] roamingdog: has joined #RubyOnRails
[15:30:23] alfiemax: has joined #RubyOnRails
[15:38:59] naftilos76: has joined #RubyOnRails
[15:40:45] shinnya: has joined #RubyOnRails
[15:41:49] Oliphaunte: has joined #RubyOnRails
[15:44:20] fermonkus: has joined #RubyOnRails
[15:49:28] dgynn: has joined #RubyOnRails
[15:49:57] pLaToOn: has joined #RubyOnRails
[15:52:22] daumie: has joined #RubyOnRails
[15:52:29] fox_mulder_cp: i have /resque mounted to my app routes. how i can secure it via devise, pundit?
[15:53:40] rikkipitt: has joined #RubyOnRails
[15:54:43] Velizar: has joined #RubyOnRails
[15:54:54] TinkerTyper: has joined #RubyOnRails
[15:55:17] Ebok: has joined #RubyOnRails
[15:57:34] lxsameer: has joined #RubyOnRails
[15:57:51] fryguy: fox_mulder_cp: from the devise documentation: https://github.com/plataformatec/devise/wiki/How-To:-Protect-Resque-Web-with-Devise
[15:58:04] macsteps: has joined #RubyOnRails
[15:58:44] flashpoint9: has joined #RubyOnRails
[16:01:17] tossus: has joined #RubyOnRails
[16:02:55] asianMike: has joined #RubyOnRails
[16:03:52] dionysus69: has joined #RubyOnRails
[16:04:48] arBmind: has joined #RubyOnRails
[16:05:05] tossus: Hello friends, last night I resolved my problem was just writing problems in my home. Thanks for your support
[16:05:27] roelof: has joined #RubyOnRails
[16:05:58] pawnbox: has joined #RubyOnRails
[16:06:12] snguyen: has joined #RubyOnRails
[16:06:15] pontiki: tossus: what was it?
[16:06:21] pawnbox: has joined #RubyOnRails
[16:06:44] roelof: I have put this into my spec file : process :show, method: :get, params: {account: @account_attributes, format: :json }
[16:07:03] roelof: but now I see this error message: ActionController::UrlGenerationError: No route matches {:account=>{:name=>"{name: test} ", :category=>"Bezittingen langer dan 1 jaar"}, :action=>"show", :controller=>"account", :format=>:json}
[16:07:11] roelof: how to solve this one ?
[16:07:12] rikkipitt: has joined #RubyOnRails
[16:07:21] nykona: has joined #RubyOnRails
[16:08:16] learner: has joined #RubyOnRails
[16:08:57] pontiki: roelof: !gist
[16:08:57] helpa: roelof: http://gist.github.com - Put your codes online with pretty syntax highlighting and the ability to embed it into other pages.
[16:08:59] daumie: has joined #RubyOnRails
[16:09:38] learner: hey, I have a webapp idea, does RoR scales well?
[16:09:45] pontiki: learner: no
[16:10:30] fox_mulder_cp: pontiki: jaba bad, use asp.net!
[16:11:07] roelof: pontiki: this better : https://gist.github.com/rwobben/40e66eb65b6d54e21fa0f1d550393f61
[16:11:27] dcope: i'm adding pjax to an old rails app and am wondering if there's a good way to override every controller method? i need to be able to not render the layout if the pjax header is in the request.
[16:11:32] dcope: what's the best way to go about doing it automatically?
[16:11:46] learner: pontiki: thanks a lot
[16:13:14] pontiki: roelof: add the output of rake routes, pls?
[16:13:34] brianpWins: has joined #RubyOnRails
[16:13:35] daumie: has joined #RubyOnRails
[16:14:28] roelof: pontiki: done it, rake routes is added
[16:14:47] fryguy: dcope: have you considered turbolinks?
[16:15:37] fryguy: roelof: your show route takes an ID, not an account object
[16:16:38] pontiki: roelof: what is it you're trying to do? that @account_attibutes won't contain an id field
[16:17:12] pontiki: are those supposed to be search parameters?
[16:17:36] pontiki: roelof: post the controller as well, i guess
[16:18:11] fryguy: the test should pass a hash containing only a key named 'id', not anything else
[16:18:32] pontiki: well, it would get past the routing issue anyway :)
[16:19:42] roelof: no, @account-attributes do not contain a id. Can I somehow add it to the factory ?
[16:19:57] pontiki: why are you using it?
[16:20:23] pontiki: i'm assuming from the name that factory is generating a malformed account
[16:20:29] roelof: because I use factory girl for testing
[16:20:30] pontiki: why do you want that to show an account?
[16:20:37] pontiki: that is a bad answer
[16:20:39] pontiki: really bad
[16:20:54] roelof: sorry, that was a wrong one. I use a :valid account
[16:21:05] roelof: moment, I have to update the gist
[16:22:17] roelof: gist is updated. I try to test the show function of my controller.
[16:22:27] pontiki: paste *all* the code
[16:22:53] pontiki: jst tired of getting drips and drops and it turning out to be wrong
[16:23:28] Guest: has joined #RubyOnRails
[16:24:16] pontiki: that's going to have the same issue anyway
[16:24:35] pontiki: why are you using attributes for a show action at all?
[16:25:06] roelof: I thougt, it would be handy.But apperently Im wrong
[16:25:13] roelof: back to the books
[16:26:03] Sylario: I am trying to add autocomplete: "off" to a form_tag, but reading the rails source code it seems it is impossible : https://github.com/rails/rails/blob/7b0b3d835a2e0a75659f1c1ca178233888d65f16/actionview/lib/action_view/helpers/form_tag_helper.rb#L833
[16:26:49] jottr: has joined #RubyOnRails
[16:27:55] pontiki: i don't see anything there precluding you adding that
[16:29:20] Sylario: i am not a native english speaker, don't know what percluding mean
[16:29:22] pontiki: looking here: http://api.rubyonrails.org/classes/ActionView/Helpers/FormTagHelper.html#method-i-form_tag -- the last bullet under the Options heading
[16:29:31] pontiki: i can't help you then
[16:29:59] dcope: fryguy: i have, but i'd like to just use pjax for now.
[16:30:38] Sylario: autenticity token is hardcoded
[16:30:53] Sylario: itr seems the form tag attribute you can add are hardcoded in this function
[16:31:00] Sylario: and autocomplete is not one of them
[16:31:22] pontiki: have you tried this or are you just reading the code to decide you can't add it?
[16:31:36] Sylario: i tried all kind of syntac
[16:31:39] Sylario: i tried all kind of syntax
[16:31:58] Sylario: form_tag action: "add", controller: :contrats,good_id: good,pricing_id: pricing_id ,html_input:{autocomplete: "off"}
[16:32:06] Sylario: for example
[16:32:38] fermonkus: has joined #RubyOnRails
[16:33:26] roamingdog: has joined #RubyOnRails
[16:33:44] Guest54890: has joined #RubyOnRails
[16:34:28] roelof: I change the code to @account = FactoryGirl.create(:valid_account)
[16:34:54] bga57: has joined #RubyOnRails
[16:37:51] roelof: other problem. How can I get the id of this record : #<Account id: 1, name: "Example account", category: "Bezittingen langer dan 1 jaar", created_at: "2016-07-10 16:36:44", updated_at: "2016-07-10 16:36:44">
[16:38:13] roelof: I thought ["Account id"] would do the job
[16:38:35] fryguy: roelof: call the `id` method on it
[16:40:28] xlegoman: has joined #RubyOnRails
[16:41:52] rikkipitt: has joined #RubyOnRails
[16:42:46] roelof: fryguy: thanks
[16:44:18] Sylario: pontiki: correct syntax is form_tag({action: "add", controller: :contrats,good_id: good,pricing_id: pricing_id},{autocomplete: "off"})
[16:46:45] marr: has joined #RubyOnRails
[16:48:53] DoubleMalt: has joined #RubyOnRails
[16:54:36] akira616: has joined #RubyOnRails
[16:55:01] pontiki: sylario: correct syntax is specified right on the link i showed you
[16:57:33] netzfisch: has joined #RubyOnRails
[16:57:39] macsteps: has joined #RubyOnRails
[16:59:34] spyder55: has joined #RubyOnRails
[16:59:42] arup_r: has joined #RubyOnRails
[17:00:25] spyder55: has joined #RubyOnRails
[17:00:29] flashpoint9: has joined #RubyOnRails
[17:01:45] agit0: has joined #RubyOnRails
[17:02:58] akira616: has joined #RubyOnRails
[17:03:38] akira616: has left #RubyOnRails: ()
[17:03:45] akira616: has joined #RubyOnRails
[17:03:51] JoshGlzBrk: has joined #RubyOnRails
[17:05:21] akira616: has left #RubyOnRails: ()
[17:05:26] akira616: has joined #RubyOnRails
[17:05:30] roamingdog: has joined #RubyOnRails
[17:09:16] Ebok: has joined #RubyOnRails
[17:10:48] jahbrewski: has joined #RubyOnRails
[17:17:16] srinidhi: has joined #RubyOnRails
[17:18:00] meoblast001: has joined #RubyOnRails
[17:18:57] arBmind: has joined #RubyOnRails
[17:27:35] jottr: has joined #RubyOnRails
[17:31:47] zacts: has joined #RubyOnRails
[17:33:56] agit0: has joined #RubyOnRails
[17:35:01] Rodya_: has joined #RubyOnRails
[17:35:49] arBmind: has joined #RubyOnRails
[17:39:36] rubyonrails818: has joined #RubyOnRails
[17:40:40] jj: has joined #RubyOnRails
[17:44:09] sypheren: has joined #RubyOnRails
[17:48:51] alfiemax: has joined #RubyOnRails
[17:52:17] enitiz: has joined #RubyOnRails
[17:53:13] vanvemden: has joined #RubyOnRails
[17:55:51] vanvemden: has joined #RubyOnRails
[17:56:53] yfeldblum: has joined #RubyOnRails
[18:03:19] jahrichie: has joined #RubyOnRails
[18:05:06] jahrichie: i have a three radio button row in a form. Values passed: true, false, -1
[18:05:25] jahrichie: trying to validate one of those three.
[18:05:30] jahrichie: expected validates :location_known, :inclusion => { :in => [true, false, -1] }
[18:05:46] jahrichie: can tiny int not take a -1?
[18:06:15] pontiki: hmm, i don't know
[18:06:35] jahrichie: works on true/false
[18:06:36] pontiki: just off the top of my head, i'd expect so, but really do not know
[18:06:38] jahrichie: fails on -1
[18:06:53] pontiki: i think you have to check the details for the dbms and maybe the adapter
[18:06:55] jahrichie: i see the values coming in
[18:09:48] jahbrews1i: has joined #RubyOnRails
[18:10:05] Sashimi: has joined #RubyOnRails
[18:11:30] pontiki: what's the type of location_known?
[18:16:16] jahrichie: what you mean?
[18:18:48] jahrichie: @pontiki the db column type is tinyint
[18:19:01] jahrichie: i think that's the issue it only wants 0 1 i'd assume.
[18:23:09] arup_r: has joined #RubyOnRails
[18:25:19] allcentury: has joined #RubyOnRails
[18:25:47] pontiki: maybe, again, check the DBMS documentation
[18:26:12] Oliphaunte: has joined #RubyOnRails
[18:27:55] pontiki: i would have to say, though, that you might want to use an enum instead of a tristate boolean
[18:28:21] jottr: has joined #RubyOnRails
[18:28:36] Dimik: has joined #RubyOnRails
[18:28:41] spyder55: has joined #RubyOnRails
[18:28:56] ecnalyr: has joined #RubyOnRails
[18:30:28] skroon: has joined #RubyOnRails
[18:30:34] pwnd_nsfw`: QUANTUM BOOLEANS PONTIKI?
[18:30:43] pwnd_nsfw`: I hear those are gr8
[18:31:35] xcesariox: has joined #RubyOnRails
[18:35:06] pawnbox: has joined #RubyOnRails
[18:35:23] pontiki: we need them to specify USB connectors
[18:35:46] flashpoint9: has joined #RubyOnRails
[18:36:18] t-ask: has joined #RubyOnRails
[18:41:52] pontiki: up, down, second up...
[18:42:54] deur-_: has joined #RubyOnRails
[18:44:59] Ebok: has joined #RubyOnRails
[18:45:11] bruce_lee: has joined #RubyOnRails
[18:46:08] macsteps: has joined #RubyOnRails
[18:48:20] akira616: has joined #RubyOnRails
[18:48:31] durexlw: laterz all
[18:48:40] arup_r: durexlw: bye
[18:54:07] CausaMortis: has joined #RubyOnRails
[18:54:11] Guest27170: has joined #RubyOnRails
[18:58:33] rikkipitt: has joined #RubyOnRails
[19:00:10] tjohnson: has joined #RubyOnRails
[19:01:01] zacts: has joined #RubyOnRails
[19:04:31] Pupeno: has joined #RubyOnRails
[19:08:15] roamingdog: has joined #RubyOnRails
[19:09:30] elementaru: has joined #RubyOnRails
[19:13:44] meoblast: has joined #RubyOnRails
[19:16:48] solars: has joined #RubyOnRails
[19:17:18] Velizar: has joined #RubyOnRails
[19:19:01] xall: has joined #RubyOnRails
[19:22:14] Guest27170: has joined #RubyOnRails
[19:22:36] xall: i'm working on the Rails Tutorial and i'm stuck on an error https://gist.github.com/jdsutherland/c7681bb2640720f46bc4206f3083d8f9#file-microposts_interface_test-rb-L15
[19:23:02] xall: what other areas should i look at?
[19:23:53] fryguy: xall: pretty sure you want the hash to be micropost there, not params: micropost
[19:24:22] _Tariq: has joined #RubyOnRails
[19:25:17] pawnbox: has joined #RubyOnRails
[19:26:02] xall: yeah that works. hmm, i guess an error with the book?
[19:29:07] jottr: has joined #RubyOnRails
[19:29:40] xall: i guess just the web version of the book
[19:30:53] rikkipitt: has joined #RubyOnRails
[19:32:33] agent_white: has joined #RubyOnRails
[19:34:18] Papierkorb: xall: If you're sure it's not a typo on your end, consider writing the author to get it fixed in the book
[19:34:38] xall: good call, i'm actually writing it up now
[19:38:12] Coldblackice: has joined #RubyOnRails
[19:38:38] spyder55: has joined #RubyOnRails
[19:40:09] Xentil: has joined #RubyOnRails
[19:41:41] Rodya_: has joined #RubyOnRails
[19:46:19] xlegoman: has joined #RubyOnRails
[19:46:43] arBmind: has joined #RubyOnRails
[19:46:49] futilegames: has joined #RubyOnRails
[19:46:56] toydestroyer: has joined #RubyOnRails
[19:49:45] edwinvdgraaf: has joined #RubyOnRails
[19:50:09] shinnya: has joined #RubyOnRails
[19:50:14] naftilos76: has joined #RubyOnRails
[19:50:35] conta: has joined #RubyOnRails
[19:53:03] flashpoint9: has joined #RubyOnRails
[19:55:03] rikkipitt: has joined #RubyOnRails
[19:57:31] chipotle: has joined #RubyOnRails
[19:58:08] CausaMortis: has joined #RubyOnRails
[19:58:33] apotry: has joined #RubyOnRails
[20:01:40] rikkipitt: has joined #RubyOnRails
[20:03:47] macsteps: has joined #RubyOnRails
[20:03:48] _Tariq: has joined #RubyOnRails
[20:04:44] zacts: has joined #RubyOnRails
[20:04:47] flashpoint9: has joined #RubyOnRails
[20:06:00] apotry: has joined #RubyOnRails
[20:06:12] pawnbox: has joined #RubyOnRails
[20:08:10] pontiki: my version of the book has it correct, and the version on the web is clearly wrong, so yeah
[20:10:59] roamingdog: has joined #RubyOnRails
[20:13:20] rikkipitt: has joined #RubyOnRails
[20:15:05] armando: has joined #RubyOnRails
[20:16:28] jottr: has joined #RubyOnRails
[20:21:30] moeabdol: has joined #RubyOnRails
[20:23:51] _Tariq: has joined #RubyOnRails
[20:25:47] Guest13731: has joined #RubyOnRails
[20:27:04] speaking1ode: has joined #RubyOnRails
[20:27:17] _Tariq: has joined #RubyOnRails
[20:27:54] roshanavand: has joined #RubyOnRails
[20:30:12] arup_r1: has joined #RubyOnRails
[20:31:16] Pupeno: has joined #RubyOnRails
[20:32:18] blackmesa: has joined #RubyOnRails
[20:43:14] Emily: has joined #RubyOnRails
[20:44:52] edwinvdgraaf: has joined #RubyOnRails
[20:49:53] Z00t: has left #RubyOnRails: ("http://quassel-irc.org - Chat comfortably. Anywhere.")
[20:51:48] fermonkus: has joined #RubyOnRails
[20:51:57] djbkd: has joined #RubyOnRails
[20:53:59] jahbrewski: has joined #RubyOnRails
[21:00:16] meoblast001: has joined #RubyOnRails
[21:03:24] Guest27170: has joined #RubyOnRails
[21:07:38] siaw23: has joined #RubyOnRails
[21:09:11] siaw23: has joined #RubyOnRails
[21:10:41] ekinmur: has joined #RubyOnRails
[21:12:29] alfiemax: has joined #RubyOnRails
[21:13:50] rikkipitt: has joined #RubyOnRails
[21:16:43] seidakey: has joined #RubyOnRails
[21:31:01] rikkipitt: has joined #RubyOnRails
[21:33:15] zacts: has joined #RubyOnRails
[21:33:59] bool_: has joined #RubyOnRails
[21:34:08] blackmesa: has joined #RubyOnRails
[21:34:17] bruce_lee: has joined #RubyOnRails
[21:38:32] quakephil: has left #RubyOnRails: ()
[21:40:21] arooni: has joined #RubyOnRails
[21:41:13] flashpoint9: has joined #RubyOnRails
[21:41:21] arooni: has left #RubyOnRails: ()
[21:42:11] SteenJobs: has joined #RubyOnRails
[21:42:56] Rodya_: has joined #RubyOnRails
[21:44:18] fermonkus: has joined #RubyOnRails
[21:44:36] vanvemden: has joined #RubyOnRails
[21:49:06] pawnbox: has joined #RubyOnRails
[21:57:30] moeabdol: has joined #RubyOnRails
[22:00:24] xall: has joined #RubyOnRails
[22:03:51] jheathco: has joined #RubyOnRails
[22:04:49] pawnbox: has joined #RubyOnRails
[22:05:20] ecnalyr: has joined #RubyOnRails
[22:14:03] one_zero: has joined #RubyOnRails
[22:15:59] roshanavand: has joined #RubyOnRails
[22:17:56] Rodya_: has joined #RubyOnRails
[22:18:48] M4dH4TT3r: has joined #RubyOnRails
[22:23:34] roshanavand: has joined #RubyOnRails
[22:23:35] roamingdog: has joined #RubyOnRails
[22:25:25] chouhoulis: has joined #RubyOnRails
[22:25:50] Sashimi: has joined #RubyOnRails
[22:33:56] CausaMortis: has joined #RubyOnRails
[22:35:26] pawnbox: has joined #RubyOnRails
[22:39:41] chouhoulis: has joined #RubyOnRails
[22:43:30] hck89: has joined #RubyOnRails
[22:46:02] cd-rum: has joined #RubyOnRails
[22:46:17] roshanavand: has joined #RubyOnRails
[22:51:12] pawnbox: has joined #RubyOnRails
[22:52:09] cd-rum_: has joined #RubyOnRails
[22:54:40] jottr_: has joined #RubyOnRails
[22:54:46] xall: has joined #RubyOnRails
[22:56:24] jottr__: has joined #RubyOnRails
[22:59:37] moeabdol: has joined #RubyOnRails
[23:05:34] dalbuschat: has joined #RubyOnRails
[23:10:12] Ayey_: has joined #RubyOnRails
[23:16:53] roamingdog: has joined #RubyOnRails
[23:21:16] flashpoint9: has joined #RubyOnRails
[23:25:38] roshanavand: has joined #RubyOnRails
[23:27:48] baash05: has joined #RubyOnRails
[23:32:08] pawnbox: has joined #RubyOnRails
[23:33:29] vanvemden: has joined #RubyOnRails
[23:37:54] sumobob: has joined #RubyOnRails
[23:38:39] roamingdog: has joined #RubyOnRails
[23:39:37] vanvemden: has joined #RubyOnRails
[23:40:04] sumobob: has joined #RubyOnRails
[23:41:14] Rodya_: has joined #RubyOnRails
[23:42:30] Guest51731: has joined #RubyOnRails
[23:43:10] sumobob: has left #RubyOnRails: ()
[23:43:16] sumobob: has joined #RubyOnRails
[23:44:48] akira616: has joined #RubyOnRails
[23:46:19] vanvemden: has joined #RubyOnRails
[23:51:38] quazimodo: has joined #RubyOnRails
[23:54:34] Rodya_: has joined #RubyOnRails