Re: [Rails] Delayed job::WORKERS

2020-02-18 Thread Hasan Diwan
https://github.com/zdennis/activerecord-import may be helpful to you, Shubham. On Tue, 18 Feb 2020 at 22:21, Shubham Thakur wrote: > Hi, > > I have around 25000, records and I want to save it into database using > rails delayed job. > > but its taking around 45-50 min, can anyone suggest me how

Re: [Rails] Locusts in Africa

2020-02-15 Thread Hasan Diwan
David, > On Sat, 15 Feb 2020 at 06:30, David Hughes > wrote: > >> I am a scientist at Penn State and the United Nations. We have a Platform >> called PlantVillage that is a public good with a backend built on RoR with >> various apps farmers use around the world to get help. The reason these >>

Re: [Rails] activerecord wrong number of arguments 3 given 0..2 expected

2020-01-02 Thread Hasan Diwan
To set strict_mode on MySQL in rails, the knob you want is `strict: false` On Thu, 2 Jan 2020 at 16:06, fugee ohu wrote: > I'm thinking I'm getting this is because of mysql sql_mode traditional vs > strict When I run select @@sql_mode on mysql console it returns a list of > modes which include

Re: [Rails] [ANN] Rails 6.0.2 has been released!

2019-12-13 Thread Hasan Diwan
Congrats! On Fri, 13 Dec 2019 at 11:09, Rafael Mendonça França < rafaelmfra...@gmail.com> wrote: > Hi everyone, > > I am happy to announce that Rails 6.0.2 has been released. > > > ## CHANGES since 6.0.1 > > To view the changes for each gem, please read the changelogs on GitHub: > * [Action

Re: [Rails] How do I load schema in rails 6

2019-11-26 Thread Hasan Diwan
[response inline] On Tue, 26 Nov 2019 at 05:55, fugee ohu wrote: > What would that do to my data > You'll need to back it up. Which database are you using? -- H -- OpenPGP: https://sks-keyservers.net/pks/lookup?op=get=0xFEBAD7FFD041BBA1 If you wish to request my time, please do so using

Re: [Rails] How do I load schema in rails 6

2019-11-26 Thread Hasan Diwan
[response inline] On Tue, 26 Nov 2019 at 00:00, fugee ohu wrote: > Complains that users table already exists > bundle exec rails db:drop db:create db:migrate db:schema:load Seems you had a mistake in a migration. So, you need to reset your database to pristine state and start again. Hope this

Re: [Rails] where do i put rails 6 stylesheets

2019-11-23 Thread Hasan Diwan
app/assets/stylesheets/ Try that spot? -- H -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To view

Re: [Rails] auction site listings table

2019-10-04 Thread Hasan Diwan
> > What's that? >> > It's a gem that will generate a diagram for your database. Follow the instructions on the linked page. -- H -- OpenPGP: https://sks-keyservers.net/pks/lookup?op=get=0xFEBAD7FFD041BBA1 If you wish to request my time, please do so using *bit.ly/hd1AppointmentRequest

Re: [Rails] auction site listings table

2019-10-04 Thread Hasan Diwan
[response inline] On Fri, 4 Oct 2019 at 21:40, fugee ohu wrote: > how do i get the fields for item_item_properties on the new item form? > Can you please install https://github.com/voormedia/rails-erd, run the generator, put the resulting image on imgur.com, and point me to it? -- H --

Re: [Rails] auction site listings table

2019-10-04 Thread Hasan Diwan
[response inline] On Fri, 4 Oct 2019 at 21:08, fugee ohu wrote: > has_many :item_properties, through: :item_item_properties > Implying that you have a model corresponding to item_item_properties. You can add fields to it through the relevant migration or using the migration convenience

Re: [Rails] auction site listings table

2019-09-26 Thread Hasan Diwan
[response inline] On Thu, 26 Sep 2019 at 13:17, fugee ohu wrote: > What data type do you suggest for value column? > There were types suggested by the original responder. However, worrying about column types is an instance of premature optimization. Get the basic site working, and then

Re: [Rails] auction site listings table

2019-09-23 Thread Hasan Diwan
[response inline] On Mon, 23 Sep 2019 at 21:32, fugee ohu wrote: > But then a single item will contain many records, one for each property, > wouldn't that create too-large-tables? > By the time that becomes a problem, you'll have bigger things to worry about it, mate. -- H -- OpenPGP:

Re: [Rails] auction site listings table

2019-09-23 Thread Hasan Diwan
[response inline] On Mon, 23 Sep 2019 at 21:02, fugee ohu wrote: > Where do the values of the properties go? I don't mean the property name > Properties will have an "id" field, referred to as auction_properties.property_id. Under auction_properties, there is a value field. I'd assume it goes

Re: [Rails] Re: Drag and Drop question

2019-07-19 Thread Hasan Diwan
Add a few Console.log lines to determine where it's dying? -- H On Fri, 19 Jul 2019 at 14:12, John Sanderbeck wrote: > Sorry, I should have elaborated a little more Walter... > > I implemented Interact.js and used an example from a Drifting Ruby > Episode...

Re: [Rails] Database dump and import

2019-03-09 Thread Hasan Diwan
The first command will dump the data, then you can do your validations, and finally, the second will restore them. -- H On Sat, 9 Mar 2019 at 11:31, wrote: > Thank you Hassan brilliant. I may not have explained this well. What i > want to do is dump it from the CLI locally and then import the

Re: [Rails] Database dump and import

2019-03-09 Thread Hasan Diwan
Define 2 stanzas in database.yml. One for your postgres database, the second for your mysql. "bundle exec rails db:schema:dump RAILS_ENV=$POSTGRES_STANZA" will save the data and "bundle exec rails db:schema:load RAILS_ENV=$MYSQL_STANZA" will restore it to mysql. Let me know if you should require

Re: [Rails] Devise

2019-02-25 Thread Hasan Diwan
On Sun, 24 Feb 2019 at 23:19, David Merrick wrote: > Does anyone know how to do this with Rails 5.2.2? > Not having done this myself, but I did find a test[1] that sends the confirmation emails. Hope that helps, Dave. -- H -- OpenPGP:

Re: [Rails] update rails version from 2.x to 5.x in an existing very old rails application

2019-02-01 Thread Hasan Diwan
To be safe, go through a stepwise upgrade, running and fixing your tests at each step. -- H On Thu, 31 Jan 2019 at 23:50, raj kumar <2017k...@gmail.com> wrote: > I have a Rails app, made 10 years back in 2009 with following version: > rails version = 2.0.2 > ruby version = 1.8.7 > Database =

Re: [Rails] Comment in the Blog test project

2018-12-26 Thread Hasan Diwan
in erb, something like "<% if comment.body.empty? %> Your error message <% end %>" should sort you... If not, please give further information -- H On Wed, 26 Dec 2018 at 02:58, jason cao wrote: > Hi, > > How can I show error messages if a comment is invalid? E.g. when a comment > body is empty.

Re: [Rails] Run/Migrate Older Ruby Application (Your Ruby version is 2.5.3 but your Gemfile specified 2.3.1)

2018-12-23 Thread Hasan Diwan
Do you have rvm managing your ruby versions? If so, just run rvm install 2.3.1 or comment out the ruby version in the Gemfile and you should be golden. On Sun, 23 Dec 2018 at 10:34, wrote: > I am taking over an app that has not been developed for a few years. > Currently the app is on Github

Re: [Rails] Assistance in writing tests using bootcamp/google_sign_in

2018-12-11 Thread Hasan Diwan
David, You test only functionality provided by YOU. You don't necessarily need to test upstream functionality. For example, in an app I recently wrote, I needed to provide the time of intersection between two curves and used a library to provide the (maybe complex) maths for the intersection.

Re: [Rails] Alternative to Heroku

2018-12-01 Thread Hasan Diwan
Easier than using Ec2 is to use Elastic Beanstalk. There is a rails tutorial at https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/ruby-rails-tutorial.html . Let me know if you can't make heads from tails of it. -- H On Fri, 30 Nov 2018 at 16:54, David Merrick wrote: > Thats about what I'm

Re: [Rails] (JOBS) San Fran RoR $150K -$220K Mission Driven Healthcare Diversity - FUN!

2018-10-19 Thread Hasan Diwan
Lori, [response inline] On Thu, 18 Oct 2018 at 23:02, Lori Rouleau wrote: > Join 80 of the most talented and fun Ruby on Rails Full Stack Developers in > San Fran. What's your address in San Francisco? I'll need it for commuting purposes. > > We’re here to change primary health care at it’s

Re: [Rails] Looking for an Advance ROR Classes

2018-10-11 Thread Hasan Diwan
https://www.thegreatcodeadventure.com/managing-multiple-databases-in-a-single-rails-application/ looks like it might be useful, Stephanie. Let me know how you get on... -- H On Thu, 11 Oct 2018 at 13:50, Stephanie_Snowflake wrote: > > I'm looking for advance ROR classes (school or online) that

Re: [Rails] omniauth facebook api

2018-10-01 Thread Hasan Diwan
Joe, Perhaps putting your app on github/bitbucket would be useful? -- H On Mon, 1 Oct 2018 at 10:50, Joe Guerra wrote: > > Hi, I've got my facebook login working ok with my web app, but not sure how > to grab some extra facebook values (last_name, first_name). > > If I could just inspect or

Re: [Rails] how does gmail show new messages as they arrive

2018-09-16 Thread Hasan Diwan
Javascrpt? -- H On Sun, 16 Sep 2018 at 00:35, fugee ohu wrote: > > how does gmail make new messages appear in your browser as they arrive? > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To unsubscribe from this group and stop

Re: [Rails] How large is the Rails community?

2018-09-15 Thread Hasan Diwan
On Fri, 14 Sep 2018 at 06:51, Walter Lee Davis wrote: > Does anyone have an idea how many professional Rails developers are out there > at the moment? Is it tens of thousands? Hundreds? I know it is way more than > thousands, because RailsConf sells out every year, and that's just the US. >

Re: [Rails] [HIRING] Jobs: Looking for Ruby on Rails Developers New Jersey Telecommute acceptable

2018-09-07 Thread Hasan Diwan
On Fri, 7 Sep 2018 at 01:45, Edsil Basadre wrote: > > Is this remote work? I think a careful reading of the subject line will confirm that, Edsil. -- H :) -- OpenPGP: https://sks-keyservers.net/pks/lookup?op=get=0xFEBAD7FFD041BBA1 If you wish to request my time, please do so using

Re: [Rails] Re: A Ruby Book (free to use)

2012-08-28 Thread Hasan Diwan
On 28 August 2012 02:16, Dheeraj Kumar a.dheeraj.ku...@gmail.com wrote: LOL! All know its absurd, don't u ppl have a sense of humour or something? A serious suggestion: don't insult your clients with your choice of platform. -- H -- Sent from my mobile device Envoyait de mon portable --