Skip to main content
Cloning nested fields by JS/coffeescript
Javascript • Asked by Dmitry Amelchenko
SImple app has a two models and does the function to add nested model fields dynamically through JavaScript. But this stuff does not working with the Turbolinks 5. How to refactoring this code by J...
1
post

How to link the liked posts by each user?
General Solved • Asked by Lauro
I just finished with the [Liking Posts](https://gorails.com/episodes/liking-posts?autoplay=1) screencast. All good. I managed to create a User Profile. And now I'm trying to display the liked post...
4
posts

Setting up “Next post” and “Previous post”
General Solved • Asked by Lauro
In my blog application I want to have a **"Previous post"** link and a **"Next post"** link in the bottom of my show view. But I'm having a hard time getting it to work. What am I missing? **Th...
3
posts

Episode Suggestion: Normalization
Site Feedback • Asked by Chris Zempel
I've identified a tendency in myself that I feel like, if overcome, would make me a considerably better developer and produce better software. Here I'll try to characterize/analyze it: **Descrip...
1
post

[GET] Errors and Locales?
General • Asked by Ja Ku
So I'm dealing with an interesting but probably simple issue. Working on some Rails 2 stuff that was written by someone who has long been out of reach so I've been dusting it off on my own. Som...
1
post

3rd party integration best practices/problems
Site Feedback • Asked by Sean M
Hey Chris! I was wondering about the differences of the implementations of complex 3rd party integrations. For instance on the one hand there is segment.io or intercom.io. For these to work you ...
1
post

How do I implement OpenID Connect into my Rails application?
Gems / Libraries • Asked by Adam Tarantino
Does anyone have experience with implementing OpenID Connect into a Rails app? Specifically the relying party (RP) rather the openid connect provider (OP). I have investigated a couple differen...
3
posts

Muliple has_one's on a polymorphic association
General • Asked by John Meehan
I wish to add a billing_address and a delivery_address to my Client's. So i thought i would make my Addresses polymorphic. ```ruby class Client < ActiveRecord::Base has_many :addresses,...
2
posts

Multiple Users with Devise
Gems / Libraries • Asked by Ja Ku
Hello! I'm new here. I'm currently working on an app and I'm trying to wrap my mind around how I want to handle authentication using Devise. I've read the past threads that were similar to my situa...
2
posts

Add a coment in a post ( how can I do)?
General • Asked by Federico Calarco
I'm coding my personal website , I have a backoffice where I can write blog_post ( title , content , category and date ). I would like to make user comment my blog post without being logged in . ...
1
post

If-clause not working
General • Asked by Sascha M.
I've created a little tool which pulls a price from another table according to what was sold. This works perfectly fine. However I need to include a discount logic into that. There should be 3 way...
1
post

Screencast Request: Authorization with ActionCable
Site Feedback • Asked by Drazen Mokic
A cast about how to do authorization with ActionCable. Example is a Chat with multiple chat rooms and messages should only be sent to rooms / people who have access to the given chat room.
6
posts

Calling function from handling click event issue
General Solved • Asked by Michael Derzhavets
Hi Everyone Using the UJS approach Chis showed in the NavBar notifications screencasts, I'm trying to implement something similar, and having very strange issue that I can't even imagine what's ...
9
posts

rails + DB dependent destroy vs cascade delete
General Solved • Asked by Sean M
Hi, I wanna make sure that child objects also gets deleted when deleting parent. I'd like to use both `dependent: :destroy` (rails side) and `on_delete: :cascaade` (db side). Is this a good ...
4
posts

Updating a genre in a nested association
General • Asked by Wesly Mezarina
I've been asking a few question on scraping and nested association. Im running into another issue which is updating genres to each anime. I'm getting a list of genres, for example "Action, Romance...
3
posts

How can I solve it?
General Solved • Asked by Federico Calarco
Hello guys I have a problem with this! I'm making my website where user can give feedback to my projects, contact me and make comment to a blog_post. The problem is when i make the render 'blo...
11
posts

Limit CSV export by Day, Week and Month
General Solved • Asked by Sascha M.
Hi there, is there an easy way to limit the results inside a CSV export to a specific time-frame, like day, week and month? Thanks!
2
posts

How do you setup email in your application and link it to a record
General • Asked by Tabish Iqbal
Hey Chris. I have been trying to look online but haven't been successful in finding out the following. Say you made a CRM application in Rails and setup a pop3/imap email in the app. How would...
1
post

How do I include a placeholder for empty notifications
General Solved • Asked by Stan Smith
Your In-App Notification code worked perfectly. However I'm stuck on what code to use to display a placeholder message if there aren't any notifications. You mentioned this briefly in the episo...
3
posts

How do i update an attribute for belongs_to association when scraping a site?
General Solved • Asked by Wesly Mezarina
So pretty much a `anime` belongs_to :season and a `season` has_many :animes. I'm scraping a site and i'm collecting the season like "Spring 2015". I want to be able to assign "Spring 2015" to a an...
6
posts

Subscribe to the newsletter

Join 27,623+ developers who get early access to new screencasts, articles, guides, updates, and more.

    By clicking this button, you agree to the GoRails Terms of Service and Privacy Policy.

    More of a social being? We're also on Twitter and YouTube.