Ruby on Rails Friday, November 30, 2018

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 <merrickdav@gmail.com> wrote:
Thats about what I'm looking for thanks

Cheers Dave

On Sat, Dec 1, 2018 at 1:29 PM Hassan Schroeder <hassan.schroeder@gmail.com> wrote:
On Fri, Nov 30, 2018 at 12:28 PM David Merrick <merrickdav@gmail.com> wrote:

> What are the alternatives to Heroku that are cheap and or that store your images as well?

AWS S3 plus a small EC2 instance. And of course then you have a
simple way to experiment w/ larger or smaller instances to tune your
billing :-)

(When I was using only S3 for personal storage I used to get AWS
monthly bill of like $0.34 or so.)

--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yBVWDnm6ZpAFsHkvTCtyd3nyi3JDy%2Bgj93hn%3D5Q4nT%3D0A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


--
Dave Merrick

Daves Web Designs

Website http://www.daveswebdesigns.co.nz

Email merrickdav@gmail.com

Ph   03 216 2053

Cell 027 3089 169

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CA%2B%3DMcKbGa9wondmWt1fxL-3Mj3%3DwevsmcrE7h1ZO_4z7K1%3Druw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


--
If you wish to request my time, please do so using bit.ly/hd1AppointmentRequest.
Si vous voudrais faire connnaisance, allez a bit.ly/hd1AppointmentRequest.

Sent from my mobile device
Envoye de mon portable

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAP%2BbYWBCOSa9L5uZpYGrGmSpEwH4%2BxP6xeZwXO6oUp7a6BjFzA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails

Thats about what I'm looking for thanks

Cheers Dave

On Sat, Dec 1, 2018 at 1:29 PM Hassan Schroeder <hassan.schroeder@gmail.com> wrote:
On Fri, Nov 30, 2018 at 12:28 PM David Merrick <merrickdav@gmail.com> wrote:

> What are the alternatives to Heroku that are cheap and or that store your images as well?

AWS S3 plus a small EC2 instance. And of course then you have a
simple way to experiment w/ larger or smaller instances to tune your
billing :-)

(When I was using only S3 for personal storage I used to get AWS
monthly bill of like $0.34 or so.)

--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yBVWDnm6ZpAFsHkvTCtyd3nyi3JDy%2Bgj93hn%3D5Q4nT%3D0A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


--
Dave Merrick

Daves Web Designs

Website http://www.daveswebdesigns.co.nz

Email merrickdav@gmail.com

Ph   03 216 2053

Cell 027 3089 169

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CA%2B%3DMcKbGa9wondmWt1fxL-3Mj3%3DwevsmcrE7h1ZO_4z7K1%3Druw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails

On Fri, Nov 30, 2018 at 12:28 PM David Merrick <merrickdav@gmail.com> wrote:

> What are the alternatives to Heroku that are cheap and or that store your images as well?

AWS S3 plus a small EC2 instance. And of course then you have a
simple way to experiment w/ larger or smaller instances to tune your
billing :-)

(When I was using only S3 for personal storage I used to get AWS
monthly bill of like $0.34 or so.)

--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yBVWDnm6ZpAFsHkvTCtyd3nyi3JDy%2Bgj93hn%3D5Q4nT%3D0A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails

You're welcome

Frantz Augustin
Founder @ Club Artizan



On Fri, Nov 30, 2018 at 12:31 PM David Merrick <merrickdav@gmail.com> wrote:
Thanks

On Sat, Dec 1, 2018 at 9:30 AM Frantz Augustin <hirefrantz@gmail.com> wrote:
Try Digital Ocean.

Frantz Augustin
Founder @ Club Artizan



On Fri, Nov 30, 2018 at 12:28 PM David Merrick <merrickdav@gmail.com> wrote:
What are the alternatives to Heroku that are cheap and or that store your images as well?

Cheers Dave

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/3eb65a01-6f54-4ad1-88fd-12a1f985d247%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAP19LVWxYaGu4ytEQw%2Bg7XP6qK%3Dkss9XV75xMrTAFbfOmcvLnw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


--
Dave Merrick

Daves Web Designs

Website http://www.daveswebdesigns.co.nz

Email merrickdav@gmail.com

Ph   03 216 2053

Cell 027 3089 169

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CA%2B%3DMcKaWM-UJ48rLVKYnZaCYbo1rPmk%2BJdTOxUdgZY%3D-%3DnUtTw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAP19LVWQgVsExWTwCCZ88j7b4J%2ByRgBs5yuT-uiHuVpwYL1xJQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails

Thanks

On Sat, Dec 1, 2018 at 9:30 AM Frantz Augustin <hirefrantz@gmail.com> wrote:
Try Digital Ocean.

Frantz Augustin
Founder @ Club Artizan



On Fri, Nov 30, 2018 at 12:28 PM David Merrick <merrickdav@gmail.com> wrote:
What are the alternatives to Heroku that are cheap and or that store your images as well?

Cheers Dave

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/3eb65a01-6f54-4ad1-88fd-12a1f985d247%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAP19LVWxYaGu4ytEQw%2Bg7XP6qK%3Dkss9XV75xMrTAFbfOmcvLnw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


--
Dave Merrick

Daves Web Designs

Website http://www.daveswebdesigns.co.nz

Email merrickdav@gmail.com

Ph   03 216 2053

Cell 027 3089 169

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CA%2B%3DMcKaWM-UJ48rLVKYnZaCYbo1rPmk%2BJdTOxUdgZY%3D-%3DnUtTw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails

Try Digital Ocean.

Frantz Augustin
Founder @ Club Artizan



On Fri, Nov 30, 2018 at 12:28 PM David Merrick <merrickdav@gmail.com> wrote:
What are the alternatives to Heroku that are cheap and or that store your images as well?

Cheers Dave

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/3eb65a01-6f54-4ad1-88fd-12a1f985d247%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAP19LVWxYaGu4ytEQw%2Bg7XP6qK%3Dkss9XV75xMrTAFbfOmcvLnw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails

What are the alternatives to Heroku that are cheap and or that store your images as well?

Cheers Dave

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/3eb65a01-6f54-4ad1-88fd-12a1f985d247%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails

Check out the new helper from database_validations gem called `db_belongs_to`. There is an article about it on reddit.

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/f72573e2-c89a-47df-a4ff-69bca36b19ff%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails

I upgraded my MacBookAir to Mojave several weeks ago which includes Safari 12.0.1. I've also had been upgrading several internal rails applications to Rails 5.1.6 and new version of RailsFoundation with xy-grid.

I then started having problems with those applications. Mainly a CRUD delete link would not work consistantly. I spent several days trying to find the problem in my code, or was there a problem with rails-us or jQuery_ujs. Both seemed broke. At that time I could not find a reproducible sequence, seemed very intermittent. When I discovered that it worked in Chrome, I filed a bug on Webkit Bugzilla

They more or less ignored me until I could find a reproducible sequence. I finally found one that is documented in bugzilla. Also found a  StackOverFlow post with someone having the same problem.

They passed to problem off to Apple on their Radr bug site confirming this was a Mac problem (IOS didn't have the problem). Or course I don't have access to the status since webkit submitted the bug and not me.

Short steps to reproduce

1. In a new Safari window/tab, click a delete link (or any link that has an event calls a JS confirm dialog) and click a confirm or cancel response and it should work.
2. Open another site using  bookmark or URL on the same page/tab.
3. Use back arrow to go back to the page with the Confirm dialog. 
3, Try clinking the delete link again,

The confirm link will not work,  may get spinning beach ball. All open Web Inspector links in Develop menu will be grayed out.  The window is toast.  Close the window and open a new one and you will be ok.

I'm just posting this to prevent anyone else looking for a problem that is not theirs.

I also consider this a serious bug, but have no idea if Apple considers it serious. May someone have Apple connections and can relay the status on this site. Don't know how active or responsive this site it, but that is was better than filing a Rails bug that is not their bug.


--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/d11892de-0790-47c8-8af4-79d369b83b6e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails Thursday, November 29, 2018

Build the future of oncology care.

We're looking for belief-driven self-starters who want to leave their mark on the world of oncology. 
We need bold, dynamic, curious people to join our team, work alongside us, and have some fun along the way.

https://jobs.lever.co/projectronin/850e9dc0-cde6-4c61-aee7-07c37060b292

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/3e35e403-beea-4771-9dac-97e6d1268562%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails

On Thu, 29 Nov 2018 at 05:54, Jason Hsu <jhsu802701@gmail.com> wrote:
>
> 2. When I correct the Gemfile, I get the message "Your Ruby version is 2.5.0, but your Gemfile specified 2.5.3" when I run "rails db:migrate".

Did you run bundle install after changing the ruby version in Gemfile?

Colin

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLsPiKYWO1qprQh53RFUfA_Zevn-ccuTR5s57JNECB-%2BnA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails Wednesday, November 28, 2018

2.5.3 works perfectly fine for me. have you tried `rbenv rehash` after switching ruby versions?

On Thu, Nov 29, 2018 at 2:55 PM Jason Hsu <jhsu802701@gmail.com> wrote:
My development environment has rbenv with Ruby 2.5.0 and 2.5.3.  I can start a new Rails app in Ruby 2.5.0 but not in Ruby 2.5.3.  Here's the script I'm using for creating a quick and dirty Rails app:
```
#!/bin/bash

# This script creates a basic Rails app that uses an SQLite database.
# PURPOSE: Provide confirmation that Ruby on Rails is properly set up.

# This is the same test app as the one at http://elinux.org/RPi_Ruby_on_Rails .
cd /home/winner/shared && rails new school_sq --skip-spring
cd /home/winner/shared/school_sq && rails g scaffold Pupil name:string form:string
cd /home/winner/shared/school_sq && rake db:migrate

echo '**********************'
echo 'OPEN YOUR WEB BROWSER.'
echo 'GO TO THE FOLLOWING URL:'
echo 'http://localhost:3000/pupils'

echo '***************'
echo 'IMPORTANT NOTE:'
echo 'The port number listed above assumes a zero offset for the port number.'
echo 'If you are using a non-zero offset in Docker,'
echo 'you must adjust the above port number accordingly.'
echo '**************************************************'

echo ''
cat /home/winner/shared/ports.txt
echo ''

echo '*************************************************************************'
echo "You can use access the database in this app's db/development.sqlite3 file"
echo 'by using SQLite database browser.'
echo '*********************************'
cd /home/winner/shared/school_sq && rails s -b 0.0.0.0 -p 3000
```

When I run this script in Ruby 2.5.0, I have no problems.  Everything works as expected.

But when I run this script in Ruby 2.5.3 (rbenv global 2.5.3), I keep getting error messages:
1.  When I first run the script, I get the message "Your Ruby version is 2.5.3, but your Gemfile specified 2.5.0" during the "bundle install" part.  It turns out that the Gemfile specifies Ruby 2.5.0.  (WHY does Rails app generator insist on Ruby 2.5.0 instead of 2.5.3?)
2.  When I correct the Gemfile, I get the message "Your Ruby version is 2.5.0, but your Gemfile specified 2.5.3" when I run "rails db:migrate".
3.  When I enter "bin/rails db:migrate RAILS_ENV=development", the error message doesn't appear.  However, I get the message "Your Ruby version is 2.5.0, but your Gemfile specified 2.5.3" when I enter "rails s -b 0.0.0.0 -p 3000".

I have some apps in Ruby 2.5.0.  I want to upgrade them to 2.5.3, but I get a similar conundrum.  So I'm sticking with Ruby 2.5.0, because stagnation is better than breakage.

Why is Ruby 2.5.3 such a problem?  Should I just wait for 2.6.0 to be released before upgrading?

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/13ff8729-0090-4d5f-937f-8c875c94b92d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CANhkrbSuU9Wg%3DjVUhHQ%2BR13BFDWKBgHGnckb_oZiYtsNx%2BTE3g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails

My development environment has rbenv with Ruby 2.5.0 and 2.5.3.  I can start a new Rails app in Ruby 2.5.0 but not in Ruby 2.5.3.  Here's the script I'm using for creating a quick and dirty Rails app:
```
#!/bin/bash

# This script creates a basic Rails app that uses an SQLite database.
# PURPOSE: Provide confirmation that Ruby on Rails is properly set up.

# This is the same test app as the one at http://elinux.org/RPi_Ruby_on_Rails .
cd /home/winner/shared && rails new school_sq --skip-spring
cd /home/winner/shared/school_sq && rails g scaffold Pupil name:string form:string
cd /home/winner/shared/school_sq && rake db:migrate

echo '**********************'
echo 'OPEN YOUR WEB BROWSER.'
echo 'GO TO THE FOLLOWING URL:'
echo 'http://localhost:3000/pupils'

echo '***************'
echo 'IMPORTANT NOTE:'
echo 'The port number listed above assumes a zero offset for the port number.'
echo 'If you are using a non-zero offset in Docker,'
echo 'you must adjust the above port number accordingly.'
echo '**************************************************'

echo ''
cat /home/winner/shared/ports.txt
echo ''

echo '*************************************************************************'
echo "You can use access the database in this app's db/development.sqlite3 file"
echo 'by using SQLite database browser.'
echo '*********************************'
cd /home/winner/shared/school_sq && rails s -b 0.0.0.0 -p 3000
```

When I run this script in Ruby 2.5.0, I have no problems.  Everything works as expected.

But when I run this script in Ruby 2.5.3 (rbenv global 2.5.3), I keep getting error messages:
1.  When I first run the script, I get the message "Your Ruby version is 2.5.3, but your Gemfile specified 2.5.0" during the "bundle install" part.  It turns out that the Gemfile specifies Ruby 2.5.0.  (WHY does Rails app generator insist on Ruby 2.5.0 instead of 2.5.3?)
2.  When I correct the Gemfile, I get the message "Your Ruby version is 2.5.0, but your Gemfile specified 2.5.3" when I run "rails db:migrate".
3.  When I enter "bin/rails db:migrate RAILS_ENV=development", the error message doesn't appear.  However, I get the message "Your Ruby version is 2.5.0, but your Gemfile specified 2.5.3" when I enter "rails s -b 0.0.0.0 -p 3000".

I have some apps in Ruby 2.5.0.  I want to upgrade them to 2.5.3, but I get a similar conundrum.  So I'm sticking with Ruby 2.5.0, because stagnation is better than breakage.

Why is Ruby 2.5.3 such a problem?  Should I just wait for 2.6.0 to be released before upgrading?

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/13ff8729-0090-4d5f-937f-8c875c94b92d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails

Hi everyone,

I am happy to announce that Rails 5.2.2.rc1 has been released.

If no regressions are found, expect the final release on Monday, December 3, 2018.
If you find one, please open an [issue on GitHub](https://github.com/rails/rails/issues/new)
and mention me (@rafaelfranca) on it, so that we can fix it before the final release.

## CHANGES since 5.2.1

To view the changes for each gem, please read the changelogs on GitHub:

* [Action Cable CHANGELOG](https://github.com/rails/rails/blob/v5.2.2.rc1/actioncable/CHANGELOG.md)
* [Action Mailer CHANGELOG](https://github.com/rails/rails/blob/v5.2.2.rc1/actionmailer/CHANGELOG.md)
* [Action Pack CHANGELOG](https://github.com/rails/rails/blob/v5.2.2.rc1/actionpack/CHANGELOG.md)
* [Action View CHANGELOG](https://github.com/rails/rails/blob/v5.2.2.rc1/actionview/CHANGELOG.md)
* [Active Job CHANGELOG](https://github.com/rails/rails/blob/v5.2.2.rc1/activejob/CHANGELOG.md)
* [Active Model CHANGELOG](https://github.com/rails/rails/blob/v5.2.2.rc1/activemodel/CHANGELOG.md)
* [Active Record CHANGELOG](https://github.com/rails/rails/blob/v5.2.2.rc1/activerecord/CHANGELOG.md)
* [Active Storage CHANGELOG](https://github.com/rails/rails/blob/v5.2.2.rc1/activestorage/CHANGELOG.md)
* [Active Support CHANGELOG](https://github.com/rails/rails/blob/v5.2.2.rc1/activesupport/CHANGELOG.md)
* [Railties CHANGELOG](https://github.com/rails/rails/blob/v5.2.2.rc1/railties/CHANGELOG.md)

*Full listing*

To see the full list of changes, [check out all the commits on
GitHub](https://github.com/rails/rails/compare/v5.2.1...v5.2.2.rc1).

## SHA-256

If you'd like to verify that your gem is the same as the one I've uploaded,
please use these SHA-256 hashes.

Here are the checksums for 5.2.2.rc1:

```
$ shasum -a 256 *-5.2.2.rc1.gem
c412268c40fc61c16480952c801261d4901c2b0ca81518c6b8ed1c619e38cbe4 actioncable-5.2.2.rc1.gem
33dcd916c7097823a598e02ee27af657f452c9e1ca5b56d5e8d33871870e84d5 actionmailer-5.2.2.rc1.gem
ad0178b8e4115eb7b6447f536c24f7725a6022a615a0d9dca1fca055856a6bba actionpack-5.2.2.rc1.gem
f0202029b41eeda234e52136191604a52adda23445722172ec2398efe830efd1 actionview-5.2.2.rc1.gem
56102eeb75e9a29d400a648334f2f7e16f21948a608abd448c4663235752a7ea activejob-5.2.2.rc1.gem
cca50c361514be3e901b695cece93ae5230a9018305d336b683fd35a1e97832e activemodel-5.2.2.rc1.gem
7bded9a0bfe31eca3df543e59945cf16e3d0d1b32908d879fa1f9469a9cbd3e3 activerecord-5.2.2.rc1.gem
5cd7d2938d615637201326083edcb5b832254dec3a64638440777c34f1ad030c activestorage-5.2.2.rc1.gem
bcd01d80cd4863368d3c3c8914527170b488b354611eeecd6e57553019c776ef activesupport-5.2.2.rc1.gem
8e1fdbabab9eae02fc76078eea1dc1d975a9be8cbcfeda4395137503da3f1bf7 rails-5.2.2.rc1.gem
1d9950a611acb8fef50ba1477efa3e4730d713db55f834bdccd12fd950f2de51 railties-5.2.2.rc1.gem
```

As always, huge thanks to the many contributors who helped with this release.


Rafael França

Ruby on Rails

Actually, I was thinking about exactly the same, I have already configurable YAML file to skip some part of the system's check.  So now, it will be good, to skip some particular issues if we want them to persist.
I'm also was thinking about a few features you already have, so I don't know what to do. Is it fine if I implement them too but with my own code? WDYT?

Kind regards

On Tue, 27 Nov 2018 at 23:39, Greg Navis <contact@gregnavis.com> wrote:
I'm thinking about 2.0 and want to make it useful in a CI setting. For example, currently there's no way to ignore a warning so it'd always break the build even if it's by design.

Best regards
Greg Navis

--
You received this message because you are subscribed to a topic in the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/rubyonrails-talk/2TaG_XAsF9k/unsubscribe.
To unsubscribe from this group and all its topics, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAA6WWt96O0NZaeLBhs3n3YgZQnYZh-hW5gHRrnh-RFGGz2QgAA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAO53YDoRyj%3DuxZ%3DT6ZTJ0tYkK_4RbB2QYbZo%3D%2BrtX8t82kqboQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails Tuesday, November 27, 2018

I'm thinking about 2.0 and want to make it useful in a CI setting. For example, currently there's no way to ignore a warning so it'd always break the build even if it's by design.

Best regards
Greg Navis

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAA6WWt96O0NZaeLBhs3n3YgZQnYZh-hW5gHRrnh-RFGGz2QgAA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails

Hello everyone and happy Tuesday!

Rails 4.2.11, 5.0.7.1, 5.1.6.1 and 5.2.1.1 have been released! These contain the following important security fixes,
and it is recommended that users upgrade as soon as possible:

* [CVE-2018-16476 Broken Access Control vulnerability in Active Job](https://groups.google.com/d/msg/rubyonrails-security/FL4dSdzr2zw/zjKVhF4qBAAJ)

RAils 5.2.1.1 also includes the following security fix:

* [CVE-2018-16477 Bypass vulnerability in Active Storage](https://groups.google.com/d/msg/rubyonrails-security/3KQRnXDIuLg/mByx5KkqBAAJ)

The released versions can be found in the usual locations, and you can find a list of changes on GitHub:

* [Changes in 4.2.11](https://github.com/rails/rails/compare/v4.2.10...v4.2.11)
* [Changes in 5.0.7.1](https://github.com/rails/rails/compare/v5.0.7...v5.0.7.1)
* [Changes in 5.1.6.1](https://github.com/rails/rails/compare/v5.1.6...v5.1.6.1)
* [Changes in 5.2.1.1](https://github.com/rails/rails/compare/v5.2.1...v5.2.1.1)

We've done our best to minimize any impact to your applications, but if you run in to any issues, please
[file a ticket](https://github.com/rails/rails/issues) and we'll do our best to help!

Again, as always, if you run in to any bugs, please file them on the Rails issue tracker which is located
[here](https://github.com/rails/rails/issues/).
If you run in to security issues, please follow the reporting process which can be found
[here](http://rubyonrails.org/security/).

## SHA-256

If you'd like to verify that your gem is the same as the one I've uploaded,
please use these SHA-256 hashes.

```
$ shasum -a 256 *4.2.11.gem*
951c7ddd998b25f51ac01e3da5b552acb4341af325bb744b6d1b567fa0a6737e actionmailer-4.2.11.gem
f97004512791f29220b08e0fb3394fa6235049d48a043f490552bee3078db38f actionpack-4.2.11.gem
8bb47c377295f91a685afb993d78d5a628b3afa04739047bd71af6fe3ac07c27 actionview-4.2.11.gem
d35b4027c2a07f6637a480db50da7576dc11239c59cb66b805e253e284d0d88b activejob-4.2.11.gem
b89604b0252e1b5eea47de4c5e3ff4b3d713c3c5ab3802c87a37b0e296da5885 activemodel-4.2.11.gem
258e61c64256c024d703d90d259dd183b526a10083eda518c94b2bcb52a880eb activerecord-4.2.11.gem
c49aa608ef07ae6164211b4208292386947c58b925aeb3157a746f587911195f activesupport-4.2.11.gem
dd12ffea8f548accec41ae1ef6add3cf9f1e00275744f92da60a713a0b0d1766 rails-4.2.11.gem
2186005ddf9e48fcbc98bb37c8bf127d0681826938cb053c896e03dde717a327 railties-4.2.11.gem
```

```
$ shasum -a 256 *5.0.7.1.gem*
2befb790e89ca0573f2f25d7458aee45aff694a4a9b3ee2049ec7b13a8628390 actioncable-5.0.7.1.gem
1556a928f279ede0a98b41f5bd44b641d5a966acf50e93916619048a9e2fef1c actionmailer-5.0.7.1.gem
3cd3bd78fd02ab186da87b8c331dda4dc74904a5aa40b2d834347c65037fc3fe actionpack-5.0.7.1.gem
41258b51f5ac18bc55e77442eb93bde161781fbff7c45d913a0bfb45530e7f14 actionview-5.0.7.1.gem
9b1e8f49b09d3aa28c0c7ad3eae0bf7deecbc03c557d49fd4c49159ff0d53971 activejob-5.0.7.1.gem
0ce4d73d02392f835b11c138dc61af36388663fc9636313d055d90621f4500c5 activemodel-5.0.7.1.gem
8c1cd39637c8810d8fac7948a9dacf06075e6007b39400d48f34abb4db3e6ae3 activerecord-5.0.7.1.gem
eba9b4423a433535f7ddf320a0d1590695a24b69b9525bea5f32fe3d2babb609 activesupport-5.0.7.1.gem
3ce11ed1acf1eea4b4b35b4516251e81a5cbbd889227432b232409cb9c658a2e rails-5.0.7.1.gem
d92aaa635282faad3feb3aab75ea34587f05f142dc65e02044b253e56414d0b1 railties-5.0.7.1.gem
```

```
$ shasum -a 256 *5.1.6.1.gem*
3f011a9732531f6e00f213910a66b5d1ec5f9c8cd0b208c32ed9a014008e517f actioncable-5.1.6.1.gem
e89c2f24e1fb82b16927c9c7140a09d405e54d35ebb964c4a199843683559d29 actionmailer-5.1.6.1.gem
3e3875f18e1548e413f5a48d695e6e77646f5b687d9d4e149c75285c1ece26a7 actionpack-5.1.6.1.gem
5783dc24973b15cb33e48341b268c6b3ad2e5750f536d36eb9d489274846dc1c actionview-5.1.6.1.gem
8875a51226f5a4f75ba2be209c0b801bae602d1f9471db495b0a67f10e8158e7 activejob-5.1.6.1.gem
00ccdcd6003c11640e813d8511ad7362ad823e0db95637bf2239f1e1196489d8 activemodel-5.1.6.1.gem
4946ae8a770d9a58fecfa16791769dff6e837c8e8970a04b9c2854d584580947 activerecord-5.1.6.1.gem
fa78e56360106d5e508818a4f0b5d234ea1f2183c755134b6276aba1101c3831 activesupport-5.1.6.1.gem
f64f110ff439f10616e87e35dee23aeb0932e77869c64b3e2239b1332db5c863 rails-5.1.6.1.gem
ac32ff49acd522522bbb87cc69d37a448e6e856b72bccee098c80a0d565d2640 railties-5.1.6.1.gem
```

```
$ shasum -a 256 *5.2.1.1.gem*
8dc3251fb9dc898a693243d0f5488ef5bbfaefc92c2fd744db4554b0b739ce9c actioncable-5.2.1.1.gem
f932baa262e1309ee0a4b5784e63a91cc9808a68fa3475f4469718c80d6a9d5f actionmailer-5.2.1.1.gem
731c5a5b31811d530623f4bf35aade7a9bc7b76da72a006a4eedd2359efb62b3 actionpack-5.2.1.1.gem
9c449f59f03890dceb8bb05f53c2b6b331a37180258a605e27e48982114feebb actionview-5.2.1.1.gem
b9bbb83cc41e2bff53f6cc1f5a57c6edcefca0e63084621bcad43c6aca37edfc activejob-5.2.1.1.gem
c2627b30d7be62d3849943e86e1df34d2275f75e4f478b550ce77d84c3f61a96 activemodel-5.2.1.1.gem
46b27c575c9e2c6810c2b9223f0034b54e9d061c2b8c72f3dd4226947debee58 activerecord-5.2.1.1.gem
451b837320e6c2da51974d1b844d120718c726b5e13e905b0ba83e2759991c92 activestorage-5.2.1.1.gem
6e055f81d0ec158475faed1bb4e00c8030b67ecc2b7aee83be24c995a5d1a1dc activesupport-5.2.1.1.gem
b5e1fe216d108d6908e23aaaed563dcf8fae7ec92c4ea776607732785bad8f10 rails-5.2.1.1.gem
1030556e9bb07d192429659cbe5561339bbe845f9d78194a34bbc040653c7685 railties-5.2.1.1.gem
```

Rafael França

Ruby on Rails Monday, November 26, 2018

You can also configure which email layout to use (would be similar to how you are setting the application layout to use).

  # Or to configure mailer layout    Devise::Mailer.layout "email"

On Thu, Nov 15, 2018 at 9:03 AM tom <tomabroad@gmail.com> wrote:
hello,

i have an app that operates under 2 domains, depending on the domain
the app serves 2 different application layouts. Now i want to show
different devise-email-layouts when sending these devise emails.
I have the custom devise controllers and i can trigger them from an
test action, but i don't know how to use them on devise actions.
thank you in advance
t

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CADQqhMcC8FrOtz_5_tR66%2Bi6wef8a69J2_SsNvsnCcttAgD%3DDg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAJ6MPzKMChinDno6NOJbaUpdy2JZt-mDAMkRejMUVHcK1FXLrg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails


> I'm adding chat to my sn site that already uses mailboxer What to do?


Hire someone who has some rails experience and doesn't just post on newsgroups hoping that a stranger will do their work for them.

More specifically: You'll have a much better experience developing an app if you can find a developer who is proficient with google - and willing to at least do some exploratory work when they hit something they don't already understand. 

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/6e7f4c2b-ab04-4a79-ae1c-dbced8539aa6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails Sunday, November 25, 2018



On Saturday, November 24, 2018 at 12:00:34 PM UTC-5, Walter Lee Davis wrote:

> On Nov 23, 2018, at 6:39 PM, fugee ohu <fuge...@gmail.com> wrote:
>
> I'm adding chat to my sn site that already uses mailboxer What to do?

At this point, I guess you are just trolling us. We've asked you, repeatedly, nicely, to compose questions that we can answer for you. Your open-ended "what to do" comes off as either lazy or stupid, and I wouldn't presume either to be true.

Try following the "smarter questions" format:

1. I have this version of Rails, and this version of mailboxer working together nicely. I have tests.
2. I have enabled ActionCable version [1.2.3] and several of my tests started failing with this error message [copy and paste actual error].
3. I have tried following the google trail for [this particular error], but [link to example answer] doesn't give me any relief.

In short, show your work. Show that you are actually working, and not hoping others will point you to a complete solution. Those either don't exist, or are so specific that following them will only ever get you a copy of the working thing that you don't understand well enough to modify to your particular needs.

Walter

>
> --
> 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-ta...@googlegroups.com.
> To post to this group, send email to rubyonra...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/4aea4f99-9414-4c2e-acf8-5922986ddb62%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.


Without having to  do any abstract thinking you can consider it an experience question Someone else may have been in the same situation and can say what they found to be a good approach Does every question have to be technically oriented? There's no data to migrate so it's just a matter of preferences

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/e983fd92-7ef3-4b4a-9a82-489c9357caf7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails Saturday, November 24, 2018

> On Nov 23, 2018, at 6:39 PM, fugee ohu <fugee279@gmail.com> wrote:
>
> I'm adding chat to my sn site that already uses mailboxer What to do?

At this point, I guess you are just trolling us. We've asked you, repeatedly, nicely, to compose questions that we can answer for you. Your open-ended "what to do" comes off as either lazy or stupid, and I wouldn't presume either to be true.

Try following the "smarter questions" format:

1. I have this version of Rails, and this version of mailboxer working together nicely. I have tests.
2. I have enabled ActionCable version [1.2.3] and several of my tests started failing with this error message [copy and paste actual error].
3. I have tried following the google trail for [this particular error], but [link to example answer] doesn't give me any relief.

In short, show your work. Show that you are actually working, and not hoping others will point you to a complete solution. Those either don't exist, or are so specific that following them will only ever get you a copy of the working thing that you don't understand well enough to modify to your particular needs.

Walter

>
> --
> 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+unsubscribe@googlegroups.com.
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/4aea4f99-9414-4c2e-acf8-5922986ddb62%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/A36AB973-0B09-45FF-829D-1A70FA1D783C%40wdstudio.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails Friday, November 23, 2018

I'm adding chat to my sn site that already uses mailboxer What to do? 

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/4aea4f99-9414-4c2e-acf8-5922986ddb62%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails Wednesday, November 21, 2018

I started two project scheduled for next three months last week. I chose Rails. The project is technically complete. With some UI overhauling we can present to client. That's the power of Rails.

On Wed, Nov 14, 2018 at 12:24 PM Jack Waugh <jv2a9g4794@snkmail.com> wrote:
It's late 2018. Is Ruby still what managers are turning to for significant numbers of new web projects?

Are there sets of requirements that are so simple, that almost everyone with any experience would choose some other stack not involving the Ruby language? E. g. a web site requiring a CMS and a 'blog and little to nothing in the way of custom tables?

I'm not experienced with many kinds of projects on the Web, and so I have this maybe naive thought that with nodejs, at least people can use the same syntax for code that runs on the server and code that runs in the browser. Doesn't having that single syntax reduce the intellectual burden somewhat? If Ruby is still getting a lot of traction for new projects, what are said to be the benefits that outweigh the drawback of using two languages and so having to keep mentally changing gears?

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/b40750b4-8136-4f27-931e-c75950b5e9d5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Karthikeyan A K

Founder of Code Tribe https://is.gd/codetribe

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAJR%2B9kbWak9eDCsnfKrjf7qm85BTR93DuXCN5-F2ndq_N7Ah%3DA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails

Hi, thank you!

I'm wondering whether our tools different in how they treat different cases.
Oh, I wish I find it earlier :) I could check your implementation. My way is described in the README.

What other features are planning on implementing?
I don't know yet. But I see you have few already. That's good. Probably I should better make a PR to your repo instead mine to keep things together but I need an idea for that. Maybe you have?

Kind regards,
Evgeniy Demin

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/ccbce248-8794-4305-84c7-8e2ffa4475f5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails

Nice work! I implemented a similar feature in active_record_doctor and I'm wondering whether our tools different in how they treat different cases.

What other features are planning on implementing?

Best regards
Greg Navis

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAA6WWt_dFHWXGtWU57o3cNZ5ADD1MA3F61tkLt_pOu_LtBo3ow%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails

After a while of development your project, you might notice that you have some inconsistencies between your database constraints and validations. Right now, we will talk about two possible situations.

Case #1.

Imagine you defined your table as following:


create_table :users do |t|
  t
.string :name
end
 

And your model definition:


class User < ApplicationRecord
  validates
:email, presence: true
end
 

In this case, the validation can be skipped by some methods and the null value will be inserted in the database. In most cases, you probably don't want this to happen so it's better to have not null constraint in the database.


Case #2.


Imagine you defined your table as following:


create_table :users do |t|
  t
.string :name, null: false
end

And your model definition:


class User < ApplicationRecord
end

In this case, the valid? method will return true for the records which cannot be created. Moreover, the attempt to insert a row will execute from 1 up to a few SQL queries and in a result raise an error and rollback the whole transaction. Those all things are very inefficient and can be easily skipped by just adding presence validation. You should add it in most cases.

So the question is how to find all possible issues automatically without manually checking all models?

Here database_consistency gem comes in handy. Right now, it detects most of issues. Also, it helps us to detect the issue where a column has not-null constraint but there is possible null insert defined by the optional presence validator.

Try it yourself and share your feedback. Feel free to contribute! Any thoughts are welcome!

P.S. This is my own topic was copy-pasted from reddit to spread the info about the gem. 

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/60622ef3-b359-4d29-878a-afa792a81695%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails Thursday, November 15, 2018

Hello all,

just to satisfy my curiosity, I wondered if there is any background story on how DHH discovered Ruby for the first time. Guess that would make for an interesting read.

Stefan

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CANhkrbQGHNgfhOGdvjwhgV-9ki9oKjpFUb7m%2BqXBTNKDBPzjWg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails

Hassan: Citation?

How about DHH himself?: "The reason you shouldn't use Rails is that the community is full of experienced, senior developers who might have families and therefore are EXPENSIVE." https://twitter.com/dhh/status/1034481397430251521

Don't get me wrong, Rails is a pleasure to work with...there are just a bunch of cheap, cost effective options that rails simply can't compete with (and that's OK). Take the Glitch.com link above, they give you a lot for free and people host microservices like forum bots there all the time (plus it's made by the StackOverflow team).

Joe: what kind of websites were you developing 16 years ago? where did you connect using a dial up modem? 56k?

I remember back when I switched to a faster dial-up number (my down was half a kilobit), but then the phone company charged me for long distance.

Stefan: And I have to say one thing: Nothing, and I mean NOTHING could separate me from the Ruby and Rails community EVER again.

I am right there with you, I have even convinced a few nodejs people to give rails a chance. But Jack's original question included: "…web site requiring a CMS and a 'blog and little to nothing in the way of custom tables?". Let's not kid ourselves, Rails is not the best tool for the uninitiated to make static sites. Hence why I linked Gatsby, Jekyll, Squarespace and Wordpress. If there was the need for custom DB work or if Jack didn't mind the learning curve, it would be Rails all the way.


On Thu, Nov 15, 2018 at 4:46 AM Rob Jonson <rob.jonson@gmail.com> wrote:
I think rails is the best framework out there. But I think all these
frameworks do not solve any actual problems. They just abstract
problems to simpler forms. 

Can I assume you'll be going back to writing assembly then? 
Or will you be sticking with pure machine code? 

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/aea973ba-0fe6-4a48-89c3-7c3b68a458c5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CALn2xuBR5mBa%3DDqEXv_i%2BfknPzCkj_wsQP4Oay8x5q7GiqgUCA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.