
Flash alert/notification messages not displaying for the 'Log In' and 'Log Out' views
1
Rails
The flash alert/notification for the 'Log In' and 'Log Out' views are not displayed on the screen when a user logs in or out of the Rails application.
I am not getting any errrors or warnings in ...
Alfred Montalvo Jr replied
Solved

Active Admin Authorization by CanCan gem when User and ActiveAdmin have same model
0
Rails
I already had a User model with different roles handled by cancan gem. Now i have implemented active admin gem in the same User model with another role. Now i could not figure out how to restrict a...
Shaheryar Imtiaz posted

Rails has_one, belongs_to, join_table and nested form
0
Rails
I'm creating a User, Role and UserRole. A user can create a list of roles, and from the new user form, there is a nested form which populate a list of roles created, then the user able to select a ...
Lee Terng Gio posted

User 'folders' for uploaded files?
0
Rails
Is there any best practice / tutorial for organizing user uploaded files?
In my app I have an 'uploadable' polymorphic structure where the user can upload files to pretty much any model etc.
Curr...
Dan Tappin posted

Making a contacts form page, getting LoadError
0
Rails
Hello. I'm trying to create a contact page that emails me directly from the contact me page of my portfolio site. I created the contact form model by following this tutorial on YouTube. But I'm get...
Kyle Williamson posted

Working with action cable and remote redis server on development
1
Rails
I'm working on a rails app which uses action cable to notify users on the frontend when an event gets triggered.
I'm using a remote redis instance to work with action cable. So this is my dev env ...
Shreyas S replied
Solved

how to model on rails that a supplier can be a customer and a customer can also be a supplier. ?
2
Rails
Good evening everyone,
Here's my problem:
I have 2 tables, suppliers and customers who are all companies.
how to model on rails that a supplier can be a customer and a customer can also be a sup...
Peter vande Put replied

Any Rails code documentation best practices? Yard vs Rdoc?
0
Rails
Main question:
I've been looking into documenting my own code, and came across Yard and Rdoc. Right now, just trying it out, I have Yard installed. But are there other alternatives out there that I...
Yi Mei Wang posted

How do I have a root route without an action parameter in the URL?
0
Rails
My system is using a post model with friendly_id so the calls are /name_of_the_post and this works great.
The initial home page is also a post so in routes.rb I have
```
root 'home#index'
get ':...
Peter vande Put posted

Does it make sense keep using Carrierwave having ActiveStorage?
1
Rails
Hi, I have been thinking about that since a few Days ago. I don't know which is more efficient and how much, and also how easy/hard could be the migration from one to the other. Any experience/insi...
HP replied

Having Problems with has_one association driving me crazy
1
Rails
Im having a problem
I have an Entry which can have many Detail through EntryDetail
https://gist.github.com/staycreativedesign/568f07938591d2a8a844d3857c4aac4a
The EntryDetails arent being saved ...
PDG+creative replied
Solved

Was wondering if there is a tutorial on how to setup background job server in Ubuntu with Rails
1
Rails
Is this available somewhere?
Chris Oliver replied
Solved

foreman issues
2
Rails
Added foreman to my Gemfile and when i run bundle install, i get the following error:
Could not find foreman-0.87.0 in any of the sources
Run `bundle install` to install missing gems.
Wole Ikotun replied

How to for Devise user to update password after first login?
0
Rails
Hello, I'm a newbie on Rails.
I use devise for the authentification and i want to force all new users to changer thier default password at the first connexion.
I also want them to update thier pa...
lionnel Patrick posted

Rails 6 With Full Vue Frontend vs Sprinkled Vue Components
4
Rails
I'm struggling to decide how best to integrate Vue in my Rails 6 app. 🤔
I've read [some tutorials](https://web-crunch.com/ruby-on-rails-api-vue-js/) that suggest using Rails as API with Vue as fro...
Tabish Iqbal replied

Why does my bootstrap not work across the application. Rails 5
0
Rails
I'm starting a project with rails 5 and the first thing I did was add the bootstrap to rails 5. I added the gem and imported it into application.scss. I generated a devise Admin and the bootstrap w...
Thomaz Wanderbruck Schmidt posted

How to model a company that can be both customer and supplier.
0
Rails
Good morning all,
I am creating an application for managing customer and supplier proformas and customer and supplier invoices. I would like you to give me an idea of how to model the company entit...
francel.webdev posted

How do I send a javascript array to my controller?
0
Rails
Hello everyone, is there any way I can send a javascript array straight to my rails controller?
Thx!
Eduardo Trintin posted

How to validate model attribute
0
Rails
Hello everyone, question.
I have the following code:
class Country < ActiveRecord::Base
has_many :cities, dependent: :destroy
accepts_nested_attributes_for :cities
end
class City < Act...
Harris Mariano posted

Install Ruby On Rails on Mac OS X 10.15 Catalina (Issue)
3
Rails
I ran this command:
**rails new myapp**
I got this output:
> Overwrite /Users/woodbineone/myapp/.gitignore? (enter "h" for help) [Ynaqdhm]
> force .gitignore
> conflict Gemf...
WoodbineOne replied