When I create a project (from scratch) I then give the comado rails db: create to create the database and I get this error:
LoadError: /var/lib/gems/2.3.0/gems/pg-1.1.0/lib/pg_ext.so: undefined symbol: rb_enc_alias - /var/lib/gems/2.3.0/gems/...
I'm starting in the area, I have the following scenario in my back end done in rails:
I want to implement a parent class:
Equipment:
ID PK
Brand
...
And some child classes
Printer:
ID_EQUIPMENT PK and FK
...
Computers:
ID_EQUIPMENT P...
Good afternoon, I have the following models:
User.rb
class User < ApplicationRecord
# Include default devise modules. Others available are:
# :confirmable, :lockable, :timeoutable and :omniauthable
devise :database_authenticatable,...
Hello, I'm facing a problem with SQLite3. When I run the code:
user = SystemUser.new(email: "[email protected]", password: "marcos123")
user.profile = Profile.new(first_name: "Marcos")
user.save
Rails runs in SQLite:
(0.1ms) begin trans...
I'm trying to make a relationship between two tables in Ruby, where I use the student and notes but when I go into localhost: 3000 / students / 1 / notes it gives me the error
I have a rails application and when I run or compile the assets it gives the following error:
"\ xED" followed by "t" on UTF-8
In my
application.rb
I already have this key:
config.encoding = "utf-8"
Does anyone know what it c...
I have a test feature that fails because at the time it runs some HTML elements ( <li data-podcast> ) have not yet been rendered.
Does anyone know how I can fix this?
RSpec.describe 'Podcasts List', type: :feature do
scenario...
I have a big question, I am a beginner in Ruby, and I am not able to print the value of a field in my view, the result is that.
My Model:
class Pedido < ActiveRecord::Base
has_many :produtos
scope :waiting, -...