Using Ruby Service Objects To Refactor Your Rails Code Discussion

21
General
Very nice video Chris! I really like the idea of breaking things out into POROs. I think the next refactoring I would do to this app is making a Subscription class to house the logic for adding and...
hamza-itu replied

How to use "ensure" in Ruby Discussion

3
General
Having GoRails sprinkled with some savory dishes like this one would be extremely useful in my opinion. 👍
Sahil replied

Forcing a file to download instead of displaying in the browser

3
General
I've got a website where users can upload things such as a mp3 and the files are being stored on Amazon S3. If a user clicks the file it just seems to open as a streaming file in the browser. I c...
Chris Oliver replied

Can I use the has_many :through association to link tables, with more than 3 tables involved?

0
Rails
Hi all! Hope you dont mind a newbie question... I need to categorize questions to several levels: Subject Book Chapter Section Subsection Minisection Question So Subject has many Books , Books h...
Dave Castellano posted

Exception/error reporting from live.

5
Rails
Hi When my app crashes in live it would be nice to get emailed the stack trace/error info. Does anything exist to do this? I found honeybadger.io which looks about right but is this the best way...
Solved

How do I create my homepage subdomain ('www')

8
Rails
Hi, I followed the tutorial for subdomain from scratch and got " redirect_to root_url(subdomain: "www") if @account.nil? " but I don't know how to get to manage it as a homepage like home#index. ...
Damian Nelwep replied
Solved

Rails changing HTML tag possiton (?)

1
General
Im using AdminLTE 2 to build a small dashboard and everything was working nicely until I started adding links to the controllers on my sidebar. On first loading the dashboard everything works as e...
Nelson replied
Solved

How do I unsubscribe from gorails?

1
General
I apologize that I need to use this medium to learn how to unsubscribe but I couldn't find any link/help article regarding this. I'm trying to cut down on my expenses and will come back to gorails ...
Prem Anand replied

Analytics with Segment Discussion

8
General
Great episode Chris! Would be awesome to see some more detailed episodes both for client and server side implementations.
DURR replied

Missing template with Stimulus-autocomplete

0
Rails
Hi, I am trying to use [Stimulus-autocomplete](https://github.com/afcapel/stimulus-autocomplete) following [this tutorial](https://itnext.io/search-autocomplete-stimulus-4e941df54d39) But I get thi...
Benjamin Joseph B. posted

Stripe payments course getting out of date

9
Site Feedback
Chris just wanted to mention that the Stripe master course is getting a little out of date (mostly just API changes on Stripe's end). Maybe a good idea to enable commenting on each section/video i...

How do I pass my wizard form data to my search index page as filters/parameters?

0
Databases
I cannot for the life of me figure this out. I'm using the Algolia search API along with the Algolia gem, but I didn't set it up in the app I'm working on. The Algolia search is attached to my Proj...
Liam posted

Meaning of “Expected string default value for …”

6
Rails
So i am starting a new project, and have done this meany times now. However this is the first time i have hit this issue! I created the app as normal **`rails new myapp -d postgresql`** I've crea...
Alan Reid replied
Solved

Nested Comment Threads in Rails - Part 2 Discussion

4
General
There's a security vulnerability in the code which allows any authenticated user to delete anyone else's comment. While there's a check in view (`if comment.user == current_user`) for showing the d...
icyclisttreacle replied

Trying to relearn CSS and I'm stuck

1
CSS
I'm trying to figure out how to do a simple animation. I have a box with some text content, the idea is that the box only shows an h2 element until the user mouses over it, then it reveals the para...

How to initialize datepicker in stimulus controller?

4
Javascript
I'm using datepicker and turbo frame. The datepicker is broken when the frame is replaced. I'm doing turbo:load in javascript file, it works when navigating between pages, but it will be broken whe...
Umair replied

How to use AMP with Ruby on Rails Discussion

1
General
Hey Chris, this is great, thank you! One quick question - in my `` tag, I have a lot of code and multiple renders. I'm not sure where to put the canonical and amphtml links, since I have no `_hea...
Eduardo Lima replied

Jumpstart pro configuration question

2
General
Hi, I am relative newbie so apologies if this is a stupid question. I want to use jumpstart pro to build out an app. It has a lot of what I need out of the box. What I am trying to figure out is wi...
Col replied

Professional grade authentication with a single command (in rails 5)

2
Rails
I've built authentication a few times now, and every time it's been 99.9% the same (save for a few tweaks in form validations etc). The machinery has been more or less identical to that found in th...
S C replied

How do I add a conditional snippet of page specific javascript (likely a turbolinks issue)?

4
Javascript
Here's to hoping I can be clear and concise about my problem. I am willing to venmo/paypal a beer's worth of cash to anyone who can help me 🍻 I currently have a bootstrap (3.3.7) modal that is, by...
Peter Marcano replied

Want to stay up-to-date with Ruby on Rails?

Join 91,129+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.