Search Results for "how-do-i-update-category_id-of-article"

Lessons





















Forum Threads

How do I display several posts in related "weeks"

17
General
I would like to structure my blog so that I can assign posts I have created with Trix and Shrine to weeks. I want to have 12 teaserboxes on my index page which can then be clicked and if I click o...

Routing for Admin area not working

3
Rails
I've got an application that makes use of an admin area for managing Articles on the frontend. Its a simple CRUD app where pretty much everything Admin related is namespaced and inside admin folder...
Solved

How do I add Ransack in my posts controller?

11
General
I am new to rails so this might be an easy question. I am trying to figure out the best way to add ransack to my posts index action. # Ransack @q = Post.ransack(params[:q]) @posts = @q.result(di...
Chris Oliver replied

video about sortable lists

21
Rails
Hi, I'm not sure if this is the right place to post this issue, but I'm looking for a way in my Rails app to reorder items by drag and dropping. I tried to implement the solution by Ryan Bates in...
Chris Oliver replied

How can I grow this search object?

6
General
I've got a domain object I use to search images by whatever tags it has/the year the item in the image was made. It's worked flawlessly in a couple places: ```ruby class SearchImage def initial...
Chris Oliver replied

Validation Errors Not Showing in Views

1
Rails
I have an app where I got the CRUD functionality working and I added some AJAX to learn how to use it. I changed a class to use AJAX for the delete, edit and show views from the index view. That ...
Drew replied

How do I get redirect to view after create action using Vue.js

12
Javascript
Out of interest, have a weird issue. Trying to do a redirect after create. The record is being created just fine, but get a 500 error on the redirect? Using an ajax call using Vue-resource. Below...
Chris Oliver replied

Geo-spatial Search with Geocoder and Google Maps Discussion

14
General
Awesome episode! Really enjoying the maps and geolocation episodes!Thanks, Chris!
Amanda replied

Dynamic Select Fields in Rails with Hotwire Discussion

19
General
If I'm reading this error correctly does this mean the url value and param value are not being pulled from the data fields? GET "/undefined?undefined=Head&target=muscle-table"
chloetakahashi replied

Forum Series Part 3: Nested Attributes and fields_for Discussion

29
General
What do you think about using ActiveForm? https://github.com/rails/ac...

How can I solve it?

10
General
Hello guys I have a problem with this! I'm making my website where user can give feedback to my projects, contact me and make comment to a blog_post. The problem is when i make the render 'blog_p...
Federico Calarco replied
Solved

Question regarding creating new items with belongs_to association!!

0
General
Hi, I am completely new to Rails and would like some help. I am trying to implement a to-do list using Rails as my backend and React as my frontend. Initially, I created a model and controller that...
MasonLogan posted

How do I update a model with has_many :through association in grouped_collection_select

0
Rails
I have the following models: ``` class User < ApplicationRecord self.table_name = 'user.users' has_many :user_sources has_many :sources, through: :user_sources, foreign_key: :source_code e...
MH posted

How do I get bin/rails app:template LOCATION=.. to actually work? (rails template with existing app)

7
Rails
I remember Chris mentioning in the "Rails Application Templates" video that he was covering only templates for new rails apps because applying templates to existing apps is "complicated." I'm begin...
Jeff Helman replied

How do I build conditional form fields?

4
General
I'm trying to build a form which contains categories and subcategories. The desired effect is to display the subcategories field or the relevant subcategories depending on the category that has bee...
Charles Fonlupt replied

How to install Tailwind CSS using Webpacker with Rails Discussion

28
General
Nice addition to GoRails episode list. Would love to see more TailwindCSS with Rails videos. Also thanks for plugging your laptop power in...I was starting to panic :D
Mostafa Ahangarha replied

How do I extend enum method?

0
Rails
Is there a simple way to either extend the enum methods OR to override the current bang method? I have a lot of enum statuses that I update with bang. However, the rails enum bang method is writt...
Amie Walton posted

How do I update a page (a row on a table) dynamically?

1
Rails
I have a page which displays all the products in a shop. Each time a new product is added - two things happen. 1) The user is taken to the products/index page which shows a list of all the produc...
Chris Oliver replied
Solved

How do I update Ruby/Rails ?

1
Ruby
Hello, I have a project running with ruby v 2.6.1 and I would like it to work with 2.6.3 . How do I upgrade ruby and rails versions? Thank you
Rajan Bhattarai replied

How do I update Rails to 5.2 without having any issue ?

0
General
Everything is in the title, except the current version I'm working on : ``` gem 'rails', '~> 5.1.6' ``` Thank you for your help
Damian Nelwep posted