Very strange Rails app behaviour

3
Rails
I've been writing a meal planning app, using Devise for user auth. I've generated the viexws,,,,,,,,,, set config.scoped_views to true, made sure routes.rb has devise_for :users, and setup my befo...
John replied
Solved

Setup noticed to send emails through a mailer?

2
Gems / Libraries
Hi Chris, Sorry, I didn't "notice" (a lot to unpack here about my notice abilities) that you had a dedicated section for questions: I was wondering how you configure your Noticed gem to work with...
Solved

undefined method `minimum' for #<Store:0x00007fb25c749b20>

1
General
Hi, I have a Store model and a PricingClassification model. The PricingClassification belongs to Store. I have made a wizard for creating a store and I am trying to add a range in pricingClassifica...
Samantha O replied
Solved

How do I add ranges to my application?

6
Ruby
Hi in my app I want to have a price classification table where I want to add a range per person... For example: range_per_person = 1-10, 11-20, 21-30 etc etc. How can I achieve this? See my schema...
Chris Oliver replied
Solved

Mysql2::Error::ConnectionError: Access denied for user 'root'@'localhost' (using password: NO)

5
Databases
Hello, I have problems with my connection to mysql and rails, when I access mysql through the terminal with the root user I have no problem, but when I do a db: create rails but I get the error tha...
Elvis Serrão replied
Solved

Do I need the jumpstart gem embedded in my application?

1
General
I noticed my Jumpstart Pro-based application contains the jumpstart gem in _lib/jumpstart_. I also see the _Gemfile_ refers to the jumpstart gem via the local file system. My question is... Does th...
Chris Oliver replied
Solved

How do I create a duplicate with associations included?

8
Rails
I'm fairly new to Rails and still learning. I recently stumbled upon a problem that I'm sure there is an easy way to fix it, but I haven't figured it out yet. In the application I'm trying to creat...
msalsabil replied
Solved

"NoMethodError: undefined method `deep_symbolize_keys'" when trying to deploy my application

2
Rails
Hey I followed the deploying guide for Ubuntu 20.04 LTS. When deploying my application I get the following error. Googling around I haven't been able to locate any leads on what to do... anyone h...
Solved

What's a good way for upgrading a server?

4
Servers
I have an internal application that is running fine now, but I need to upgrade the version of Ubuntu Server on it. I have put this off wayyyy too long. Essentially I have a "VMWare box" on the co...
Chris Oliver replied
Solved

User model guidance

1
Rails
Hi All, I'm creating a coaching app and have two users that use the system a coach and a client. A coach can also be a client of another coach. So I will need to be able to switch accounts to eith...
Chris Oliver replied
Solved

Looking for advice on how to setup a relationship.

7
Databases
I'm trying to figure out the best way to setup relationships between models which allows users to publish saved content from multiple models. **ExampIe:** I have a **Post** model which allows use...
Solved

Navbar with Vue.js and webpacker - Flickering at page load 😒

1
Javascript
I have a classic RoR - Webpacker app. On top of Webpacker, we have implemented Vue as our frontend framework and Tailwind as our css framework 👌 Everything is functioning fine. Yet I am not quite ...
Thomas Sohet replied
Solved

ActionController::Parameters.new.require(:person)

1
Rails
Hello, Note:I configured the App with config.action_controller.action_on_unpermitted_parameters = :raise. Assuming I have a Model Person with attributes :name, :age. If params = { name: "penguin...
Penguin replied
Solved

Render partial via AJAX without JQuery

9
Javascript
I've got a standard Comment.model - I'm trying to use AJAX to render partial. Using JQuery works but I'm trying to use VanillaJS only. The AJAX is working but it's rendering the markup inside of th...
Solved

Nested Parameters returns ActionController::Parameters rather than parameter value

5
Rails
Hello, With the payload: { "ref": "The penguin ref", "object":{ "a": 300, "b": 30000, "c": 10022 } } params.require(:stuff).permit(:ref, object: [:a, :b, :c]...
Chris Oliver replied
Solved

Adding Javascript to Rails 6

7
Javascript
Hi. I am fairly new to Rails and so far I have been unsucessful at adding any JS to my Rails 6 project. I have seen many videos and tutorials but i seem to run in to the same issue. Basically I get...
Chris Oliver replied
Solved

How do I create a delete button for images uploaded with Active Storage

2
Rails
I am creating a user interface for users to upload images and delete ones they've already uploaded. It is using Rails 5.2 Active Storage and Amazon S3. The issue I am experiencing is similar to t...
Dmitriy replied
Solved

How do I show a query result in browser in excel/sheet style?

0
General
In our application we generate several reports. Instead of downloading them as Excel or CSV want to render them similar to Excel/Google sheet anyone any ideas what the best approach is?
Peter vande Put posted
Solved

Question about twitter clone

1
Rails
Hello. I’ve been seeing a few tutorials on twitter clones and I was thinking of trying one. With my idea, instead of following people, I would like it so users can follow hashtags. Is that even pos...
Chris Oliver replied
Solved

Gem for making user groups

2
Rails
I was wondering if there is a gem for making user groups in my project. Or do I have to learn the hard way how to make user groups. Btw I’m a hobbiest not wanting to make a living. Just want to ma...
Chris Oliver replied
Solved