SQL for search
2
General
Hi Chris,I had a question, solved it, now I'm looking for your feedback. For readability I use `a` in the example below:a = params[:query]
Item.where("name ILIKE ? OR tagline ILIKE ? OR details ILI...
Joe Guerra replied
Solved
Should Categories be it's own resource or model attribute?
4
Databases
Hey guys, I have a question on database design. Say I have a Post model that has/belongs to a category (out of about 20 categories or so). I am thinking of two options that have their own meri...
Ariff Munshi replied
Solved
Having a little problem running the 'rails server' command...
0
Rails
Hi there,I'm new to the whole programming and I'm trying to figure out why I can't seem to run the 'rails server' command if anyone can help me out that would be cool. The code below is what I get ...
Codesaurus1 posted
Solved
How do I ajax query (select) on a huge number of records (zipcodes)?
4
Javascript
Spaces-are-not-working-in-wysiwyg-editor-but-the-question-from-above.
Brandon Buteaux replied
Solved
How do I charge a user to create a post using Stripe?
3
Rails
It's been surprisingly difficult to find more information on creating one-off, or single charges for a user.Currently I am making a job board where anyone can browse listings, and a user (Devise) h...
Taylor Cooney replied
Solved
Best Method For User's Dashboard?
1
Rails
Hi, I am looking for advice on the best way to organize a dashboard to show the user various information from across different models. I was considering just generating a DasboardsController, ...
Kevin Vanzandberghe replied
Solved
How do I put a live time(seconds) counter on a page?
1
Javascript
As in it should go 00:00 .. 00:05.. 00.49 ..15:55 to whatever. Wondering how to do this on the front-end.Should I just use jquery? Or something else? Any suggestions?ThanksArjun
William Kennedy replied
Solved
How do I send send a erb template as a string in a json response?
1
Rails
I have a page editor that shows the user a live preview of their changes as they make them, but I’m having trouble working out how to do this with erb templates.In my previous non rails version, I ...
Jacob Montgomery replied
Solved
Webpacker error from Vue.js Trello Clone Series
4
Rails
Hey all, I have an error that I just can't get to the bottom of. While going through the awesome Vue.js Trello Clone tutorial I started seeing this:(Webpacker can't find application.css in /trello-...
Matthias Orgler replied
Solved
Conflict between Chartkick gem and Trix Editor
1
Javascript
I'm getting an error on pages that use chartkick (both highcharts and chart.js) due to the Trix Editor. Everything works fine but the error being thrown concerns me.Anyone have thoughts?Error with ...
Trevor Owens replied
Solved
New server failed provisioning
2
Servers
Hi Chris, please assist with the following error;Your server failed provisioning!Server logsRegion is not available
Make sure you haven't crossed your Droplet limit on Digital Ocean already!
Chris Oliver replied
Solved
'bcrypt' gem install Error
3
Rails
So, I was attempting to install the gem 'bcrypt' and I received the following error:Installing bcrypt 3.1.11 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension...
William Kennedy replied
Solved
Condition if devise action view
3
Gems / Libraries
Hi everyone,I am struggeling with finding out how to add a condition to hide my navbar partial if user is currently in one of the devise views. For example if user is currently in devise sessions n...
Jacob Hedengren replied
Solved
How to generate these episodes applications Scaffold used by Chris?
3
Rails
I would like to know if there is any guide that shows how to generate this initial Scaffold of the application (with device, gravatar, bootstrap, all configured to start a new project quickly), lik...
Alisson Patrick replied
Solved
How do I do upserts and/or conditional saves?
3
Ruby
I have an external API that I am parsing and saving to the database via a scheduled job and I am having trouble working out how to:A: How to only save the parsed object if it has changed.B. How to ...
Jacob Montgomery replied
Solved
Using Webpacker and Rails on AWS Elastic Beanstalk
10
General
Can anyone point me in the direction of documentation/tutorial for using Webpacker with Rails on Elastic Beanstalk? I have been playing with Tailwind CSS (which is great btw), and I'm getting a ver...
Simon Cooper replied
Solved
How do I access files on server with a cron or similar ? (outside of app)
17
Rails
Hi everyone, i'm a bit new to rails and i'm searching for help.I have a rails app where I receive a zipfile on my server (outside of the app, homedir of new FTP user).Then I want to unzip the files...
Jacob Montgomery replied
Solved
Rails bootsnap-compile-cache and other files all of a sudden appears
2
Rails
Hi everyone,I am a bit confused; whether I am using Rails 5.1.4 or upgrading to 5.2.0.rc1 (Ruby version is 2.5.0) a lot of new files have all of a sudden appeared in my apps and I am unsure of the ...
Jacob Hedengren replied
Solved
Check if class was instantiated and instance method was called
1
Testing
Hey guys! I'd like to figure out a way to test piece of code that suppose to create an instance of particular class. Here is an example:
``` ruby
class Subject
def call
...
end
end
class ...
Alex Musayev replied
Solved
Setup for roles and authorization
7
Gems / Libraries
Hi all!
This is my first question for the community. I'm super excited to be here and hope to be answering a few of them myself as well.
I'm working on a rails project where people can work on a ...
Jacob Montgomery replied
Solved