
Pull data from another table in a lookup
53
Rails
Hi all,
I am looking up a list of articles, depending on the brand ID's - `@articles = Article.where(brand_id: brand_ids)` what i would like to know is there a way to retrieve the brand name in thi...
Jacob Montgomery replied
Solved

Saved messages as HTML
3
General
Hi Chris,
I'm wondering, on your episode https://gorails.com/episodes/message-templates, would it be possible to have one of the saved messages as HTML? I've tried entering ```testthis is a te...
Chris Oliver replied
Solved

GroupChat ActionCable Part 6 coffee and Chrome compatibility
3
General
Running into a strange error, everything works perfectly fine in Safari/Firefox. However, when launching in Chrome functionality completely halts after adding ```notifications.coffee```. Is there...
Chris Oliver replied
Solved

I'm building a widget that needs to dynamically load my html files (similar to an SPA)
0
General
EDIT: Solved
Masud Hossain posted
Solved

How return has_many with array instead of object
3
General
Have a way to a "has_many" return a array instead of object?
```rb
class UserSerializer < ActiveModel::Serializer
attributes :id, :name, :nickname, :image, :roles
has_many :roles
end
```
...
Bruno Wego replied
Solved

Question on ActionCable Group Chat part 4, development.rb fix for redis
5
General
Saw in the comments the fix for ```(REQUEST_METHOD: GET, HTTP_CONNECTION: Upgrade, HTTP_UPGRADE: websocket)``` however I added the following to my ```development.rb```:
```
config.action_cable.a...
Chris Oliver replied
Solved

ActionCable Part 3: can't write unknown attribute `user_id`, what am I missing?
2
General
Having some trouble figuring out what I'm missing with submitting a message in the chatroom, I get the error for my ```messages_controller.rb``` saying that ```can't write unknown attribute `user_i...
Chris Oliver replied
Solved

Create a welcome page with a tour/get started
3
General
Hi, I was thinking of a way when the user login for the first time they get redirect to a welcome page where they take some steps into maybe a tour or fill some important fields to getting started....
Alan Reid replied
Solved

How can I allow my users to configure their account (created w/ devise) with their smtp server, so they can send & recieve emails in my app?
2
General
Are there any ruby gems for this specific problem? Or should I just use ActionMailer from Rails? If ActionMailer are there any tutorials on this topic online?
Drilon Buzuku replied
Solved

Error updating nokogiri and autoprefixer using Capistrano -- local/production gem mismatch
6
General
I've been using Capistrano to deploy my rails app and I've come across an issue trying to update 2 gems. Below at the bottom is the message I get for nokogiri. The other gem I'm trying to update on...
Chris Oliver replied
Solved

macOS sierra working w/ Ruby / Rails / RBENV?
6
General
Curious if anyone has tested it? Don't want to upgrade until I know everything in my stack works correctly without a ton of pain.
TIA
Chris Oliver replied
Solved

How to setup SSL with a rails app
6
General
So I have a ssl certification that I want to apply to my rails app. Im using puma on Heroku.
Francisco Quinones replied
Solved

How do I build a beta invite system?
5
Gems / Libraries
Hi! I'm getting ready to release a beta for my rails app and I was wondering if there is an easy way(perhaps a gem?) to build an invite system, so that only users that receive an invite through ema...
Joe Guerra replied
Solved

How do I allow a user to make multiple payments on one booking using Stripe?
38
General
I'm building an events app using Rails and Stripe to handle payments. I've used javascript for my booking page in order to allow a user to book and pay for multiple spaces rather than just one at a...
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

How do i fix my jquery-ui autocomplete problem (details below)?
1
General
I followed your tutorial on elastic search/search kick and implementing jquery autocomplete. It works when I use "Test" as the data, however when I try to use my data from posts table, it doesn't w...
Chris Oliver replied
Solved

Has any installed macOS Sierra yet?
8
General
Just curious if anyone is running macOS 10.12 Sierra yet, and if so, how are things with your dev environment? Specifically with Homebrew and such?
Jordan Godwin replied
Solved

Backing up Heroku PG and than pushing my brand new rails 5 app.
2
Servers
If you back up your Heroku PG database, this is storing all your users login info, right?
So can I delete my whole rails app, push up a brand new rails app (using devise and rails5) and than put ...
Masud Hossain replied
Solved

FAO: Chris... URL Errors on pretty much any Rails site
3
Rails
Hi I've come across a really weird bug, not just in my project but on quite a few rails sites.
`https://gorails.com/users/sign_in?redirect_to=%2F` - **works fine**
`https://gorails.com/users/SIGN_...
Alan Reid replied
Solved

Controller naming...
3
Rails
Evening all,
So i have a question about naming controllers. Which would be best to use? MyOrder or MyOrders
Is it just the DB which get pluralised?
Alan Reid replied
Solved