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

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...
Anthony Candaele 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

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 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

How do I update?
1
Rails
So, I'm following a YouTube video trying to create my first Blog. See the following link, at minute 13:50, https://www.youtube.com/watch?v=YCJqAZ--Sd8. I'm attempting to do ...

How Do I Update Rails Servers from another Rails Server?
1
Servers
I have a Rails Server A in Country A, Rails Server B in Country B, and Rails Server C in Country C, all using Devise and Omniauth.A user can sign up in all 3 servers. But when he logs in to Server ...
Chris Oliver replied

How do I update value from one scaffold with the value of another scaffold?
2
Databases
I'm doing a project that contains a stock, I first created the stock scaffold like this:
```
rails generate scaffold stock name:string amount:float kind:string
```
And then a stock_flow scaffold ...
Tatiane Stivelman replied
Solved

How do I Update a child object, while Creating a Parent object with Fields_for
0
Rails
I currently am creating an object with jQuery file upload, and than inserting a fields_for into the form with the new object.
However, I am unable to update the existing object while creating the...
Logan Houston posted

How do i update an attribute for belongs_to association when scraping a site?
5
General
So pretty much a `anime` belongs_to :season and a `season` has_many :animes.
I'm scraping a site and i'm collecting the season like "Spring 2015". I want to be able to assign "Spring 2015" to a ani...
Chris Oliver replied
Solved

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

Updating Nested Form / Model Attributes
1
Gems / Libraries
I have a nested form on a Devise signup page. The user signs up and then they also fill out their company info (Name , Address etc.). My User and Company model are associated through a Role model...
Chris Oliver replied

Setup MacOS 10.14 Mojave Discussion
19
General
Is anyone else receiving errors with MacOS 10.14 Mojave and the Mysql2 gem? I'm also getting a "Library not loaded: libssl.1.0.0.dylib (LoadError)" error when executing "rails server".
Thanks!
Kemble Hildreth replied

Setup Ubuntu 14.04 Trusty Tahr Discussion
237
General
thnx
Someone replied

Deploy Ubuntu 18.04 Bionic Beaver Discussion
77
General
Thanks btihen! I'll get the tutorial updated for its changes shortly!