Recommendations for form validators that go well with graphql-ruby?

0
Gems / Libraries
Hey everyone, we're working with graphql-ruby and reform right in our app right now, but I'm finding that while reform is good with form submissions, it's a bit more complicated with mutation and g...
Chris King posted

Validation errors on model available in the controller but not in the view - help please?

1
Rails
I've got a password reset form setup that is not displaying any errors at all and it's killing me. If I input a password (but no confirmation) -- I expect to see 2 errors. Those 2 errors are in t...
Iain replied

Nested Parameters returns ActionController::Parameters rather than parameter value

5
Rails
Hello, With the payload: { "ref": "The penguin ref", "object":{ "a": 300, "b": 30000, "c": 10022 } } params.require(:stuff).permit(:ref, object: [:a, :b, :c]...
Chris Oliver replied
Solved

How do I drag and drop an image file?

3
Rails
I have a rails application that can upload an image using CarrierWave and MiniMagick and a file_field. This seems to be the usual way to do things and works well. I have a user that wants to open...
William Jones replied
Solved

Using migrations to migrate data from one table into another

0
Rails
I have two models user and account linked with each other as following ``` account.rb belongs_to :user user.rb has_many :accounts ``` I want to move the data from column ```name ``` in ```users`...
Shairyar Baig posted

has_one association on polymorphic model

4
General
I have the following models (stripped down for simplicity) : ```ruby class Activity < ActiveRecord::Base belongs_to :trackable, polymorphic: true belongs_to :user has_one :comment, as: :t...
Greg Answer replied
Solved

User Profile with devise

2
Gems / Libraries
Hello I'm new to rails and I am trying to work with the has_one association. I'm using Devise for authentication. I was each user to have a profile (which will include their address and some other ...
Solved

Best Practices for storing API Keys, DB user / passwords, etc...

1
Rails
I would like to get everyone's take on what are is the best practice for storing DB usernames/passwords, API keys, Contstants, Etc... Should they be stored in config/environments/ then in test, dev...
Chris Oliver replied
Solved

How do I create localized dropdowns with countires and cities?

2
General
Hi, I want to create a webpage (localized) with venues that have address (geocoded) and than search them by dropdowns/search field(autocomplete) in the area of X miles/km around location, so that ...
Casey Morris replied

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

Rails + Javascript question

1
Rails
Hey guys, I have an app for generating orders containg products. I'm currently using a “cart” through table that helps me connect both orders and products. I would like to have a list of product...
pupdogg replied
Solved

Webpacker requires Node.js >= 6.0.0 and you are using 0.10.30

3
General
I've got into bit of a mess. Posted this over on SO too, but no answers of use over there. I've added Webpacked so I can install React.js. However, I think I've somehow buggered up my PATH and ba...
Simon Cooper replied
Solved

How do I tackle this 28-line scope?

2
Rails
Context: I'm working on a startup MVP that's received very little love in the way of refactoring. This has been the most complex codebase I've had to grapple with, and its been tons of fun figuring...
Chris Zempel replied

Facets with Searchkick

8
General
Great job on the Searchkick tutorial! However, I'm really interested in faceted search for an application I'm building, and the documentation on the internet is not really good enough. Any ideas? T...
Simon Cooper replied

Refile S3, presigned, multiple files + Cloudfront - generating images via javascript

8
General
Hello, I have followed along with both videos, but have come up with a little issue while attempting to generate a thumbnail within the success event. It seems to be automatically requiring the to...
Dean Fields replied

How to use jQuery & jQueryUI with Esbuild Discussion

16
General
If we're not using jQueryUI or any library that depends on jQuery, then are these lines enough by themselves? window.jQuery = jquery; window.$ = jquery;
Alex replied

Best Rails error monitoring software ?

7
General
Hi , I am working on a legacy application. I would like to add error monitoring tool for this application. It uses delayed job and other gems. I think Airbreak is the good one. Plese let m...
Solved

Writing an ActiveRecord adapter

0
Rails
Since none currently exists, I'd like to write my own ActiveRecord adapter for the Immudb database. However, I've been searching for a while online and can't find any good resources on how to write...
DEEPAK KUMAR posted

Sharing on social network

17
General
What is the best way for the visitors of my page (not logged in) to share models data (for example articles and courses) on Facebook and Twitter. I have been looking for an answer without really fi...

Go Rails Youtube videos not loading

2
General
Hey @Chris, getting a playback error on the youtube player vids. Message templates vid is an example, there were some Shrine ones that weren't working either.
Solved

Want to stay up-to-date with Ruby on Rails?

Join 91,129+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.