Re: [Rails] [Screencast] Progressive Render

2016-06-13 Thread James Jelinek (shakycode)
Great episodes as always, Dave! Keep them coming. Let’s chat offline, I’d love to do a pair video with you for our channels. Cheers, James Subscribe to my Youtube Channel: https://www.youtube.com/shakycode > On Jun 13, 2016, at 7:11 AM, Dave Kimura

Re: [Rails] Re: I need a RoR/Ruby chat with community.

2016-06-07 Thread James Jelinek (shakycode)
There's an active slack channel on gorails.com too. Lots of us in there willing to help. Sent from my iPhone > On Jun 7, 2016, at 9:52 AM, Frederick Cheung > wrote: > > > >> On Monday, June 6, 2016 at 5:26:34 PM UTC+1, Pavel Sh wrote: >> Hi guys, I'm trying to

Re: [Rails] need a background task to run 1hour after create

2016-05-27 Thread James Jelinek (shakycode)
I second this. Sidekiq (especially version 4) is amazing. Clockwork is great too for scheduling recurring jobs. There was a sidetiq which would schedule sidekiq jobs however it is not actively being developed and lacks sidekiq 3.5.1 and 4.0 support. You have to use a version that’s back

Re: [Rails] D3.js, Rails-5 Machine Learning Stock Market App For Your Laptop

2016-05-21 Thread James Jelinek (shakycode)
This is really interesting work. Kudos to you! Sent from my iPhone > On May 21, 2016, at 14:39, Dan Bikle wrote: > > D3-Rails-people, > > I just finished writing spy611.com which is a D3.js-Rails-5-web-app with a > Python scikit-learn machine learning back-end. > > I use

Re: [Rails] How do I make this relation?

2016-05-12 Thread James Jelinek (shakycode)
Benadryl will help with the allergies, Colin’s suggestions on following Rails conventions and naming your associations and classes will help with the code part. Good luck! Cheers, James Subscribe to my Youtube Channel: https://www.youtube.com/shakycode

Re: [Rails] Re: Tagging pictures

2016-03-22 Thread James Jelinek (shakycode)
Have you thought about a possible polymorphic association between user, albums, and images? It may be a more straightforward approach for you. You can read about it in the Rails association guide or if you have specific questions I’m sure one of us can help! -James > On Mar 22, 2016, at 3:52

Re: [Rails] Re: Tagging pictures

2016-03-22 Thread James Jelinek (shakycode)
I see where you’re going with this and now that I understand your use case I think acts_as_taggable isn’t what you want. You can build a hash with categories that can be manipulated by the user, or you can create a model/association between user/categories/images that would probably fit your

Re: [Rails] Re: Tagging pictures

2016-03-22 Thread James Jelinek (shakycode)
Well if you are building a hash on the user model then you are sort of constrained by your tags/categories. With acts_as_taggable it is much easier for users (or you) to tag comment with keywords. This negates the need to maintain the hash in the user model. -James > On Mar 22, 2016, at

Re: [Rails] Tagging pictures

2016-03-22 Thread James Jelinek (shakycode)
I did something similar to this and acts_as_taggable was a pretty lean solution. What makes you not want to use it? -James > On Mar 22, 2016, at 2:25 PM, Johnny Stewart wrote: > > I'm working on an app which has an image upload facility for users, I > want users to be

Re: [Rails] Gem::Load error

2016-01-25 Thread James Jelinek (shakycode)
What does your Gemfile look like? Does it have the pg gem listed? -James > On Jan 25, 2016, at 3:24 PM, Benyamin Pm wrote: > > hi everyone.. > i install rails and all the things which is need for. > i create a new project > i create datbase's and set the database.yml

Re: [Rails] Re: Gem::Load error

2016-01-25 Thread James Jelinek (shakycode)
gt; > James Jelinek (shakycode) wrote in post #1180882: >> What does your Gemfile look like? Does it have the pg gem listed? >> >> -James > > > > i intsall pg gem and test again but it agian i get sampe problem. > > -- > Posted via http://www.ruby-forum.

Re: [Rails] rails server starting error

2016-01-24 Thread James Jelinek (shakycode)
It’s telling you that you installed openssl installed as a gem which is a system binary and library. Remove that line from your Gemfile and run bundle again to rebuild your gemset. It should get rid of the error when launching rails server or rails s. -James > On Jan 24, 2016, at 12:41 PM,

Re: [Rails] I Love Ruby Updated

2016-01-16 Thread James Jelinek (shakycode)
Thanks for sharing, this is great! > On Jan 16, 2016, at 1:37 AM, Karthikeyan A K <77mi...@gmail.com> wrote: > > Hello People, > > I have updated my Ruby book I Love Ruby. Please get it here > https://cloud.openmailbox.org/index.php/s/u4sX065QRgjbJL2/download >

Re: [Rails] Re: Need help upgrading to Rails 5

2015-12-30 Thread James Jelinek (shakycode)
Yeah you have to specify the version number prior to the “new” verb. I think this is especially important when you have multiple versions of the Rails gem installed on your system. > On Dec 30, 2015, at 11:15 AM, Dan Cromer wrote: > > I was able to fix this. The

Re: [Rails] First rails hello webpage is not showing with netbeans ide 6.9.1

2015-12-13 Thread James Jelinek (shakycode)
Remember, we all started somewhere and were initially clueless too. > On Dec 13, 2015, at 11:29 AM, Colin Law wrote: > > On 13 December 2015 at 16:54, Rajeshbabu Vakkalagadda > wrote: >> development log attached >> >> Attachments: >>

Re: [Rails] search not working right

2015-12-07 Thread James Jelinek (shakycode)
Also in the previous code, you can do ILIKE instead of like to get rid case sensitivity. Just a FYI :) > On Dec 7, 2015, at 10:25 AM, Colin Law wrote: > > On 7 December 2015 at 16:15, fugee ohu > wrote: >> Thanks Colin, the

Re: [Rails] Capistrano and new lines in command

2015-11-19 Thread James Jelinek (shakycode)
If you are getting a permission denied have you double checked your working directory on the server to make sure your deploy user has full perms? Also in capistrano are you using deploy as sudo or just a non-elevated user? Perms is where I would start looking just to eliminate that