Amin Shah Gilani
1 min readNov 1, 2018

--

Hi Kyle

>What does NOT work, however, is updating the slug. I can only assume this is some kind of Rails safeguard but I can’t seem to find anything when searching Google about it.

Unfortunately, that’s not how overriding a getter works, there’s likely a simpler explanation.

>When I send an updated set of params to my controller’s update action, every parameter is updated EXCEPT for the slug.

This tells me that the model is either not receiving the param, or ignoring it. Have you permitted the param in your controller?

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Amin Shah Gilani
Amin Shah Gilani

Written by Amin Shah Gilani

Founder. Developer. Spaces over tabs. Atom over your favorite X.

Responses (1)

Write a response