denial of service attack

1
General
What should we do to overcome Denial of service attack?
Chris Oliver replied
Solved

Request for code review

1
Rails
Hello. Can I ask for a little review of my code? I have been a php-developer for a long time. I really want to learn professional programming on rubi / ruby on rails. This is my [class](https://git...
Tabish Iqbal replied
Solved

How do I find a records based on contents of a has_many :through join?

8
Rails
I think I've been at this problem for too long and the obvious answer has evaded me. Say you have students, classes (klass for ruby's sake), and enrollements as the join between them. ```ruby cla...
Peter Marcano replied
Solved

Best way to start a rails project?

5
General
Hi i've been coding with rails selflearning with videos books and so on, (prolly not the best way to do it) but i'm wondering if there are few best practices to follow up. For instance, when i do ...
kriera replied
Solved

encounterd some problems with devise.

2
Ruby
1.when i created a devise model , i saw encrypted_password(column) in schema.rb but in registration form i saw f.input :password ??????? 2.I am getting { PG::NotNullViolation: ERROR: null value in...
sameer replied
Solved

Rails + Javascript question

1
Rails
Hey guys, I have an app for generating orders containg products. I'm currently using a “cart” through table that helps me connect both orders and products. I would like to have a list of product...
pupdogg replied
Solved

How can I improve query time in SQL ? (PostgreSQL)

1
Databases
Hi, I have 4 models: ``` class Match < ApplicationRecord belongs_to :tournament scope :next, -> { where('date > ?', Time.zone.now) } end ``` ``` class Tournament < ApplicationRec...
Boris Bresciani replied
Solved

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

Learning Ruby on Rails? Join our newsletter.

We won't send you spam. Unsubscribe at any time.