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: > > > >> On Friday, April 7, 2

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 >> don't > > You would be more likely to ge

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 wrote:

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 tha

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 date. > > Do you have

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 is limited offer, so > I

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 wrote: > > Hi friends

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 it is stated only suppo

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 wr

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 find a chat with RoR develope

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 port

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 D3.js in this page:

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 for

[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 P

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 u

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 2:32

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 able to create 'albums'

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 wrote: > > James Jelinek (shakyco

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 file > > but when i go to

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, B

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] undefined method `build_

2016-01-02 Thread jelinek
If a user has many schools you would want current_user.schools.new(school_params) Unfortunately I don't know how your associations are setup so I'm taking a guess at this. 👍🏻 > On Jan 2, 2016, at 6:32 PM, fugee ohu wrote: > > what should the create action be > @school = current_user.crea

Re: [Rails] undefined method `build_

2016-01-02 Thread jelinek
No, you've mentioned top posting and your dislike of it countless times. 🌶 > On Jan 2, 2016, at 4:38 PM, Colin Law wrote: > >> On 2 January 2016 at 22:21, wrote: >> Why not kindly pointing out the error and offer a suggestion to assist the >> OP instead? > > Because one learns more by workin

Re: [Rails] undefined method `build_

2016-01-02 Thread jelinek
Why not kindly pointing out the error and offer a suggestion to assist the OP instead? Yes. I'm top posting. > On Jan 2, 2016, at 3:44 PM, Colin Law wrote: > >> On 2 January 2016 at 20:51, fugee ohu wrote: >> def create >>@school = current_user.build_school(school_params) >> >> causes

Re: [Rails] Why the first user created would get id 2 instead of 1?

2015-12-30 Thread jelinek
Sandbox won't persist data. It'll do a transactional rollback. It never really persists data. But your quirk is interesting. I've tried duplicating it and cannot. Sent from my iPhone > On Dec 30, 2015, at 4:26 PM, 'krfg' via Ruby on Rails: Talk > wrote: > > >> On Tuesday, December 29, 20

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 problem was that I did not g

Re: [Rails] ask ruby LOCALHOST

2015-12-27 Thread jelinek
It looks like you created a view folder but do not have a controller action or route to match. You'll want to setup a route on config/routes.rb to match a controller action. The tutorial should walk you through this but you can also see the routing guide in the rails guides on rubyonrails.org.

Re: [Rails] Re: Avoid assets disappearing on you

2015-12-15 Thread jelinek
This takes away from the OPs original request. I've not heard that most people have image download turned off but ok. I think the best option is to symlink public/assets across a persisted directory as the other gent said. This is how I do it and it works pretty well. Sent from my iPhone > O

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: >> http://www.ruby-forum.com/attachment/11180/developmentlog.t

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 person who posted that code sure had me fo

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 possibility.

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 programming(asp.net,c#). I wanted to >> s

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 Experts, > > I am n

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 converting it to PDF > with th

Re: [Rails] RoR 4 - Connection to multiple databases

2015-09-29 Thread jelinek
I actually ran into this same use case a couple of months back and using class abstraction did the trick beautifully. Sent from my iPhone > On Sep 29, 2015, at 7:23 AM, Walter Lee Davis wrote: > > >> On Sep 29, 2015, at 5:04 AM, Quake Live wrote: >> >> Hi there, >> >> is it somehow possib

Re: [Rails] Ruby charting library?

2015-09-25 Thread jelinek
There's quite a few actually. You can check out HighCharts or for something even easier to learn check out Chartkick. Sent from my iPhone > On Sep 25, 2015, at 7:18 PM, Gerardo Abregu wrote: > > I need to display some charts/graphs based upon user inputs on my web > aplication built using Ruby

Re: [Rails] Can anyone tell me how to send the sms in rails application

2015-09-22 Thread jelinek
I've done this before using the twilio-ruby gem. I don't have an exact code example for you but if you look at the docs for the gem it's pretty straight forward. Twilio is a great service and highly reliable. Sent from my iPhone > On Sep 22, 2015, at 5:20 AM, Antariksha Kulkarni wrote: > >

Re: [Rails] Error in loading WEBrick server

2015-09-13 Thread jelinek
Can you show us your Gemfile? And also the output of running "bundle install"? Sent from my iPhone > On Sep 13, 2015, at 6:11 PM, Mohamed Hussein wrote: > > Hello ... I am new in ruby on rails, I installed MYSQL2 gem and it gave > me message that It is installed successfully. > > When I try t

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 forum (though you may >

Re: [Rails] Re: Rails data modelling with has_many through

2015-08-31 Thread jelinek
It would be nice if this thread got back on topic with the OPs problem. We are all here to help. Sent from my iPhone > On Aug 31, 2015, at 8:14 PM, Elizabeth McGurty wrote: > > Dear Colin, > > I think that what you are broaching is an ethical matter in the use of this > Talk Group. General

Re: [Rails] best way to integrate Bootstrap

2015-08-25 Thread jelinek
I've honestly not tried it with Bower but have been successful with both a gem and also dropping in the assets manually. Sent from my iPhone > On Aug 25, 2015, at 8:36 PM, Askar wrote: > > Hello! > > Somewhere I read it's better to integrate Bootstrap with Rails via Bower > rather than as g

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] Rails 4 Web Service

2015-08-22 Thread jelinek
Are you looking to build a JSON API or something? I'm not sure if I understand your original request. Sent from my iPhone > On Aug 22, 2015, at 3:03 PM, Dyo Medio wrote: > > Hi I am looking for complete tutorial and sample Web service with Rails 4 > with Json, anyone can help? Thanks a lot

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 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: > My website at

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 wrote: > > On 14 August 2015 at 14:56, Daynthan Kabilan > wrote: > Hi, > I have bug solving one new project. Here already used jcloud-rails gem for

Re: [Rails] What JS framework would be your first choise in Rails World 2015

2015-07-31 Thread jelinek
I've tried Angular and Ember both. For some reason I haven't had much luck with learning them. I picked up React recently and I really like it. And it integrates nicely with my Rails apps. Sent from my iPhone > On Jul 31, 2015, at 9:39 PM, Victor H. Goff III > wrote: > > So are you saying t

[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