Ruby on Rails Community Forum

Database structure advice

1
Databases
Hi all, I need advice on what to do with an existing table on an existing app. Right now the table is used to store details about a property and its closing costs. Normally there are always a h...
Chris Oliver replied
Solved

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

Is there a way to validate image uploads to validate dimensions?

2
Rails
Hi, I want to validate my image upload field by making a user upload only a square image (i.e 200px x 200px). I'm basically wanting square image dimentions so it will resize and nicely and not loo...
Umesh P Kafle replied
Solved

Shrine default_url with webpacker

1
Rails
I am using Rails 6.1.1 with webpacker and Shrine. The issue I am coming across is using the default URL plugin with webpacker based assets. When I use it in development it seems to load just fine b...
Dieter Lunn replied
Solved

Sharing Personal SAAS Tools...

2
Showcase
Hi all, Wanted to take a moment and tell you about a couple of new sites I have published (really for my own use but hope others may find them helpful) using rails with a focus on privacy. This is...
Mike Chilson replied

"rails for beginners part 21"

4
Rails
i cant make work user.signed_id, it raises a no_method_error: irb(main):010:0> user.signed_id Traceback (most recent call last): 2: from (irb):9 1: from (irb):10:in `rescue in i...
gabriele garretto replied
Solved

Error Installing Rails 6.11

0
Rails
I need to install `gem install rails -v 6.1.1` but I receive the error `OpenSSl is not available. Install OpenSSL and rebuild Ruby (preferred) or use non-HTTPS sources` and I've updated OpenSSL to ...
Nic Pismiris posted

Save Each Collection Check Box on A Form as Its Own Object

0
Rails
Hello, I'm fairly new to Rails and I'm working on a pretty large, fairly complicated project for a friend as a way to challenge myself. (Hey, go big or go home right?). A little background: The ...
Kevin Hemphill posted

App Stats / Data (i.e. tracking long term app data trends)?

0
General
I have a multi-tenant app with various models. I want to start tracking data point for future stats and business intelligence integrations etc. Think of this like Amazon and you wanted to track e...
Dan Tappin posted

"rails for beginners part 14"

0
Rails
I don't understand how chris browser gives back all the result without the option local:true in the code of the form, in the new action? My end wouldn't show me even the error page in the browser,...
gabriele garretto posted

Internal Server Error with Rails API only app on Heroku

0
Rails
I'm deploying a Rails API only app with MongoDB Atlas on Heroku. I'm using Postman to test the application. When I do a GET request the response is null, but when I do a POST I get a Internal Serve...
MiquelVald posted

Deploy Ubuntu 14.04 Trusty Tahr Discussion

0
General

How to Submit Complex Form Data in Ruby on Rails Discussion

3
General
Hi Chris, Yet another good tutorial you made. I must say I always use option 1. I don't like moving logic to JS if not needed because more dependencies and more code

Webpack trying to serve incorrect files

1
Rails
I am using new relic with my app, and it seems there are often 404s that show up. The file it is trying to load is an older `packs/js/application-blah.js`, sometimes one revision old, sometimes th...
Willard replied

How can I add multiple dynmic nested fields in the same form?

0
Rails
I have a registration form that allows tournament directors to select which fields they will request when participants register for a tournament. I followed a video to add dynamic nested form fie...
Scott Moore posted

Learning Ruby on Rails? Join our newsletter.

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