Re: [Rails] changing mysql engine and options in schema.rb

2017-04-08 Thread James Jelinek
Fugee, You keep making really asinine remarks. Eluding to someone trying to help you as Lee Harvey Oswald is just distasteful. Either get your attitude straight or get off this mailing list. Sent from my iPhone > On Apr 7, 2017, at 9:18 PM, fugee ohu wrote: > > > >>

Re: [Rails] jquery radio buttons

2017-04-02 Thread James Jelinek
Agreed. Politeness and kindness goes a long way. Sent from my iPhone > On Apr 2, 2017, at 8:48 AM, Colin Law wrote: > >> On 2 April 2017 at 14:24, fugee ohu wrote: >> >> This isn't the place to post links to other forums Answer the question or >>

Re: [Rails] show method variable

2017-03-05 Thread James Jelinek
You’re getting no method error “qty” because @product is not set in your controller action. So you’re essentially trying to subtract @taken from something that is NIL. You need to see @product as an instance variable in your specific controller method and this should work out for you. -James

Re: [Rails] show method variable

2017-03-03 Thread James Jelinek
As Colin mentioned you’d want to recalculate the variable in each method that it’s used. Global variables may work for your use case but they are not best practice and can lead to a mutable/mutex object which may not be your intended behavior. > On Mar 3, 2017, at 4:39 PM, Joe Guerra

Re: [Rails] data no same.

2016-10-16 Thread James Jelinek
In this action you're saying if @n render new which will always render your new view in the controller namespace. Then your else is @admin.save That's why it's not functioning. Depending on what you are trying to do I'm assuming you want if @admin.save then a render or redirect afterwards. Your

Re: [Rails] Using active record outside rails

2016-09-28 Thread James Jelinek
ActiveRecord is an actual gem that must be installed ergo why it's asking for it to be in the Gemfile. Yes it's tightly coupled with rails but you can absolutely use it in a plain Ruby app. Just install the gems you need and in pry/irb you can call require and it'll load the library provided

Re: [Rails] Looking for material to learn about Rails 4/5

2016-09-23 Thread James Jelinek
Check out gorails.com. Great site! Sent from my iPhone > On Sep 23, 2016, at 1:47 AM, Florian Pilz wrote: > > Hi, I'm starting to work full-time with Ruby on Rails again. However, I > haven't used Rails during the past 3 years, thus my knowledge is a little bit > out of

Re: [Rails] Need few developers who want to get interesting online learning for free

2016-08-17 Thread James Jelinek
I'll bite. I'll signup and evaluate for you. Sent from my iPhone > On Aug 17, 2016, at 5:56 AM, Mikhail Khomutetskiy > wrote: > > Hi! > I'm looking for 10-15 RoR developers who wants to become first users of my > educational service http://procoder.io for free. This

Re: [Rails] ROR on Ubuntu 14.04

2016-08-15 Thread James Jelinek
Did you do rvm install 2.3.1? Or whatever version number you're using? Also once in your directory you'll want to do rvm use 2.3.1 or whatever version you're using. Please provide more output if you can. Sent from my iPhone > On Aug 15, 2016, at 8:09 AM, Suhel Inamdar

Re: [Rails] Upgrade to Rails 5 link not working

2016-08-07 Thread James Jelinek
What was the gem causing the conflict? Sent from my iPhone > On Aug 7, 2016, at 4:36 PM, Jimmy Lin wrote: > > There is no issue with turbolink nor with any page source. > Then when i go through my gem file, i found an old gem which i don't need > anymore. I checked and

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

[Rails] Twitter bot tutorial

2016-05-06 Thread James Jelinek
I made a quick video on a Twitter bot in ruby, also a link to a rails app in the video description: https://youtu.be/Ix1f5ntTFI4 I'm making weekly rails and ruby videos, so please subscribe for future updates. I'm also doing cool vendor tshirt, cloud hosting, and amazon gift card giveaways

[Rails] Twilio Voice Integration in Rails

2016-05-02 Thread James Jelinek
Hey guys and gals. I did a video tutorial on integrating Twilio Voice into a Rails app. It's a pretty basic implementation but I figured some of you might be interested in seeing it. https://youtu.be/vQWHduzPgLE I will be posting more screencasts that should be helpful to the ruby and rails

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)
Ok, but would you mind posting your Gemfile in a github gist so we can look at it? What happens when you run “bundle install” from the command line? Does it install all of the gems in your Gemfile? -James > On Jan 25, 2016, at 3:33 PM, Benyamin Pm <li...@ruby-forum.com> wrote: &

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

Re: [Rails] Ruby on Rails

2015-10-07 Thread James Jelinek
Two sites that are pretty helpful that have screencasts are railscasts.com (older content but still good) and gorails.com. Check them out and get a feel for the framework. I think you’ll love it! -James > On Oct 7, 2015, at 7:11 AM, Prashant Girennavar wrote: > > Hello

Re: [Rails] Ruby on Rails

2015-10-07 Thread James Jelinek
Agreed, railstutorial.org is really good to get started. Thanks for catching this! > On Oct 7, 2015, at 7:23 AM, Colin Law wrote: > > On 7 October 2015 at 13:11, Prashant Girennavar wrote: >> Hello Experts, >> >> I am new to RoR and have knowledge of

Re: [Rails] Generate Report

2015-10-01 Thread James Jelinek
+1 on this! I’ve used Wicked and it worked out really well. I’ve also used prawn to generate PDF reports as well but I sort of lean towards WickedPDF. > On Oct 1, 2015, at 12:55 PM, Andrey Nering wrote: > > A common solution is generating the report in HTML and

Re: [Rails] rails is not recognized as an internal or external command

2015-09-01 Thread James Jelinek
> On Sep 1, 2015, at 2:52 PM, Colin Law wrote: > > I rather suspect that is the result of ruby -v not rails -v. So ruby > is installed but not rails. > > Please remember to quote the previous message so that it easier to > follow the thread, this is a mailing list not a

Re: [Rails] reg ROR

2015-08-24 Thread James Jelinek
Agreed on all points. One thing to add is, if they are “married” to a Windows environment settings up something like Virtualbox with Ubuntu to use as their development environment might be a good step. + You get to learn some ops stuff along the way. :) -James First work right through

Re: [Rails] I need a ruby on rails developer to review my website and update it

2015-08-17 Thread James Jelinek
Count me in too! I’d love to help you get things done. -James On Aug 17, 2015, at 1:04 AM, Elizabeth McGurty emcgur...@gmail.com wrote: I'd like to help out. How are you going to structure the work effort? Liz McGurty On Sunday, August 16, 2015 at 9:36:38 AM UTC-4, Lonestar wrote:

Re: [Rails] Jqcloud-rails

2015-08-14 Thread James Jelinek
I don’t understand either. Can you please rephrase your question? -James On Aug 14, 2015, at 9:43 AM, Colin Law clan...@gmail.com wrote: On 14 August 2015 at 14:56, Daynthan Kabilan dayantha...@gmail.com mailto:dayantha...@gmail.com wrote: Hi, I have bug solving one new project. Here

[Rails] Instant messaging/2 way Chat in Rails

2014-10-02 Thread James Jelinek
I have a Rails 3.2.16 app which tracks calls, vehicles, and patient information. I'd like to implement a two-way chat feature similar to instant messaging where employees can chat with each other via instant message or a chatroom. Preferably instant message style communication. I'd also like the