Did I forget to do a migration?

1
Rails
I have a profile model and controller in Rails, and it works all well and good except when I call profile_path or simply "profile". I try and create: ``` <%= link_to current_user.profile_path %...
Chris Oliver replied
Solved

Displaying User presence when tracking online Users with ActionCable

2
Rails
Hi, I'm wondering on my current implementation for tracking and displaying user online presence. I followed "Realtime Online User Tracking with ActionCable" for the most part and right now I'm usi...
Chris Oliver replied
Solved

getting KeyError: key not found: :keychain when running cap staging deploy

0
Rails
success Saved lockfile. 01 01 01 Done in 10.26s. ✔ 01 ubuntu@13.229.169.23 10.938s ** Execute deploy:assets:precompile 01:06 deploy:assets:precompile 01 ~/.rvm/bin/r...
Rahul Coder posted

jquery_ujs and rails-ujs problem ajax page

1
Rails
hello everyone. i am new in rails and ruby , i just started like 1 week ago . i trying to do a chat between 2 people on rails, with jquery for the ajax part. everything work, but i got this err...
pikooli replied
Solved

Facing Authentication error

1
Rails
Hi , I am facing the unauthorised error in rails even after i am using the correct username and password database i used is postgres and devise is used for the authentication mechanism.
varun chawla replied

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

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

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

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