Ruby on Rails Community Forum

Simple Test with empty rails fails

0
Testing
Hi everyone, I'm currently trying to create a template for internal Rails development and I just tried the newest Rails 6.0.3.1 and it fails with a simple test: ``` /tmp $ mkdir app-test /tmp $ c...
Andreas Steinel posted

Have you taken the 2020 Ruby on Rails Developer Community survey, yet?

1
Rails
This is more of an invite. We're conducting our bi-annual Rails survey where we dig into some details on versions being used, hosting environments gem usage, third-party services, etc.. so that we ...
Chris Oliver replied

How do I protect myself against brute-force attacks when using Cockpit server administration?

0
Servers
When using Cockpit, I feel that it opens up a big vulnerability as the browser login allows unlimited attempts to login. Once the brute-force is successful, the attacker will be able to run command...
Yi Mei Wang posted

Shopify App injecting Liquid code into theme files

0
Ruby
I'm developing a new Shopify app and need some Ruby on Rails dev help. When a Shopify Merchant installs my app, we ask the Merchant to manually add some Liquid code to their Theme files. But my S...
Adam Siegel posted

Deploy Ruby project on Ubuntu 18.0

1
Servers
Hi, I am referring the doc "https://gorails.com/deploy/ubuntu/18.04#nginx" for deploy the project. After running the command "cap install STAGES=production" I got error list : LoadError: cannot loa...
bhavya replied

Seed local database

2
Ruby
HI, I am new in Ruby and i am set up the open source project on Ubuntu and stuck in some point. $ bundle exec rails db:setup When i execute the above command then its not running. I was execute thi...
bhavya replied

How can I force cloudfront assets to use http2?

0
Rails
in our app we have an image library which stores images in S3 linked to cloudfront. cloudfront configured for http2 server is puma + nginx problem is performance seems like all assets served from c...
Peter vande Put posted

how i can manage links , create new links , modify exiting links ?

1
Rails
hey guys , when i generate a scaffold the default link of edit it's link like this edit_participation_path(participation) , in my case i need to change the edit to changer_participation_path(partic...
Chris Oliver replied

How to use Sweet Alert to replace standard confirm dialog

9
General
I'm trying to use Sweet Alert to replace the standard Rails confirm dialog. I can get it working in a plain new Rails app but not in my production app. I'm using the *sweet-alert-confirm* gem here...
Sbstn replied

How i put a link or button to back to the last search in a form with method GET

1
Rails
Hi, I got a form through GET to search employees, when this give me a result through some filters (code, name, status), i can go to one employee in particular, but before i see the show page of thi...
Chris Oliver replied

Jekyll as a support page?

2
Gems / Libraries
Can you use Jekyll (https://github.com/jekyll/jekyll) as a embedded help page? From the showcase section this is pretty much what I am looking for: https://dev.twitch.tv/docs/ (says built with Je...
Dan Tappin replied

How do I know how many threads does my app need?

0
Servers
I'm working on an app that does serves http but also has some parts where ActionCable is used. How do I know how many threads does my app need? Is there a rough number? How does websocket occupy t...
Yi Mei Wang posted

Sidekiq file access

0
Rails
I have an application on Heroku that has a Postgres database and sidekiq running on a hosted Redis instance. A tool I want to rely on is able to generate JSON output when an output file is specifi...
Cheerio posted

How to Access rails User session into Laravel Application?

0
Ruby
Hello, I have developed two Application one is main website which have all business logic's and functionality in ROR and second is my marketing website which i have developed in Laravel. Now i wan...

How do I reindex all posts in Searchkick / Elasticsearch?

0
Rails
Hey, I discovered a problem with Rails app. When I run `rails db:seed`, I generate 10 posts and store them in the database. I also have an API where I pull data as JSON, which gets parsed and data ...

How do I generate and store the state parameter for OAuth?

0
General
``` https://authorization-server.com/oauth/authorize ?client_id=a17c21ed &response_type=code &state=5ca75bd30 &redirect_uri=https%3A%2F%2Fexample-app.com%2Fauth &scope=photos ``` T...

How do I add Webpack config to Rails?

0
Rails
I'm following the installation guide of Vuetify and it requires me to add the following to `webpack.config.js` but since Rails has no such file, how should I go about adding these rules? ``` modul...

Is there a acts_as_taggable gem that works on Rails 6?

1
Gems / Libraries
The acts_as_taggable gem only supports upto rails 5. Appologies if this is a stupid question. Thanks, Gerard
Chris Oliver replied

How do I have a Vue.js navbar stay on the page between page navigations?

0
Gems / Libraries
I built a lovely Navbar in Tailwind CSS in my rails app following a tutorial by Adam Wathan which uses Vue.js for the javascript behavior on dropdowns. I added Vue.js the way Chris suggests here,...
James Devereux posted

Group Chat with ActionCable: Part 3 Discussion

23
General
Chris,Would it be possible to have one on Map APIs like mapbox or google maps api please :)Omar
Richard Ludwig replied

Learning Ruby on Rails? Join our newsletter.

We won't send you spam. Unsubscribe at any time.