Top "Ruby-on-rails-5" questions

For issues specific to version 5.x.y of Rails.

Rails - How to use a Helper Inside a Controller

While I realize you are supposed to use a helper inside a view, I need a helper in my controller …

ruby-on-rails ruby-on-rails-3 ruby-on-rails-5
warning: constant ::Fixnum is deprecated When generating new model

I've tried to find some solution for this, but I really couldn't find anything related with the errors that is …

ruby-on-rails ruby ruby-on-rails-5
Rails 5: Load lib files in production

I've upgraded one of my apps from Rails 4.2.6 to Rails 5.0.0. The Upgrade Guide says, that the Autoload feature is now …

ruby-on-rails autoload ruby-on-rails-5
Bundler: You must use Bundler 2 or greater with this lockfile

I'm working with heroku and every time I try to push my app this message shows out: remote: Compressing source …

ruby-on-rails heroku ruby-on-rails-5 heroku-cli
What is the use of secret_key_base in rails 4

I am new to Rails 4, and do not understand the use of secret_key_base under config/secrets.yml in …

ruby-on-rails ruby ruby-on-rails-4 ruby-on-rails-5 ruby-on-rails-6
Rails 5 ActionController::InvalidAuthenticityToken error

I have a rails application which I am planning to upgrade to rails 5. I am using devise(v4.2.0) along with …

ruby-on-rails ruby devise ruby-on-rails-5
Rails 5: how to use $(document).ready() with turbo-links

Turbolinks prevents normal $(document).ready() events from firing on all page visits besides the initial load, as discussed here and …

javascript jquery ruby-on-rails turbolinks ruby-on-rails-5
Rails 5: unable to retrieve hash values from parameter

I'm running into a strange issue. undefined method `values' for #<ActionController::Parameters:0x007fb06f6b2728> is the …

ruby-on-rails ruby-on-rails-5
Rails 5: ActiveRecord OR query

How do you do an or query in Rails 5 ActiveRecord? Also, is it possible to chain or with where in …

ruby-on-rails ruby activerecord ruby-on-rails-5 rails-activerecord
Rails: How to fix "Missing secret_key_base for 'production' environment"

I simply can't get past the message: Missing `secret_key_base` for 'production' environment, set this string with `rails credentials:…

ruby-on-rails ruby-on-rails-5 ruby-on-rails-5.2