Stéphane Paquet

Joined

1,210 Experience
4 Lessons Completed
1 Question Solved

Activity

Posted in Just sharing: Squash your migrations

Agree. but when testing or launching the app I should have an error about that, pushing me to run the few missing migrations.

After that, I will have a new and up-to-date schema.rb which can be used for all deployment (unless I'm not testing before deploying...)

Posted in Just sharing: Squash your migrations

Thanks Chris for your answer.
I would have thought that the following command rake db:schema:load (likely to berails db:schema:load in modern rails) could be used to quickly setup the database without having to runrails db:migrate, but still preserving the usage of all migration features, especially the option to rollback to any point in time.

Posted in Just sharing: Squash your migrations

2 questions:
How's that different from the schema.rb files ?
Is it compatible with Rails 5.0.x and forthcoming Rails 5.1?

Posted in Anyone with experience using Quilljs?

Thank you @alan and @alex.

Posted in Anyone with experience using Quilljs?

Hi,

I'm lloking forward using http://quilljs.com in a project and wonder if anyone can share his/her experience with such text editor.

Related gems are looking pretty outdated (I'm using Rails 5) and connecting Quilljs to a form (I'm using Simple Form) looks akward.

Thanks

If you are using Devise you can call usersignedin? to determine if a user is or not logged in.

<% if user_signed_in? %>
    Code to display when the user is signed in
<% else %>
    Code to display when the user is not signed in
<% end %>

Posted in Error running Rails with Ruby 2.4.0

@Menj Villalobos this is not an error. It's not blocking your rails app, nor preventing it from starting. This is just a deprecation message.

The question is more to know if Rails 5.0.2 or is going to address this by replace all the Fixnum and Bignum by their new correct type in Ruby 2.4

Posted in macOS sierra working w/ Ruby / Rails / RBENV?

I upgraded and I'm using ruby-install and chruby. So far so good!
If you want to avoid that type of issue, just setup your development environment in a container such as Docker

logo Created with Sketch.

Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

© 2020 GoRails, LLC. All rights reserved.