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
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])...
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...
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
how to add a forum template to ruby on rails?
0
Rails
I'm new to ruby on rails (I'm more used to PHP) and I'm wondering how to add a dynamic template (made of HTML, JS, and CSS) and integrate it. can I just add it to views or do I have to use the gene...
chickencommander123 posted
No route matches [GET] "/auth/facebook"
1
Rails
Hi folks!
I am just starting to learn Rails, I want to make a simple OAuth Facebook login and display it after a successful login.
I always got No route matches [GET] "/auth/facebook" and can't fi...
Henry Augustianno replied
Rails Competency Levels
1
Rails
After completing a bootcamp in Ruby on Rails, it can feel overwhelming deciding where to go from there. The typical advice is build, build, build, but it would be really handy if there was some com...
Active Storage Validations Gem and Active Storage problems in nestted params
2
Rails
gem active_storage_validations 1.0.3
I have two models with **"has_one_attached :image"**, 1 model is created with a form, and the second model is created **"after_created callback"**, when i try t...
wtfchamp replied
How to create many subcategories in rails?
1
Rails
Without using any gems how do I do this in rails? I see the gem Ancestry (https://github.com/stefankroes/ancestry)
```
Main Category
Sub Category
Sub Category
Sub-sub Category
Main Category
Su...
Solved
Link_to show rendered in terminal before clicked is normal?
2
Rails
I create a new project and when i pass the pointer over the link_to, i see in the terminal like an i clicked. This happen in every new proyect created, this is a normal function or how can i solve ...
NellyAurora replied
What is the proper way to do form validations in ruby on rails on the client side ?
0
Rails
I am new in rails, how can i do the proper form validation from the client side .
Ajay yadav posted
I am receiving this error "BlogPostsController#index is missing a template for request formats: text/html"
3
Rails
What I need help with is this - my file path seems correct, however, my views/layouts are not separate. My file path is: app> views> layouts> blog_posts> index.html.erb
What I am wond...
Roman Vetter replied
Uploading a PDF file directly into Sharefile via their API
4
Rails
I need to upload multiple large PDF files directly into a ShareFile Folder (https://api.sharefile.com/samples/ruby). Right now I am reading and saving the file data as binary data in a model and th...
Mario Joseph replied
Configure Redis Session Store
0
Rails
Seems pretty straight forward however, I am getting an invalid authenticity token error upon form post with my app.
Here's what I have set in config/environments/development.rb:
```
config.sessi...
Derek Dyer replied
Solved
gem 'devise' error
1
Rails
Hi All
When try to run "bundle install" after add
gem 'devise', '~> 4.8', '>= 4.8.1' in Gemfile will shown below error
"An error occurred while installing bcrypt (3.1.18), and Bundler c...
Robert Ault replied
Encountering an error when installing rails application into the project
0
Rails
Hi,
So recently I cloned a repo from Azure DevOps into Visual Studio 2022 and proceeded to install a rails application into the project, but encountered an error even though a ‘development’ branch...
Asim Mehmood Khan posted
Developer wanted
1
Rails
Looking for a developer:
- Ruby on Rails
- Shopify App Experience
robert replied
SSH issue while deploying Rails application using Capistrano
2
Rails
I've been trying to deploy the rail application on Digitalocean droplet (ubuntu 22.04) using the following two tutorials
https://www.youtube.com/watch?v=xpYpaRUFzTI&t=945s&ab_channel=Deanin...
Vaishnav Deore replied
Action Text bug with files on Amazon S3
0
Rails
Hi, found this problem with Action Text. For example, we have a blog model with a content field (action text field). We have attached the image (at this point it has been uploaded to amazon s3) and...
Vladholovchak posted
Migrating Application from Heroku to Hatchbox AWS - rails console fails
1
Rails
I started migrating the application from Heroku to AWS using Hatchbox. The deployment was successful. But when I tried accessing the rails console, I'm getting a `NameError`.
```
/home/deploy/app-...
David replied