
Can I 'alias' a Rails active model to another class
9
General
First off I am sure I am not asking this question correctly as this is an advanced Rails topic over my head right now. Here is what I have for routes:
concern :assetable do
resources :ass...
Chris Oliver replied
Solved

Handle ActionController::UnknownFormat in Devise::SessionsController#new
0
Rails
Hello, I'm new in rails and I facing this problem: After invite a new member the system generates an invitation link. This link invites to create an account, once the account is created the new mem...
Julio Benavides posted

has_many :through association woes
10
Rails
I have a has_many :through relationship between a few models that *almost* works.
My goal is to allow users to be assigned to projects and/or tasks. Everything seems to work except user_id's are n...
Adrian DeGus replied
Solved

Precompile error on hatchbox with yarn 2
1
Rails
After upgrading to yarn 2, I get the following error when deploying to hatchbox:
-----> Precompiling assets...
Unknown Syntax Error: Unsupported option name ("--no-progress").
$ yarn install [...
Matthias Orgler replied

ActiveStorage trix image before record exist.
3
Rails
Hi,
I have a Concept model with description string field.
Concept `has_many_attached :images`, I use them to store images that I dragged into trix wysiwyg.
Everything works great if Concept alrea...
Chris Oliver replied
Solved

Pagination with will_paginate Discussion
12
General
Hey,That was a great screencast! Keep up the good work. I was just wondering if there's a way to limit users from accessing pages without any posts? Maybe by editing routes.rb?
Sandhya replied

Improve on these ActiveRecord requests?
4
Rails
I am trying to get the top 5 products, based on the impressions that product has recieved.
Now the code below is working ok, but its not in the right order, and I cant work out a better way to get...
Alan Reid replied

How do i save a field in a separate table?
21
Rails
Hi all,
I want to save the brand_id i am creating in my users table how would i go about doing this? I currently have my code saving the brand.
````
def create
@brand = Brand.new(brand_params...
Chris Oliver replied
Solved

has_one association on polymorphic model
4
General
I have the following models (stripped down for simplicity) :
```ruby
class Activity < ActiveRecord::Base
belongs_to :trackable, polymorphic: true
belongs_to :user
has_one :comment, as: :t...
Greg Answer replied
Solved

How to Deploy Rails to Render Discussion
14
General
Great video, thanks Collin!
Emmaotiki5 replied

Watchlist Toggle
2
Site Feedback
Hi Chris,
Not sure what the origianal intention was regarding the "watch later" button other than marking the specific episode, but I wondered if it could be added to the episode filter options. ...
Chris Oliver replied
Solved

Using Purchased Themes with Rails | GoRails - GoRails
28
General
2 Pro episodes in a row? :(
Chris Oliver replied

Docker Basics for Rails Discussion
15
General
If I run rails inside of Docker, does this set-up require more resources from my my machine?

Dynamic Authorization Roles with Pundit Discussion
4
General
Well this couldn't have come at a better time! Thanks Chris!!! I'll be hiding the UI for creating and editing roles and providing at a higher price plan, there's a lot of value in this
Garth Gaughan replied

Devise: Add a select to my signup form
14
Rails
Hi all, me again! haha
So i have got my app working as i want so far. All is good and i am picking up Rails really quickly thanks to GoRails.
I am however a little stuck, I can't seem to add in a ...
Jacob Montgomery replied

Refactoring with ActiveSupport::TimeWithZone Discussion
4
General
Much cleaner to read and I don't think people (like myself) use these helpers enough!
cjilbert504 replied

JSON Web Tokens with Devise & Warden Discussion
15
General
Great tutorial.
Aproplat replied

Message Templates Discussion
4
General
super keen to see this the other way - so you pick the inputs before generating the template. Thanks Chris
Lee Terng Gio replied

How to display multi-day events in SimpleCalendar?
20
Gems / Libraries
Hi there,
Not sure if i've missed something, but i'm not able to get multi-day events to show over the date range using SimpleCalendar.
From what I've read on the Gem homepage, I've passed in the...
Nikodem Gorak replied

Flexible Nested Attributes
5
Gems / Libraries
I'm working on a practice "Magazine" application, that has **Issues** with nested attributes of **Articles**, which has multiple nested attributes that are **Content Blocks**, which can be one of s...
Chris Oliver replied