Could I deploy two different apps on the same server?

6
Servers
Hello everyone, Yesterday, I started using HatchBox to deploy my Rails applications and it is working just fine. I was thinking about deploying 2 Rails applications on the same Vultr | 1GB RAM | ...
Solved

How to use Fixtures to create sample test data Discussion

1
General
Chris, thanks for all the great videos. These are super informative. I have a question about fixtures and TDD in general. Should I be creating a fixture for every potential variation in my model?...

How do i make chat app real time on Digital Ocean?

2
Rails
I am trying to make a Chat web application based on Rails 4.0 using "private_pub" gem which works perfectly on my localhost server. You can check out my application at curatethelens.com. Now my sit...
Maria Kenneth replied

how to properly configure webpack for production

0
Rails
root@ubuntu:~/Make-Rails# ./bin/webpack [webpack-cli] Invalid configuration object. Webpack has been initialized using a configuration object that does not match the API schema. - configuration.no...
Sourabh Soni posted

Email Unsubscribe Links with ActionMailer in Rails Discussion

8
General
Hey Chris, is there any major difference between the newish Active record signed IDs in Rails 6.1 vs the Global ID signed IDs? A quick glance leads me to think the only real difference is that AR s...
Soren replied

How do I post comment with ajax in rails 4.2 ? Can I please have a detailed example?

4
General
How do I post comment with ajax in rails 4.2 ? Can I please have a detailed example?

Authenticate By & Password Challenge Methods In Rails 7.1 Discussion

1
General
Great episode Collin! The `authenticate_by` method really is a bug piece of making _secure_ authentication from scratch in Rails. These are nuances that are important (and already done in Devise), ...

Restrict devise routes

1
General
Hi, How can I restrict access to the devise sign_up route to logged in users only? Controller: ```ruby # frozen_string_literal: true class Users::RegistrationsController < Devise::Registrati...
Earnest Claran replied

Is there a beginners course?

7
Rails
Hi I've searched but I cant find a beginners to rails course, am I being blind? Thanks

How do I display several posts in related "weeks"

17
General
I would like to structure my blog so that I can assign posts I have created with Trix and Shrine to weeks. I want to have 12 teaserboxes on my index page which can then be clicked and if I click o...

DateTime causes StackError when config.time_zone set.

5
Rails
Hi, I have a strange problem When i do the following method with no config.time_zone set in the application.rb it works. ```ruby def send_assignment @assignment = Assignment.find(params[:id])...

Autocomplete a form field

2
General
Hi, i have the following models: users, markets, assignments, products, sales, a user gets an assignment, and then he should enter his sales for the assignment. i have a sales form with the foll...

Unable to autoload constant OmniauthCallbacksController, expected /home/ec2-user/environment/Assignment/app/controllers/omniauth_callbacks_controller.rb to define it

0
Rails
Hi Guys i am getting an error this is is my Omniauth controller class OmniauthCallbackController < ApplicationController def twitter twitter_account = Current.user.twitter_account...

Extracting Reusable Base Classes In Ruby Discussion

3
General
The cat is still playing in the background 😂

Testing HTTP Requests with Webmock Discussion

3
General
Great episode! Instead of testing private methods directly, I suggest to define a `FakeApiClient` class that extends `ApplicationClient` with some dummy methods. This allows testing public methods....

How can I validate from a gem that doesn't have the proper validation calls in the model?

1
Rails
Hello Folks, I want to do validation for my mail functionality on my web page. I want to require that a recipient has been entered as well as a subject and body when a new mail is written. The pr...
wyn replied

HTML Learning Path - Image Element Discussion

1
General
In developer tools, Due to instructor video section, css and box model section are totally hidden.
inonomity replied

Changing Between Contexts In IRB Discussion

0
General

Loops & Blocks in Ruby Discussion

5
General
Hey Collin! Can you give us some examples where you might want to reach for a Proc or a stabby lambda instead of a regular method / function?
Aleksandr Gerasimov replied

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

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

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