Ruby on Rails Community Forum

Any Javascript wizards open a one off job fixing upgrading webpack and fixing upgrading page performance on an e-commerce app?

0
Javascript
Pretty much says it all in the email. Legacy code, JS is a nightmare and in urgent need of an upgrade. Rates are flexible. Email me if interested: ams@keemail.me or im askl56 on GR Slack
Andrew Scott posted

Just want to change button text on-click. Coffeescript not making any sense to me.

0
Javascript
Hey guys, trying to do a pretty simple thing but all the information I can find online (for "beginners") seems to omit some core things I'm expected to know, because it doesn't even do so much as t...
NicWickman posted

affiliate program

0
Rails
I have been searching the internet for quite some time for a video tutorial of how to make an affiliate program.  I'm a beginner with Rails and was wondering if anyone can point me to the dire...
LaTasha posted

How do I render a partial on a button click ? (Rails 5)

0
Rails
I want to render a partial of a long form, and pass a variable to it using :locals => { :f => f }Hope you can help me. ThanksHarri 
Harribo42 posted

How do I apply a Pundit Policy to Index?

1
Rails
I'd like to have an index page show only the associated (from the parent, location) records, and allow only users that own those records to see the index.  I am really struggling with this con...
Rich Smith replied

What database should I use?

1
Databases
I would like to create a database to store how often access tokens in my system are being used.I was thinking of a data model like so -Access Tokenfrom (basically I will store this hourly, so this ...
saravanagumar replied

Issue with multiple URL's on an Ubuntu/Apache2/Passenger machine

1
Servers
I have a linux machine that I put together within my organization for Rails applications. I have my first site all set up and working. I am now trying to add a second site/URL to the box and for so...
spacerobotTR replied
Solved

Access local variable in partial

0
Rails
Hi there,I'm working on a budgeting section of a graphic designer web and I created the following model hierarchy:general_budget.rbclass GeneralBudget < ActiveRecord::Base has_many :budgets ...
Javier Bonet posted

URGENT! How do I solve the following error?

1
Rails
I am trying to run a test using rspec and I am getting the following error. Please help.ReactOnRails: Set generated_assets_dir to default: public/webpack/developmentrake aborted!NameError: undefine...
Taylor Cooney replied

How do I access an attribute from a background worker (Stripe charge_id)?

1
Rails
I managed to get Stripe working and processing Jobs, where a user must pay a one-time charge in order to create a Job record. After putting the call to `Stripe::Charge.create` in a background ...
Taylor Cooney replied

Simple form survey and dashboard illustration

1
Rails
Hi I'm new to Ruby and Ruby on Rails and are still in my learning phase. I know HTML and CSS from working with wordpress for some years. As a test-app to challenge myself I thought I want...
Chris Oliver replied

Few Big Models or Many Smaller Namspaced models?

6
Rails
Anyone able to give suggestions on model design? I'm building an app to help small businesses get more reviews across the web. Concept is simple, user registers a business, and their businesses loc...
Rich Smith replied
Solved

Any gem to create a 'What's new' page like the one I see in https://www.hatchbox.io/announcements

2
Gems / Libraries
Do you guys know any gems to quickly build a 'Whats new' page like the one in https://www.hatchbox.io/announcements?
TL replied
Solved

How do I ask people to complete profile before continuing?

0
Rails
I have an app with Devise Users and they can sign up. Once they are signed in I want them to complete there profile before they can use the app.Anyone done this? and whats the best way to go about ...
Stephen Sizer posted

Thoughts on the best way to upload images via Vuejs front end with Rails 5.2 API backend

0
Javascript
I have an app I've just updated to Rails 5.2 and migrated away from Paperclip for image uploads to S3 to the new ActiveStorage feature.  I am able to display some uploaded photos I did with th...
Simon Cooper posted

Whats the best way to handle errors, when creating new records?

6
Ruby
Hi all,I am creating new records, and want to be able to catch the ones that error and add them to my activity log so I can look into them and why they may have failed.What would be the best way to...
Alan Reid replied
Solved

Hatchbox CLI

0
General
Hi Chris, when are you adding the CLI Feature like heroku one on hatchbox  ?
Felender Hlungwani posted

Is the adoption of Ruby on Rails in decline? Proving it wrong with Pagy

0
Rails
Did Ruby on Rails reach its full potential in 2015? Is the adoption of the platform in decline? As the numbers decline, let me show why Pagy matters. You can read everything about it at the followi...
Sandro Cantante posted

How do I transfer user data on delete

5
Rails
I have a rails app with company users using devise. I want to be able to delete users and select an employee to transfer the foreign keys to.Hope that makes sense? Thanks in advance
William Kennedy replied
Solved

Can anyone see the error here?

3
Rails
NameError in RecipesController#newuninitialized constant RecipesController::Categorydef new @recipe = current_user.recipes.build @categories = Category.all.map{ |c| [c.name, c.id] } <-...
Jacob Montgomery replied

Learning Ruby on Rails? Join our newsletter.

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