I have a simple has_one relationship class User < ApplicationRecord has_one :detail has_many :courses end class Detail < ApplicationRecord belongs_
I'm running Crunchbang 11 (Debian-based). I'm trying to install Ruby on Rails, like this: gem install rails --version 4.0.0 I get the error "Failed to buil
I am using the opentelemetry-ruby otlp exporter for auto instrumentation: https://github.com/open-telemetry/opentelemetry-ruby/tree/main/exporter/otlp The otel
The difference between after_create, after_save and after_commit in Rails is that: after_save is invoked when an object is created and updated after_commit is
I've tried to follow the ActionCable tutorial - Site point and I convert this tutorial to using MongoDB . But I have the problems with devise NoMethodError in
Rails 6 switched to Zeitwerk as the default autoloader. Zeitwerk will load all files in the /app folder, eliminating the need for namespacing. That means, a Tes
I have a Rails 4 application with some routes: resources :users resources :notifications resources :comments ... My client asked me to have urls in english a
I have an app that I haven't updated in like a year or so, today I make 1 tiny change, doesn't break anything, but when pushing to master I got a lot of stuff..
Deploying on beanstalk. Using rails with webpacker. Compiling… Compilation failed: (Executor::NonZeroExitStatus) We can't seem to get anymore in
Hope this is not too broad but after a lot of googling I am not sure where to start. I am looking for a introductory/noob overview to help me get started on bui
I've seen lots of examples of making Docker containers for Rails applications. Typically they run a rails server and have a CMD that runs migrations/setup then
I have this weird problem, where sometimes, stylesheet_link_tag links to the relative path to the wrong path? The exact same code works whenever I try to debug
In a Rails app I have a number of measurements to display in a human readable form that include both a value and units. Sometimes the units string needs to be
I have a Rails 4.2.0 application which sends lots of mails, it's a elearning platfrom. At the moment I have problems with bounces, Lots of the Mails coming bac
I am pretty new to Ruby.. was following the instructions on TeamTreehouse installing Ruby Development Environment on OSX (Yosemite). When I got to the step to
I'm using RSpec to test controller behavior in rails. One of the expectations I have is the following scenario: User attempts to access a protected (requires l
I'm trying to test some associations with RSpec but I get these failures: Category Failure/Error: it {should belong_to :post} Expected Category to have
My goal is log in to Swagger API to get access to endpoints. With auth token in future. I tryed to put Devise line in ApplicationController: before_action :au
I am trying to create a list of unique patients who have left comments. The code words fine until I upload to heroku where it doesnt work in postgresql. This
I want to install new version of ruby by rbenv install 2.2.1, but I get the error ruby-build: definition not found: 2.2.1 The following versions contain 2.2.