Skip to main content
Separate Asset Pipeline
Rails Solved • Asked by Nelson
Im building a webapp that has an admin panel... I separated this by creating a new folder in the controllers 'admin' and also on my views... This way I can have two completely different styles, one...
2
posts

Manipulate photos already on S3 or Spaces
Rails Solved • Asked by Ryan Carter
Scenerio: User uploads a huge file to S3 or Spaces. Question: How can I set up a job or worker to go into S3 or Spaces and resize that file at a later time, or even batch all of the days uploade...
3
posts

Should Categories be it's own resource or model attribute?
Databases Solved • Asked by Ariff Munshi
Hey guys, I have a question on database design. Say I have a Post model that has/belongs to a category (out of about 20 categories or so). I am thinking of two options that have their own merits.1....
5
posts

Command 'rails' not found but it used to work perfectly...
Rails Solved • Asked by Damian Nelwep
Hello everyone, I'm having some issue I really don't know why... It is the second time I get this but, after working on a Rails project without any problem, I try to get back to it and it tells me...
4
posts

How do I improve these relationships (Rails Association question) ?
Databases Solved • Asked by Ignacio Alonso
Im trying to make a project to practice more kinds of associations would you kindly help me understand this? The basic idea is to have a betting game where one user generates a new bet that can ...
2
posts

Re: In-App Navbar Notifications work on page load but not page change
General Solved • Asked by Ariff Munshi
Hey Chris, Just watched and implemented the code from this screencast and it's working well. However, I realised that it only works on first page load. Subsequent pages do not run the function....
9
posts

NameError (undefined local variable or method `fetch_records' for ....
Databases Solved • Asked by Victor Nizeyimana
Hi, I'm getting this wierd error. ``` NameError (undefined local variable or method `fetch_records' for #): app/controllers/admin_controller.rb:69:in `block (2 levels) in comments' app/con...
4
posts

NoMethodError (undefined method `def_delegators' for ChatroomsDatatable:Class):
Ruby Solved • Asked by Victor Nizeyimana
I have this error: ```NoMethodError (undefined method `def_delegators' for ChatroomsDatatable:Class):```
5
posts

Rails Button_tag not submitting edit form, but submits new form
Rails Solved • Asked by Alan Reid
I am using the following to submit my form when creating a product. ``` ``` However, the issue I am facing is that when I try to do the same for editing a product, the form does not submit...
12
posts

ActionController::RoutingError (No route matches [GET] "/assets/images/4.jpg"):
Rails Solved • Asked by Victor Nizeyimana
How to resolve this issue: `ActionController::RoutingError (No route matches [GET] "/assets/images/4.jpg"):`
4
posts

Accepts_nested_attributes_for, I am getting 'unpermitted parameter: :user' and User not entering to DB.
Rails Solved • Asked by Ryan Mindigo
Hello! I am building an app with Accounts/Users & Memberships via has_many through. I am using Devise and want to create a new user from 'accounts#new" via 'accepts_nested_attributes_for.' W...
2
posts

Where do this code go? (Refactoring Rails Workers)
Rails Solved • Asked by Arjun Rajkumar
Hey! I have two different workers ``` #app/workers/website_worker.rb class WebsiteWorker def perform(website) do_this_action(website) end def do_this_action(website) ...
6
posts

How do I create my homepage subdomain ('www')
Rails Solved • Asked by Damian Nelwep
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....
9
posts

Nested Comments in Rails Part 2, nested comments are showing in reverse order
Rails Solved • Asked by Max Fred
I am trying to implement nested comments with max_nested comments as described in this episode: https://gorails.com/episodes/nested-comment-threads-in-rails-part-2?autoplay=1 I'm at approxima...
3
posts

How do I create an app with Urls like 'https://username.website.com/' instead of 'https://website.com/username/' ?
Rails Solved • Asked by Damian Nelwep
Hello everyone, I searched but didn't find anything and was hoping like I said in the title of this subject, to find a way to get the url displaying a user's profile of a client's app to be like...
18
posts

migrating to php
Ruby Solved • Asked by vampster
Hello, I have inherited a ruby application and unfortunately have no knowledge of the language. Could someone be so kind to help me figure out how to convert the below code to php? ``` def ge...
3
posts

Stuck on creating new record
Rails Solved • Asked by Nelson
I'm not sure why I'm so lost on this one, I dont rally have a ton of experience with Rails but I did a blog with basic CRUD functionality and that was all good but this new project its just giving ...
5
posts

Stripe Subscription with Initial setup fee
Gems / Libraries Solved • Asked by Nick McNeany
Hey Everyone, I'm building a relatively simple subscription based app using Stripe, Devise, Pundit and a few other resources. My only real hangup at the moment is that the subscription requires ...
4
posts

How long does it take for comments to post?
General Solved • Asked by Max Fred
I posted a comment on an episode, but it didn't show, so I followed it up with a simple "test" which also didn't post/register. Is there a comment filter or do comments need approval before they'r...
6
posts

How to update the card number in billing info?
General Solved • Asked by Taeyang Lee
I'm trying to update my card number but I can't find the edit button. Thanks in advance :)
2
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.