Ruby on Rails Community Forum

RSCSS. Styling CSS without losing your sanity

0
General
This is a small article where we touch on RSCSS adding snippets. Thinking of a beautiful and grammatically [tweakbox](https://tweakbox.mobi/) correct CSS code over and over again but still wiped o...
ThomasAnderson posted

Welp. They just let me go.!!

0
General
I started with a company 7 weeks ago and they just let me go. They had no training material whatsoever. They interviewed me as an engineer. The moment I started, they started treating me like a man...
Charlesmartin posted

Do we need an alternative to JSON?

0
Javascript
Hey everyone, Maybe this is a controversial topic but I've been wondering for a while about a JSON alternative. Being able to serialize objects, array, string, numbers and booleans is nice and fit...
Charlesmartin posted

Skip Stripe checkout for user with certain conditions

1
Rails
Any ideas on how one would go about adding [this](https://gorails.com/episodes/referral-program-from-scratch?autoplay=1) to stripe checkout flow? I would like the referree to have a free post inste...
Chris Oliver replied

Possible to get img elements to be the size of container and behave like background-image?

0
General
I’m using a grid for a complex layout and I would like the images in it to have no control over size. The grid is set using fr unit https://sarkariresult.onl/ s so that it too will not have an actu...
DomnikBritto posted

How do I customize a Google Maps marker (like AirBNB)?

0
General
I'm curious if anyone has experience customizing the marker in Google Maps, a la AirBNB ![as seen here](https://i.stack.imgur.com/y1v3z.png). I understand how the icon works but I haven't had succe...
Taylor Cooney posted

How to display Active Storage attached file when editing form?

0
General
I am building an Agreement management app. Each Agreement has vendor, activation, expiration dates and file. File is an attached agreement in pdf. I use Active Storage for attaching files. When I e...
danielindon posted

Is it just me does anyone else feel that javascript world has gone crazy?

0
Javascript
Hello everyone,, To begin with, there are so many js frameworks out there that's enough to intimidate a newbie who wants to learn "just javascript". Things in js world change so fast that we can ba...
Ramond posted

Can somebody explain to me what the hell is PRO-CSS?

0
CSS
Hello everyone,, To put it simply, Pro-CSS on a subreddit specifically just means that the sub/the mods of the sub are opposed to Reddit's possible removal of CSS, which is the formatting system us...
Jawline posted

Stuck writing an interpreter in Ruby. Not able to consume whitespace properly

0
General
So I am following the "Writing an interpreter book" and implementing it in Ruby instead of Go. I am able to scan tokens like ; =, +, etc but it seems to behave differently when I have identifiers l...
MontieFernandes posted

Is it possible to open a file via File Explorer in Ruby?

0
Ruby
For example: if you open Microsoft Word, you can open the File tab and Open a file. This opens up the File Explorer and allows you to choose a .doc or .docx file to open. [appvalley](https://getapp...
BontieFernandes posted

Urgent question

0
General
I'm new to rails and can list any questions, hope to be looking for help in the right place. I need to embed an IFRAME in the SHOW of my app, but it doesn't obey. There is simply no content in the ...
Roseiro posted

How can I add third party plugin in rails 6?

0
Rails
My application.html.erb looks like this. I just want to remove all cloudfare(cdnjs) external link from application.html.erb. Instead of that I just want to use it in application.js . Because I dont...
Siva Ganesh posted

Using Flexbox to arrange images

1
General
I'm working on my first web dev portfolio and I have currently have two screenshots of websites I've made. I'd like them to display very simply, gallery-style, so that on a larger screen they are i...
Dan Mitchell replied

Polymorphic Search

0
Databases
I have a basic model structure like this: ``` class History < ActiveRecord::Base belongs_to :historical, polymorphic: true, touch: true end ``` with several related models: `has_many :histo...
Dan Tappin posted

Remove default gem (bundler)

0
General
Hey everyone, Using multiple versions of Ruby over multiple applications for work and seem to be having some gem set issues. In particular Bundler which is defaulted to a version I need to update ...
HenltonGomes posted

How do I structure a Bookings table for two models?

0
Databases
I've primarly built out support to book a flight, and now I'm looking to offer the ability to book a hotel as well. I'm looking for some insight on the best way to model this: Currently there is a...
Taylor Cooney posted

Go! Svelte + Sapper + Rails

1
Javascript
Hi, Chris! Let's start learning Svelte + Sapper ?? Plus!!!!
AA replied

Jumpstart pro configuration question

2
General
Hi, I am relative newbie so apologies if this is a stupid question. I want to use jumpstart pro to build out an app. It has a lot of what I need out of the box. What I am trying to figure out is wi...
Col replied

How do construct remember me after login ?

0
Rails
In my login-in form in have a params 'remember me' . How do i read its value in controller . biggest problem i m facing right now. ``` Log In <%= form_with url: sessions_path...
Minimalstics posted

Learning Ruby on Rails? Join our newsletter.

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