Comments (3)
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.
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.
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)
- Does hstore support array? HOT 1
- NoMethodError: undefined method `scan' for {}:Hash HOT 9
- undefined method `scan' for {}:Hash HOT 3
- [Question] Schema for extension. HOT 1
- Error when doing migration on new deploy (Schema dump style not set to sql) HOT 2
- interpolating values
- How to read an hstore as a hash (instead of a string)? HOT 2
- hstore indexes not saved to schema.rb correctly. HOT 5
- Hstore return hstore column as a string when used inside a select + join
- Always UPDATE db even if no changes
- Deserialization issue HOT 1
- Rails 4.2 Error: undefined method `simplified_type' HOT 12
- flat-Ruby usage example request (No-Rails!) HOT 1
- undefined method `scan' for #<Hash:0x007fa6f04d66f8> HOT 1
- Version 0.7.8 HOT 2
- NameError after add a gem
- undefined method simplified_type for class ActiveRecord::ConnectionAdapters::PostgreSQLColumn HOT 5
- hstore:step error with rails 5.0.0.1 HOT 1
- Does it work via Rails 5? HOT 1
- add_hstore_index options not working properly
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from activerecord-postgres-hstore.