Ruby on Rails Community Forum

How to handle flash messages with TurboJS?

2
Gems / Libraries
When using turbo-frame to switch from showing a partial of model to showing the form of model, how do I handle flash messages? The failed state - for failed validation - is pretty straight forward...
Johan André replied

How to send a file to front-end from Rails server deployed in heroku ?

1
Rails
I have a Rails application with React in the front end and deployed in Heroku. I am trying to send a file from the server to the browser side. I did saw the Rails "send_file" but it makes use of R...
Mads Obel replied

How to Create & Test a Rails Engine Discussion

0
General
Great episode, never considered using a rails engine for a gem!
Jankees posted

How to Test Background Jobs with Active Job Discussion

1
General
Nice video! this work with sidekiq workers and rspec ?
Dwight Watson replied

Bundler::GemRequireError and Gem Load Error is: AddDllDirectory failed when switching from Sqlite3 to Postgres on Rails 6

0
Databases
I have a project in rails which worked with SQLITE3. I have to move out to POSTGRES, because Heroku needs to. **Following the docs: https://devcenter.heroku.com/articles/sqlite3#running-rails-on-p...
cratag posted

sending the simplest of emails? (ruby or RoR)

1
Rails
(newbe) Am I missing something very basic, what does it take for me to send a simple email with 'hello' to my personal inbox in ruby (or Rails) in php it's this simple : mail("someone@example.com",...
Chris Oliver replied

How to add a Page to your Rails app Discussion

0
General

GoRails forum report spam feature - broken?

1
Site Feedback
Hey 👋 Been trying to report spam recently and get "The page you're looking for doesn't exist" - on Firefox 87.0a1. Is anyone else able to report spam on this forum? If not, is there another pref...
Matias replied

docker screencast?

6
General
Hi whole community, recently i'm learning something about docke, my question is: is gorails planning make a screencast about docker? when?. (i didn't found any about docker here) great videos. thanks
Richie McMahon replied

Rails Fragment Caching with Permissions Discussion

2
General
Amazing. Thank you for the video. I think the roles would be a really good idea!
Murray Catto replied

How do i resolve this error

0
Rails
Whenever i run this command gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 \ 7D2BAF1CF37B13E2069D6956105BD0E739499BDB It shows an error: gpg: keyserver re...
Rubal posted

I need to create a separate link for showing the comments for a particular post.

0
Rails
I do not have a clear idea between the controller and the views. Also I dont have the Idea for the def show etc in controllers. Please reply me ASAP.
Thilak S posted

NoMethodError in TweetsController#create undefined method `publish_at' for nil:NilClass

0
Rails
I am new at rails and just complete Chris tutorial in gorails.com => schedule_tweets. But I could not send any tweet , I did the UTC modification for america/brasilia, when I make a schedule twe...
Adalberto Caldeira posted

How do you include Awesome Font 5 in PDF format rendering?

0
Rails
I'm using wicked_pdf gem for rendering show template view with PDF format. But, unfortunately, awesome fonts were not shown but blank space. Is any solution for this? Thank you in advance.

Render :new form is blank

0
Rails
In my create method I have the following: respond_to do |format| if @purchase_agreement.save format.html { redirect_to admin_purchase_agreements_path, notice: 'Purchase agreement was succes...
Amanda posted

Webpack and Purge CSS

0
Javascript
Hi All, I am trying to purge my css as I am using tailwind as outlined in the video Chris did. I'm getting an error. **postcss.config.js** let environment = { plugins: [ require('tailwindcs...
Stephen Sizer posted

Errors when doing Bundle Update

0
General
When I do bundle update I get: Bundler could not find compatible versions for gem "ruby": In Gemfile: ruby (~> 3.0.0) thredded (~> 0.16.13) was resolved to 0.16.16, which depends ...
Brandon Morales posted

Rails for Beginners Part 7: Adding Bootstrap CSS & Javascript Discussion

2
General
Would it make more sense to add the Bootstrap javascript bundle just before the closing body tag so the page loads faster and does not block the rendering of the page? Also, once a person visits t...
Kentastic replied

installed ruby and then rails but unable to start local server successfully

0
Rails
how to address this:92:depot tesfaye$ rails server => Booting Puma => Rails 6.1.1 application starting in development => Run `bin/rails server --help` for more startup options Exiting /Us...
Tesfaye Mentor posted

PDF Receipts Discussion

21
General
hashes are ordered too (for the design choice) i think since ruby 1.9 the only real difference is that "keys" can be duplicated in the array style
Hamze Ahmed replied

Learning Ruby on Rails? Join our newsletter.

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