
How to resolve 403 Forbidden error when rendering sign-up view for admins?
1
Rails
Is there a way to resolve 403 Forbidden error when rendering a sign-up view for admins? This issue does not happen to the user sign-up views.
I am using Rails 6.0.3.5, Ruby 2.7.1 and Devise 4.7.3....
Alfred Montalvo Jr replied
Solved

Page enter with Turbolinks
1
General
Good day,
I'm having an issue when entering a page and loading a resource. The resource is Selectize which otherwise working fine but when I enter the page with the functionality it will just not ...
Nelson Casanova replied
Solved

Use Redis as a way to update a model along a process
2
Databases
Hi all!
I'm currently working on a purchase order process that has several steps before the final checkout, pretty standard, adding products in the basket their quantity and finally asking for the ...
Eduard Garcia replied
Solved

Strategy To Track Progress For Completed Nested Lessons
3
Rails
I have models for _Curriculums_, _Chapters_ and _Lessons_, and would like to track _Progress_ for the user.
_Curriculum_ -> has_many :chapters
_Chapter_ -> has_many :lessons, belongs_to :cu...
Sean replied
Solved

Upgrade strategy from Rails 4.2.4 to 6.0.3.4?
1
Rails
Background :
I started learning ruby & rails back in 2016. Built a fairly decent project as a self-learning project. Got busy with other stuff and didn't touch ruby or rails until this Decembe...
Chris Oliver replied
Solved

Database structure advice
1
Databases
Hi all,
I need advice on what to do with an existing table on an existing app.
Right now the table is used to store details about a property and its closing costs. Normally there are always a h...
Chris Oliver replied
Solved

Is there a way to validate image uploads to validate dimensions?
2
Rails
Hi,
I want to validate my image upload field by making a user upload only a square image (i.e 200px x 200px). I'm basically wanting square image dimentions so it will resize and nicely and not loo...
Umesh P Kafle replied
Solved

Shrine default_url with webpacker
1
Rails
I am using Rails 6.1.1 with webpacker and Shrine. The issue I am coming across is using the default URL plugin with webpacker based assets. When I use it in development it seems to load just fine b...
Dieter Lunn replied
Solved

"rails for beginners part 21"
4
Rails
i cant make work user.signed_id, it raises a no_method_error:
irb(main):010:0> user.signed_id
Traceback (most recent call last):
2: from (irb):9
1: from (irb):10:in `rescue in i...
gabriele garretto replied
Solved

how to make the forum lagg free
1
General
how to make the forum lagg free. A few minutes ago I was able to access this information and found it very lagg. I understand why. I pressed f5 but it's still the same. I see all the text in blue (...
Alan Reid replied
Solved

Hatchbox: How do I point a Godaddy Domain to a wildcard sub-domain?
3
Servers
I run my app on Hatchbox, and have successfully created subdomains for each user.
E.g.
user1.myapp.com
user2.myapp.com
user3.myapp.com
etc.
How do I point user 2's own website (two.com) to user2...
Alex Ventura replied
Solved

Running multiple Rails versions
9
Rails
Hi guys (and ladies if any),
I have installed Rails with rbenv (recommended), but now because of significant changes between 5.0.1 and 5.1 versions, I want to start a new project with 5.1 (because...
Monroe Mann replied
Solved

Whats the best way to allow embedded content from another site
2
Rails
I'm building a blogging application at the moment and I am wondering what the best way to allow users to embed youtube/spotify/soundcloud content into the blog posts. From what I understand simply ...
Daniel replied
Solved

Multiple user types App design
3
Rails
Hello,
Thanks for your time :)
My app have 3 type of humans.
1. Admins
2. Users (regular ones) | only read.
3. BusinessUsers (creating self records)
I'm using devise gem for users.
I'm interesti...
Daniel replied
Solved

Go Rails Youtube videos not loading
2
General
Hey @Chris, getting a playback error on the youtube player vids. Message templates vid is an example, there were some Shrine ones that weren't working either.
Solved

How do i run sneaker worker in rails 6.0 ,ruby '2.6.3' ?
2
Rails
I'm trying to run rails app using command foreman s
the ProcFile contains these 2 lines :
web: bundle exec passenger start -p 8000 --max-pool-size 1
sneaker_data_publisher: WORKERS=DataPublish...
lpiffer replied
Solved

Action Mailbox Routes
2
Rails
I'm adding action mailbox to my Rails + React app, the problem I'm having is that the mounted routes are at the very bottom of the routes file so it will not get called due to the fact that I need ...
Stephen Sizer replied
Solved

Rails log is to big in production?
3
Rails
Hi there, I recently view a video here talking about how to subdivide your log into multiple parts. This video talks about how you can delete them after 7 days. I forgot the title, I can't found it...
Mylan Connolly replied
Solved

Are you adding # frozen_string_literal: true to your config files
2
Rails
I was wondering if some of you are adding `# frozen_string_literal: true` to their config files?
Stéphane Paquet replied
Solved

How can I get a file object from active storage to attach to a different model?
1
Rails
I'd like to access a file object that already exists in active storage and re-attach it to another model. Something like
`@newmodel.image.attach(file_object_already_in_active_storage`)
Is this po...
Brian Carpenter replied
Solved