Ruby on Rails Community Forum
Soft delete Active Text in Rails 6
0
Rails
Anyone is using Active text on a controller with paranoia?
I added Action Text to my Post to have the `content` be rich text but when I soft-delete a post the `content` is deleted. If I restore th...
majoingsw posted
Node.js not installed. Please download and install Node.js https://nodejs.org/en/download/ Error while bundle exec rake assets:precompile during deployment using capistrano
0
Rails
I already have nodeJS installed in my server. Still showing
Node.js not installed. Please download and install Node.js https://nodejs.org/en/download/
I have sprockets as well as webpacker. Spr...
Abhishek Aravindan posted
Render partial via AJAX without JQuery
9
Javascript
I've got a standard Comment.model - I'm trying to use AJAX to render partial. Using JQuery works but I'm trying to use VanillaJS only. The AJAX is working but it's rendering the markup inside of th...
Solved
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
Adding Javascript to Rails 6
7
Javascript
Hi. I am fairly new to Rails and so far I have been unsucessful at adding any JS to my Rails 6 project. I have seen many videos and tutorials but i seem to run in to the same issue. Basically I get...
Chris Oliver replied
Solved
How do i get the distance between each driver and pickup point (driver are user of thy 'driver') using the here maps api, rails app
0
Rails
With some code
elie kazad posted
Cannot add jQuery to Rails 6 projects
0
Gems / Libraries
I've been trying to make a few apps work with Fomantic UI and the gem works fine, the problem is that to use calendars and modals you need jquery... No probs, I added that by following [this](https...
Nelson Casanova posted
Date Picker for Rails App
1
Rails
HiWhat would be the recommended data picker for my Rails app?Seem to be a lot of options but many haven't been maintained in a while.Thanks
Abhinay kumar replied
Webpack Bundle Analyzer Discussion
2
General
Cant wait for the split chunks episode!
Marc Köhlbrugge replied
Searching and partial keyword matches
1
Site Feedback
Hi Chris,
I was searching for the Tailwind + Rails 6 video today, but searching for "Tailwind" did not return it:
https://gorails.com/search?q=tailwind
I eventually did find the episode here:
htt...
Chris Oliver replied
Stimulus JS Twitter UI: Part 2 Discussion
20
General
Great content, as always. An idea for another Stimulus screencast: reimplementthe 'Using VueJS for Nested Forms in Rails' series in Stimulus.
Michael Yagudaev replied
How do I create a delete button for images uploaded with Active Storage
2
Rails
I am creating a user interface for users to upload images and delete ones they've already uploaded. It is using Rails 5.2 Active Storage and Amazon S3.
The issue I am experiencing is similar to t...
Dmitriy replied
Solved
Autosave Draft Records - Part 2 Discussion
0
General
great lesson, but if the model has validations? or nested models?
Fabio posted
How do you save draft records with ActionText?
0
Rails
I saw Chris's episodes on autosaving draft records with draftsman, but the gem is a bit outdated now. It hasn't been updated in over 2 years and the highest supported version is rails 5.2. Has anyo...
raguila8 posted
simple_discussion https: ?
1
Gems / Libraries
Hi Chris,
Thank you for publishing the simple_discussions gem. It was exactly what I need for a project I am doing!
I just deployed a barebones start to this project to AWS Elastic Beanstalk. I se...
Christopher Andersson replied
How I can include a camp in form for capture a photo and save in my database in Mongodb. Rails 5. Ruby2.5.1.
0
Ruby
Hello I have a scaffold with many inputs of datas of patients and now I need add a camp for take a photo with webcam and save a photo when the patients go save your datas profile save a photo along...
Thomaz Wanderbruck Schmidt posted
How do I show a query result in browser in excel/sheet style?
0
General
In our application we generate several reports. Instead of downloading them as Excel or CSV want to render them similar to Excel/Google sheet
anyone any ideas what the best approach is?
Peter vande Put posted
Solved
How to create a button with a file upload action
1
Rails
I've got a form where the user is allowed to import a spreadsheet. Currently the part for the user to select the file looks like:
<%= form_tag import_clearance_crews_path(@clearance), multi...
Chris Oliver replied
Question about twitter clone
1
Rails
Hello. I’ve been seeing a few tutorials on twitter clones and I was thinking of trying one. With my idea, instead of following people, I would like it so users can follow hashtags. Is that even pos...
Chris Oliver replied
Solved
How come so many solutions to solving layout problems are just: put <div> wrappers around your <divs>
1
General
I'm just a noob, but feeling layout frustrations. CSS is so 'artsy' to me, in that there's 30 ways to do everything, but none of them actually work unless you've aligned the stars correctly.
Prett...
Damiangage replied