Skip to main content
0votes
0answers
37views

What's causing this git error when I try to deploy a Ruby on Rails app using Kamal?

I'm trying to deploy a basic Ruby on Rails app, however when I run either "kamal setup" or "kamal deploy" I get the following error. INFO Cloning repo into build directory `/tmp/...
IMaltbey's user avatar
0votes
0answers
19views

Heroku deploy error: /usr/bin/env: ‘ruby’: No such file or directory - Build successful, Rails 8.0.2 app, running ruby 3.4.3, zsh

Error when I run bin/rails s in heroku logs --tail /usr/bin/env: ‘ruby’: No such file or directory. Here's the heroku logs --tail sequence: Starting process with command "bundle exec puma -C ...
user3763682's user avatar
0votes
0answers
28views

Rails 5.1 server crashed with weird errors

I set up an old Ruby on Rails app running Ruby 2.6.6 and Rails 5.1.7 on my MacBook Pro M2. I used Rosetta to set up the whole app to run on x86_64. Everything went well with that approach, and I was ...
jkvithanage's user avatar
0votes
0answers
44views

Why do I keep getting a 'MessageEncryptor::InvalidMessage' for Rails app when attempting to deploy with Capistrano

I was following this tutorial for deploying a Rails application to an EC2 instance using Capistrano: https://www.youtube.com/watch?v=YJzYmhxB8rE&t=318s I'm pretty sure I done all the necessary ...
Michael Egharevba's user avatar
0votes
0answers
72views

ruby koans extra credits. GREED GAME. Why do I need to pass object variable through function?

I don't know why do I have to pass @players through Game.round in function start at the end of the code, otherwise about_extra_credit.rb:145:in round': undefined method each for nil:NilClass (...
sonic's user avatar
  • 1,444
-1votes
0answers
60views

ruby koan about keyword arguments [closed]

What is wrong with it ? clean looks like that def method_with_keyword_arguments_with_mandatory_argument(one, two: 2, three: 3) [one, two, three] end def ...
sonic's user avatar
  • 1,444
0votes
1answer
56views

Tailwind CSS 4.2.2 not working with Ruby on Rails 8.0.2 on old mac

I have an older mac running Mac OS Catalina 10.15. Installed ruby on rails 8.0.2 just fine, created a test app, confirmed it worked when I spun it up on the rails server (bin/rails server). I wanted ...
user30356383's user avatar
0votes
3answers
74views

How to provide a form field for a grandparent in Ruby-on-Rails SimpleForm?

I have 3 models in Rails, Category (grandparent) has_many Domain (parents), which has_many Url (children). Here, users can create/edit Url but not the other two; Domain model is automatically created/...
Masa Sakano's user avatar
0votes
1answer
62views

Why won't this custom crypto validation pass true? [closed]

I know that AdequateCryptoAddress.valid?(:ETH_address, 'ETH') resolves to true in the console, however, class User < ApplicationRecord attribute :ETH_address, :string validates :name, ...
Chris's user avatar
0votes
0answers
41views

How make rails serve images referred from 3rd party css files

So I got an application based on rails (7.0.8.3) Using bowerfile I've installed some additional js libs including jquery ui I've included a jquery-ui css styles into my application.css by sprockets ...
Roaring Stones's user avatar
0votes
2answers
128views

webmock syntax for return hash

Webmock provides a suggested stub for a Rails controller action. I have not found proper syntax required for the return body. The request (abbreviated) intent = Stripe::PaymentIntent.create({ amount:...
Jerome's user avatar
  • 6,233
-1votes
0answers
37views

rails minitest stubbing request launched within a controller action [closed]

A rails controller action prepares data for connecting to an external payment service authorisation = (purchase.to_d * 100).to_i @financial_transaction = FinancialTransaction.create(user_id: user.id ...
Jerome's user avatar
  • 6,233
1vote
0answers
51views

How Do I get the following notification to work?

I am using noticed gem on rails to create a notification method to send notification to user when he is followed by another user but I am getting error.I used a video to setup noticed. and the ...
ANN17298's user avatar
1vote
0answers
75views

ActiveAdmin 3.3.0 DELETE actions not working with Rails 8.0.2

I'm having an issue with ActiveAdmin 3.3.0 in my Rails 8.0.2 application where DELETE actions are not working. When an admin user clicks the "Delete" link, the application performs a GET ...
Brian Lane's user avatar
-6votes
0answers
105views

Excercise with dice game. looking for method

I have array containg 5 integers from 1 to 6 for example. [1,2,3,5,6] I want to check if my array contain 3's for example if it contains [5,5,5] I am looking for a method of array like [5,1,5,2,5]....
sonic's user avatar
  • 1,444

153050per page
close