Re: [Rails] [ANN] [PRIZE] Docker for Rails Developers - beta launch

2018-04-30 Thread Clayton Cottingham
Dang it already bought it! Great book Really helped me understand docker The part i am still trying to understand is how to reuse containers properly I've been trying to get some building automation apps running on it as proof of concept but I am contemplating if docker is even a good fit for

Re: [Rails] javascript hit and miss?

2018-04-30 Thread Joe Guerra
I think I found something that fixes the problem. I've added it to my partial. if (window.addthis) { window.addthis = null; window._adr = null; window._atc = null; window._atd = null; window._ate = null; window._atr = null; window._atw = null; } ok, you will have a minute to test it...

Re: [Rails] Can you plz, explain to me part of this code ?

2018-04-30 Thread Abdel Latif
Thank you Rob, I appreciate your help, good explanation. On Thu, Apr 26, 2018 at 5:02 PM, Rob Biedenharn wrote: > > > On 2018-Apr-26, at 13:47 , Abdel Latif wrote: > > But [["AB_1020", "AB_950", "AB_50"], ["1000", "570"]] has non numerical >

Re: [Rails] adding pictures to an object that hasn't been saved yet?

2018-04-30 Thread fugee ohu
On Wednesday, April 25, 2018 at 3:57:06 AM UTC-4, Colin Law wrote: > > Can I ask you a question Fugee? First allow me to make a point. You have > been posting here for over three years I think. When someone starts using > Rails then obviously they may well be asking a number of questions and

Re: [Rails] adding pictures to an object that hasn't been saved yet?

2018-04-30 Thread fugee ohu
On Wednesday, April 25, 2018 at 3:57:06 AM UTC-4, Colin Law wrote: > > Can I ask you a question Fugee? First allow me to make a point. You have > been posting here for over three years I think. When someone starts using > Rails then obviously they may well be asking a number of questions and

Re: [Rails] adding pictures to an object that hasn't been saved yet?

2018-04-30 Thread David Merrick
Hi, I'm a newbie to Rails but I have completed Micheal Hartls Tutorial on Ruby on Rails https://www.railstutorial.org and have several websites. Micheal Hartls tutorial uses microposts which include texts and or a picture which is then saved into Database. The ability to add pictures at the start

[Rails] putting options for select list in model

2018-04-30 Thread fugee ohu
I've been putting options for select lists in my models but I haven't been able to do this with option/value pairs Anyone know how? The code below doesn't work DURATION_TYPES = [['7 days', '7' ],['14 days', '14'], ['21 days','21'], ['30 days','30']] validates :duration, inclusion: { in:

Re: [Rails] adding pictures to an object that hasn't been saved yet?

2018-04-30 Thread fugee ohu
On Wednesday, April 25, 2018 at 3:57:06 AM UTC-4, Colin Law wrote: > > Can I ask you a question Fugee? First allow me to make a point. You have > been posting here for over three years I think. When someone starts using > Rails then obviously they may well be asking a number of questions and

Re: [Rails] putting options for select list in model

2018-04-30 Thread Walter Lee Davis
> On Apr 30, 2018, at 5:07 AM, fugee ohu wrote: > > I've been putting options for select lists in my models but I haven't been > able to do this with option/value pairs Anyone know how? The code below > doesn't work > > DURATION_TYPES = [['7 days', '7' ],['14 days',