similar to: Issue: "ActiveRecord Hstore bug: can't update a key in the hash"

Displaying 20 results from an estimated 10000 matches similar to: "Issue: "ActiveRecord Hstore bug: can't update a key in the hash""

2009 Mar 25
6
Hash with key and value from ActiveRecord?
Heya, I think I have thinking barrier. I just want a simple hash out of an ActiveRecord. @attributes = Attribute.find_all_by_character_id(@character).hash { |u| [u.name, u.value] } and I would like to access it like @attributes[:health] but it doesn''t work. Anyone can help me out with that? -- Posted via http://www.ruby-forum.com/.
2011 Feb 08
4
Remove ActiveRecord::Relation#& alias for 'merge' ? (or at least only reference and not use in AR)
Would the core team be open to the removal of the ''&'' alias for ActiveRecord::Relation#merge? The reason is that in Ruby the ''&'' operator refers to an intersection of two sets of data, not a merge. (within the context of the Array class) Recently Arel added support for SQL Set Operators: 2-0-stable:
2012 Aug 24
3
ActiveRecord storing arrays and hashes
Hi, When trying to store a Array or Hash to a string field, ActiveRecord automatically serializes them to yaml. If that''s so why is there a special option called serialize? -- Azhagu Selvan http://tamizhgeek.in -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to
2007 Aug 12
0
ActiveRecord with only a primary key
Hi, ActiveRecord does not currently support tables that have only a primary key. This seems to be a needed feature as evidenced by the tickets: http://dev.rubyonrails.org/ticket/6187 http://dev.rubyonrails.org/ticket/6319 http://dev.rubyonrails.org/ticket/7877 The update case is easily fixed by just not running the query when there are no columns to update. But the create case is problematic
2008 Aug 05
1
[LLVMdev] Contributing to LLVM
On Tuesday 05 August 2008 03:27, Bill Wendling wrote: > On Aug 4, 2008, at 10:29 PM, Shrutarshi Basu wrote: > > Hello all, > > I'm a rising sophomore CS/Engineering student in the US and I'm > > interested in programming languages/ compilers.I think the LLVM would Yay! We need more compiler people in this industry. :) This is actually a very good time to be getting
2012 Jul 26
0
Ruby on Rails version 3.1.7 has been released!
Hi everyone! Ruby on Rails version 3.1.7 has been released! This version contains an important security fix, please upgrade immediately. The security fix impacts people using digest authentication from Action Pack. You can read more about the problem here: https://groups.google.com/group/rubyonrails-security/browse_thread/thread/bf1263adcd79a983 Thank you to Charlie Somerville for
2012 Sep 13
0
Updates to const_get
HELLO other Rails-Core people! I''m trying to push changes to const_get in to ruby-core that will make our lives easier. I''ve pushed a branch of Ruby to github. Can you please check it out to make sure it does what we need? Here is the link: https://github.com/tenderlove/ruby/tree/p2c When we''re happy with the way it works, I''ll do the work make sure it
2013 Oct 16
2
Ruby on Rails 3.2.15 has been released!
Hi everyone, I am happy to announce that Rails 3.2.15 has been released. This is a bug fix release and includes 56 commits. This release also contains one security fix that you can read about [here](https://groups.google.com/forum/#!topic/ruby-security-ann/yvlR1Vx44c8). Users are encouraged to upgrade as soon as possible. ## CHANGES since 3.2.14 To view the changes for each gem, please read
2012 Jul 05
2
Addition to has_many - a ':source_scope' option
Was looking to work on a small addition (to has_many) which will be useful to me and others alike. A few technical details about the addition: Basically wanting to have something like, has_many :subscribers, through: :subscriptions, *source_scope:* :deleted We currently have to do this in our code as, has_many :subscribers, through: :subscriptions, conditions:
2013 Jan 08
3
[SEC] Rails 3.2.11, 3.1.10, 3.0.19, and 2.3.15 have been released!
Hi everybody. I''d like to announce that 3.2.11, 3.1.10, 3.0.19, and 2.3.15 have been released. These releases contain two **extremely critical security fixes** so please update **IMMEDIATELY**. You can read about the security fixes by following these links: * [CVE-2013-0155](https://groups.google.com/group/rubyonrails-security/browse_thread/thread/b75585bae4326af2) *
2007 Dec 10
3
Road to 0.7.0
Hey everyone, I''ve been refactoring Mechanize for an 0.7.0 release. Basically I''m trying to clean the code up and there are a few features that I think are unnecessary, but I would like to ask people first. 1) REXML as a parser. I want to remove support for REXML. I don''t use it. Hpricot seems to do everything I need. 2) 1.8.2 thru 1.8.4 support
2004 Aug 10
1
date axes and formats in levelplot
Hi all (and particularly Deepayan), A while back Deepayan helped me with the query in the text below (thanks again). Specifically it was about changing the way that dates plotted on the axes of lattice plots. While this works using xyplot, everything comes apart when I use levelplot. The axis labels on the date axis are shown as the integer representation of the date (number of seconds since
2006 Jun 01
3
Newbie: HABTM problems
I''m new to RoR and trying to make a HABTM relationship work. I have no problems with displaying the fields (after I pumped the data into MySQL manually outside of RoR), but when I try to edit a record, it =does= save the changes in the primary record, but =not= the join table. When I look in the development log, I see the update to the main table, but nothing about the join
2006 Jun 18
1
Put an arbitary hash into ActiveRecord
Did someone encountered a problem of putting a hash of values into AR, into a certain field? Essentially I need some denormalized, freeform serializable hash to which the user can add keys and values, and handle accessors from there would be lovely too. I remember that AR has "serialize" but did someone actually use it? I heard nothing but complaints about rich objects in AR
2006 Apr 18
0
activerecord(mysql) and hash to unique count
I am working with ruby(activerecord) and want to save a ''hash'' of URLs such that a key is the URL and the value points to a count of how many times it occurs after processing a csv file my question; all I know of is right now is to attempt to save, get a unique error and then when handling the exception increment the hash value (really a column in a table) Is this bad? Or
2006 Mar 27
1
Is there a way to persist a Hash in ActiveRecord?
I can''t seem to figure out a way to persist a hash attribute in ActiveRecord. Let''s say I have a Game, which has a many-to-many with players. Each player has an index, but the array can have empty spaces in it (since a game might not be filled up yet). I''d like to model this using a hash, with position --> player mapping. (What I don''t want to do is
2004 Aug 06
0
Re: WinXP and Mac OS X Server PDC: long logout times (RESOLVED)
On Aug 6, 2004, at 3:56 PM, Bog Patterson wrote: > ? To work around this issue, edit the smb.conf file, adding the > following > line to the "[global]" section: > > socket options = TCP_NODELAY SO_RCVBUF=64240 > > http://docs.info.apple.com/article.html?artnum=107838 > > Bog Patterson, Network Administrator Appears to be working so far. I'll have to
2004 Sep 10
0
Altivec, automake
OK, checked it all in (only minor modifications: I used the existing FLAC routines for allocating aligned memory). on a side note, I got the Project Builder stuff all working again. still have to figure out how to integrate assembly compilation though. Josh --- Brady Patterson <brady@spaceship.com> wrote: > > Here's what I listed in that email. Merging doesn't appear to
2004 Sep 10
0
Altivec, automake
good news, I finally got the asm compilation working with both autotools and project builder. it's all checked in. Brady, can you try it out too? autogen.sh may need a little tweaking depending on your environment. here's what mine looks like (I have some of the required libs in local places in the user acct that I build flac in, and the rest I get from Fink installed in /sw). aclocal
2006 Jul 09
3
Verify hash key in hash in params hash
Hi, how can I use Rails ActionController::Verification#verify :params when the hash key is in a hash? E.g.: params[:form][:textfield] and I want to verify that :textfield is a key in params[:form] Thanks Markus