GithubHelp home page GithubHelp logo

Comments (3)

activestylus avatar activestylus commented on June 13, 2024

UPDATE

The attributes are actually stored in the database. The Rails form helpers are simply failing to display them in the inputs. My guess is that its because it's calling them as methods instead of hash keys (data.seo_title vs data[:seo_title])

from activerecord-postgres-hstore.

activestylus avatar activestylus commented on June 13, 2024

Yep, that is definitely it. I had to specify the value for each of my inputs like so value: site.data['seo_page_title']

Not a crucial thing really - although it would be pretty sweet to have these attributes Just Work without any manual fussing.

from activerecord-postgres-hstore.

diogob avatar diogob commented on June 13, 2024

Sure, this behaviour seems interesting, but it seems to me that it belongs to and extension of the form helper. IMHO the goal of this gem is only to provide the low level interface to hstore field type, anything related to more sofisticated manipulation should be another gem or in some extension of this gem.

from activerecord-postgres-hstore.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.