TinyTds::Error (closed connection): when using Apache/Passenger

4
Databases
When I start my application using Puma on port 3000 everything works as expected (no error). When I try to access the application after starting Apache, using the default port 80, I get the error "...
William Jones replied
Solved

application.html.erb Help

6
General
Hello, I'm a Rails newbie and I'm following a few tuts but I'm having trouble finding the application.html.erb file? I'm using Rails 5.2.2 and Ruby 2.6.0. Thank Rob
Rob Thomas replied
Solved

Contribute to a gem

4
Ruby
I have two questions. How do I contribute to a ruby gem? Do I just locate it's repo and make a pull request? Or are there more formal procedures? Also, what if I've made some very useful methods...
lucywilson replied
Solved

How to do a incremental backup

1
Databases
Hey, taking a full backup every day will be huge, so thinking of doing a full backup once in a month & incremental backups every day or so. I would like to know the best solution to achieve this.
Nithil replied
Solved

How do I create a parent record from the child when the parent doesn't exist?

1
Rails
Hi team, I've trying to model books, chapters, and notes. I have the following: ``` class Book < ApplicationRecord has_many :chapters has_many :notes end ``` ``` class Chapter < Applica...
Nino Rosella replied
Solved

How do I improve these relationships (Rails Association question) ?

1
Databases
Im trying to make a project to practice more kinds of associations would you kindly help me understand this? The basic idea is to have a betting game where one user generates a new bet that can on...
Nicholas Bayley replied
Solved

Manipulate photos already on S3 or Spaces

2
Rails
Scenerio: User uploads a huge file to S3 or Spaces. Question: How can I set up a job or worker to go into S3 or Spaces and resize that file at a later time, or even batch all of the days uploaded ...
Ryan Carter replied
Solved

NameError (undefined local variable or method `fetch_records' for ....

3
Databases
Hi, I'm getting this wierd error. ``` NameError (undefined local variable or method `fetch_records' for #): app/controllers/admin_controller.rb:69:in `block (2 levels) in comments' app/controller...
Victor Nizeyimana replied
Solved

NoMethodError (undefined method `def_delegators' for ChatroomsDatatable:Class):

4
Ruby
I have this error: ```NoMethodError (undefined method `def_delegators' for ChatroomsDatatable:Class):```
Victor Nizeyimana replied
Solved

Rails Button_tag not submitting edit form, but submits new form

11
Rails
I am using the following to submit my form when creating a product. ``` <%= button_tag("Create", type: "submit", form: 'new_product') %> ``` However, the issue I am facing is that when I tr...
Alan Reid replied
Solved

ActionController::RoutingError (No route matches [GET] "/assets/images/4.jpg"):

3
Rails
How to resolve this issue: `ActionController::RoutingError (No route matches [GET] "/assets/images/4.jpg"):`
Alan Reid replied
Solved

Separate Asset Pipeline

1
Rails
Im building a webapp that has an admin panel... I separated this by creating a new folder in the controllers 'admin' and also on my views... This way I can have two completely different styles, one...
Nelson replied
Solved

Where do this code go? (Refactoring Rails Workers)

5
Rails
Hey! I have two different workers ``` #app/workers/website_worker.rb class WebsiteWorker def perform(website) do_this_action(website) end def do_this_action(website) ... end ...
Arjun Rajkumar replied
Solved

Accepts_nested_attributes_for, I am getting 'unpermitted parameter: :user' and User not entering to DB.

1
Rails
Hello! I am building an app with Accounts/Users & Memberships via has_many through. I am using Devise and want to create a new user from 'accounts#new" via 'accepts_nested_attributes_for.' Whe...
Ryan Mindigo replied
Solved

How do I create my homepage subdomain ('www')

8
Rails
Hi, I followed the tutorial for subdomain from scratch and got " redirect_to root_url(subdomain: "www") if @account.nil? " but I don't know how to get to manage it as a homepage like home#index. ...
Damian Nelwep replied
Solved

How do I create an app with Urls like 'https://username.website.com/' instead of 'https://website.com/username/' ?

17
Rails
Hello everyone, I searched but didn't find anything and was hoping like I said in the title of this subject, to find a way to get the url displaying a user's profile of a client's app to be like u...
Chris Oliver replied
Solved

migrating to php

2
Ruby
Hello, I have inherited a ruby application and unfortunately have no knowledge of the language. Could someone be so kind to help me figure out how to convert the below code to php? ``` def genera...
vampster replied
Solved

Stuck on creating new record

4
Rails
I'm not sure why I'm so lost on this one, I dont rally have a ton of experience with Rails but I did a blog with basic CRUD functionality and that was all good but this new project its just giving ...
Nelson replied
Solved

How long does it take for comments to post?

5
General
I posted a comment on an episode, but it didn't show, so I followed it up with a simple "test" which also didn't post/register. Is there a comment filter or do comments need approval before they'r...
midtown replied
Solved

How to update the card number in billing info?

1
General
I'm trying to update my card number but I can't find the edit button. Thanks in advance :)
Taeyang Lee replied
Solved

Want to stay up-to-date with Ruby on Rails?

Join 89,237+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.