Search Results for "why-join-heroeswithinme-beta-tester-program"
Lessons
Forum Threads

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

How do I create a virtual balance model in Rails?
10
Rails
This is for a game application I'm creating.
I have a user model, a stock model and a UserStock join table for the previous two models. User was created with devise. I intend to attach a certain ba...
inopinatus replied

Custom Validations Issue
6
Rails
I have a custom validator that I would like to protect some data on my Users to Sites has_many through relaitonship. There is one extra piece of data on the `sites_users` join table `is_default` w...
Thomas Bush replied
Solved

Rails for Beginners Part 4: No template for interactive request
10
General
Noob Rails user here. Can't believe I progressed without any problem through all of Chris's install this and that stuff without any issues at all. Then when I added my first view I get the error: N...
AlfredoNarciso replied

How do I use includes to return all columns of associated table?
1
Rails
I hope someone here can help me. There's a lot to ActiveRecord I'm yet to understand and I'm a little lost at the moment.
I have three models. `Issue`, `Language`, `Labels`.
An issue has a langua...
Oliver replied

How would you approach adding students to classes?
4
Rails
I have `SchoolClass` and `Student` resources. Students belong to classes through `ClassMemberships`. So far students have been added to classes using a grid of class checkboxes on the Edit Student ...

Nested attributes with collection_select not saving
11
General
In my edit form I simply cannot figure out why collection_select isn’t saving the various values when it's nested. It works fine if I use a {multiple: true} and pull it outside of the fields_for ev...
Sean M replied

Rails 4.0 with MongoDB and Mongoid Discussion
13
General
> rakerake aborted!Don't know how to build task 'default'(See full trace by running task with --trace)
Someone replied

Carrierwave Backgrounder in Rails 5.2?
0
Rails
I have an image uploader on a form, and images upload fine without the background processing. Since moving to Heroku, the larger source images often time out, so I'm looking to move this to a backg...
John Athayde posted

Debugging Performance Problems In Your Views | GoRails - GoRails
13
General
Hi Chris, this issue is called N+1 problem and one of the ways to face it is by doing "eager loading" because sometimes you still need to use your step object in the view, so in the controller it's...
Chris Oliver replied

Group Chat with ActionCable: Part 7 Discussion
30
General
Hi! response for the new userundefined method `last_read_at' for nil:NilClass for Chatrooms#show how to solve?
FX replied

Group Chat with ActionCable: Part 2 Discussion
13
General
Hi Chris,Is it possible to make a REST API for this app and create a Mobile app using Jquery mobile or Android and do real time chat with people chatting on desktop?I have an application with Rails...
felixOlesen replied

Rails csv import with associations
8
Rails
I am building a rails application that associates posts with many different categories. For example, I have a Post and need to be able to assign it to the categories Sports, News and Science throug...
Chris Oliver replied
Solved

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

data consistency for invitation registration
9
General
Hey!
At the moment I have a user and a product table and products are created by users. So the user can create his own product he is working on. User `has_many :products` and `product belongs_to :...
Sean M replied
Solved

Exporting Records To CSV Discussion
58
General
Is there some magic happening when you call @users.to_csv ?? As I understand @users is an ActiveRecord::Relation, how is the method 'to_csv' sended to the User class ??
Nathan Anderson replied

Liking Posts Discussion
96
General
Learned a lot of new things through this post, thank you. Never knew how to properly write a route to a module or the proper architecture for that set up. Very useful stuff. Would have liked to s...
Someone replied

How can I integrate Amazon Native Ads
10
General
Im having troubles integrating Amazon Native Ads into my rails apps. I think its a problem with turbolinks but not really sure. Amazon says to just past this code into your html wherever you want...

Select Or Create Field With Selectize.js Discussion
22
General
Awesome! Would love more episodes like this. :)
Rafal Siepak replied

Searchkick: Reindex on model in multitenancy through default scope app
28
General
Has anyone had any success indexing their multitenant data with searchkick? I followed the suggested article in the readme (https://www.tiagoamaro.com.br/2014/12/11/multi-tenancy-with-searchkick/) ...
Chris Oliver replied