Ruby on Rails Community Forum
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
I am looking to find a way to work through a modern image upload work flow with active storage
1
General
Things I am attempting to achive,
1. Attach File with a js libary such as Dropzone.js
2. Vaildate file size and type
3. Crop image using libray such as Cropper.js to achive correct image aspect ra...
Carl Tanner replied
Using a Custom Constraint to Redirect
0
Rails
How would you set up a custom constraint to redirect in the absence of an ENV.
eg: If a certain set of ENVs are missing, it would redirect you to an error page using a custom route. If the envs ar...
Luis Mejia posted
Nested attributes permit
2
Rails
Hey out there,
i am sorry to bother you with my stupid question, but it is important for me, and unfortunately I am not able to find an answer myself.
I have tried to conduct the documentation, ...
Sebastian Edler replied
Bootstrap and Vue?
0
Rails
Which way is best to implement **Bootstrap and Vue in Rails 5.2**? Keep the original Bootstrap4/jQuery sass lineup and use Vue where it is needed or a setup with Bootstrap-Vue ( https://bootstrap-v...
fregadetto posted
rails link_to_if controller, action and format exist
1
Rails
I am trying to dynamically render some links to the index action on a range of controllers.
Essentially just create a table of all my models with a count of their records and a link_to the index p...
David Hill replied
Machine learning in Ruby?
0
Ruby
I know Python is more popular for ML, but I prefer Ruby, and I was wondering if anyone has experience using Ruby for ML projects.
Ivan Raszl posted
Multi-tenant: Different user set for different databases
0
Rails
Hi,
I am building an application where I have a requirement for different user set for different databases. Can someone please guide me, how can I achieve that using apartment gem. I am using MySQ...
Conal Beaty posted
no routes match [post] when creating a user with form_with using devise
0
Rails
```
<% if !user_signed_in?%>
<%=form_with(model: @user, local: true, url: new_user_registration_path, method: :post) do |form| %>
<%= form.label :email%>
<%=...
AMOS DJORO Nicolas posted
Detect Week Days
0
Rails
Hy to all! :)
I have school application.
In this app all rooms only work in especifc days "Tuesdays and Thursdays" for example.
A need detect this days in month and put one checkbox for verfy st...
Jhonatan Petronilho posted
Problems with 'generate' command.
4
Rails
Hello everyone,
as you read in the title I have an issue with the 'generate' command from the terminal.
following you will find pasted the command i am giving:
```
MacBooks-MacBook-Pro:squirrool...
Zanger02 replied
How do I process request with parameters
2
Rails
i am new to ruby on rails, just run the examples https://guides.rubyonrails.org/getting_started.html#installing-rails
I just wonder if I want list all the articles with certain string in the title...
mike zenon replied
How do I update Rails to 5.2 without having any issue ?
0
General
Everything is in the title, except the current version I'm working on :
```
gem 'rails', '~> 5.1.6'
```
Thank you for your help
Damian Nelwep posted
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
How to complete a task via json using a check_box?
0
General
Hi guys,
I am new in this world of web development. I'm trying to mark a task as complete using a check_box, but I can't. Have you any ideas based on my code? Thank you in advance.
routes.rb
```
...
rodolfo posted
Vue Trello series - Disable VueDraggable on certain child fields such as "Input"
0
Javascript
Hi,
So I've just worked my way through the Vue trello course series (Love it by the way), and no going on to rework and add some more flair/features to it.
One feature I'm looking to improve is a...
Matthew Deloughry posted
Form Object for devise authentication
1
Rails
Hi all - I need to create a signup from having company details along with user details. Currently I am using devise for authentication. I would like to create a form object rather than using accept...
Zanger02 replied
Hiring Ruby Developers in West Yorkshire, UK
0
Ruby
I'm recruiting Ruby developers for an international communications company based in Wakefield, West Yorkshire, UK (see pic) - salary is open. I'd love to chat with anyone who fancies a fresh chall...
Richard Downs posted