Top "Ruby-on-rails-5.1" questions

For issues specific to the version 5.1 of Rails.

The asset "logo.png" is not present in the asset pipeline

In Rails 5.1.3 I change logo file in app/assets/images Then error don't know what to fix. Any one know ? …

ruby-on-rails asset-pipeline ruby-on-rails-5.1
Undefined method for `before_filter'

I am running into the following error despite the method being clearly defined in the next line. undefined method `before_…

ruby-on-rails-5.1
Why is my rails db:migrate not working?

I typed in rails db:migrate and received the following error. I googled and someone said something like changing the …

ruby-on-rails ruby-on-rails-5.1
form_with search field in Rails 5.1

In Rails 5.1 all the forms have to be done with form_with. In http://edgeguides.rubyonrails.org/5_1_release_notes.html#…

ruby-on-rails ruby-on-rails-5 ruby-on-rails-5.1
Nested Resources w/ Rails 5.1 form_with

Per this pull request I can see that an array should be passed to form_with's model param. However, when …

ruby-on-rails ruby-on-rails-5.1
rails - Displaying image in view after uploading a file via Active Storage

I have a project that is on rails 5.1.2 and I am trying to implement Active Storage on it, following couple …

ruby-on-rails ruby-on-rails-5.1
Mysql2::Error: Table 'table_name' doesn't exist: SHOW FULL FIELDS FROM `table_name`

I am using rails 5.1.1 and mysql 5.7. I have a migration class: class CreateCompanies < ActiveRecord::Migration[5.1] def change create_table :…

mysql ruby-on-rails ruby-on-rails-5.1
Set local: true as default for form_with in Rails 5

I'm working on a project where we won't be using ajax calls for submitting the forms, so I need to …

ruby-on-rails-5 ruby-on-rails-5.1
Rails 5.2 Encrypted credentials for production environment

I have created the new Rails app with the version of 5.2. Rails 5.2 introduced the encryption feature for the secrets. I …

ruby-on-rails ruby gitlab-ci ruby-on-rails-5.1 ruby-on-rails-5.2
Rails 5.1.1 deprecation warning changed_attributes

I've just upgraded from Rails 5.0.0 to 5.1.1 and started getting a ton of deprecation warnings like this: DEPRECATION WARNING: The behavior …

deprecation-warning ruby-on-rails-5.1