Trouble With Form Objects
6
Rails
I decided to experiment with a form object.
```ruby
class Invitation
include ActiveModel::Model
attr_accessor(
:first_name,
:last_name,
:email,
:firm_id,
:role
)
vali...
Chris Zempel replied
Pundit Scope and has_many through
1
Rails
Hi!
I can use a little help to get on the right track.
I have 3 models
```ruby
class User < ActiveRecord::Base
has_many :associations
has_many :items, through: :associations
end
class It...
Chris Oliver replied
Using Pundit to build in a cool gmail-feature
5
Rails
I'm building an app with data set up similar to this:
```ruby
class Company < ActiveRecord::Base
has_many :products
has_many :options, through: :products
end
class Product < ActiveRecor...
Chris Zempel replied
Bundle issues
2
Rails
Hi,
I'm starting the forums tutorials, and I keep get this bundle error. I've tried bundle update and get the same thing:
Bundler could not find compatible versions for gem "sprockets":
In Gemf...
Chris Oliver replied
Solved
Likes routing error
8
Rails
I am trying to use the Likes tutorial to create Favs for locations, which are nested under stores.
Here is the relevant route section
```
resources :stores do
resources :locations do
r...
Chris Oliver replied
deploy Rails
2
Rails
I following the deploy rails instructions on GoRails.
When I tried to install Ruby 2.1.2 with rbenv, I got this error message:
"no acceptable c compiler found in $PATH"
I solved it by runnin...
Anthony Candaele replied
Deploy Rails guide confusion
2
Rails
Hi,
I'm deploying my Rails app, using this website's Deploy Rails guide.
Something is not really clear, at the end of the guide, under the section 'Adding The Nginx Host' it says:
"Open up /...
Anthony Candaele replied
Structure Guidance - Multi Tenancy Authentication / Authorization
19
Rails
I while back I was playing around building an app where you had multiple tenants (Company Model) and a single login (User Model). I then created roles (Role Model) to link the users to the tenants....
Chris Oliver replied
how do i create two users at the the same time with two different session? P.S I am trying to create a game where two players are created at once being of same class(Player)
1
Rails
I am trying to create a game where two players are created at once being of same class(Player).
Leroy Diaz replied
Ecommerce multi-step checkout with guest accounts
11
Rails
Hello, I've been thinking about the best approach for implementing a checkout scenario in a custom ecommerce site I've been developing and wanted to see if anyone here had advice to share.
We're n...
sabrinacollinsss581 replied
Calendar with Recurring Events Error Message - undefined method `has_key?' for "null":String
1
Rails
Hi I'm trying to follow Chris's Recurring events tutorial and I'm coming across this error message...NoMethodError in EventsController#indexundefined method `has_key?' for "null":StringExtracted so...
Watched the video- One Time payments with Pay and Stripe- (embedded), Form never loads....
4
Rails
HAS anyone been able to get STRIPE EMBEDDED PAYMENTS working?
I followed Collin's course to the T, but when I get to the point where the stripe form is supposed to be inserted into my DIV on the Ap...
Any HTML→PDF gem that supports modern CSS (flex/grid) and works on Ruby 2.5.1 + Rails 5.0.7.2?
0
Rails
Background
---------
I have an existing Rails 5.0.7.2 app running on Ruby 2.5.1. In several places I generate invoices as HTML (I build a full HTML string by replacing template tags server-side) an...
babvijayb posted
Graphql on Rails
7
Rails
Hi Chris! Could you please publish a lesson or guide about using Graphql with Rails? Thanks!
Danny Garcia replied
Video Hosting
1
Rails
What does GoRails use to host its private videos?
How do I create a reply comment system?
12
Rails
I have been trying to get the hang of rails and I understand most of Rails but I'm currently stuck on how I would go about and create a reply commenting system. For example, just like on GoRails.&n...
Rails upgrade companies
5
Rails
I'm wondering if anyone has any experience with any of the Rails upgrade companies that are out there? We're looking to get all of our apps on the latest and greatest and trying to decide if hiring...
rordevelopernik replied
Struggling with Active Storage delete/purge on uploads
6
Rails
I have a projects model. A project could have many uploads that could be anything (pdf, word, cad, image etc.) I have the uploading working and I am displaying links to the files on the projects/sh...
How do I structure my DB to set up oAuth integrations with Facebook, Instagram, etc.
2
Rails
I have a Shopify app where they (Shopify) handle authentication. If you can login to your Shop on their platform, you can login to the Rails app. Therefore I have no need for Devise. It seems like ...
Dubugging
4
Rails
Is there a method to debug hosted ruby on rails application and check the request and response object