search for: xmlserialization

Displaying 9 results from an estimated 9 matches for "xmlserialization".

2011 May 06
0
Problems with Use Case Maker
hi! im trying to run Use Case Maker in wine... and the main app open ..but doesn't let me open new ones ( like new project or stuff like that) any ideas ? (i already installed .net framework 2.0 without any problems... thanks in advance :) here is the out of wine when i run UseCaseMaker.exe .. $ wine UseCaseMaker.exe fixme:advapi:RegisterTraceGuidsW (0x79fd471e, 0x11eba0,
2007 Nov 07
1
Serialization of ActiveRecord Instances: No Inheritance Column?
Hey, I have been looking at ActiveRecord''s serialization code, and noticed that ActiveRecord::XmlSerializer#serializable_attributes purposely excludes the STI inheritance column per ``options[:except] = Array(options[:except]) | Array(@record.class.inheritance_column).'''' Is there a particular reason for this? Would anyone be opposed to my writing a patch to have this
2006 Dec 03
0
How to best change the default value of dasherize (using Edge Rails, and knowing about :dasherize => false)?
...n successfully turn off dasherize for a single usage with something like render :xml => @task.to_xml(:dasherize => false) I don''t want to have to do this in every case, of course. So, I can go ahead and add the following to my application.rb: module ActiveRecord #:nodoc: module XmlSerialization #We change the default for :dasherize, since it is never what we want. def to_xml(options = {:dasherize => false}) XmlSerializer.new(self, options).to_s end end ...etc... end This works fine. However, I also have to change the behaviour for two of the other to_xml methods:...
2007 Sep 30
1
to_xml node names with underscores
When I call to_xml on my active record objects, it replaces underscores with hypens. E.g.: <categories> <category> <content-provider-id type="integer">1</content-provider-id> <id type="integer">2</id> <name>Traffic Alerts</name> </category> </categories> When the actual field is content_provider_id. I remember
2007 Feb 15
3
Restrict attributes in to_xml
For example, let''s say I have a User model with 2 attributes: 1. pw_hash 2. pw_salt I don''t want these to show up in the to_xml method. How do I keep to_xml from using these attributes? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2011 May 12
2
Wizards Event Reporter
I've installed the following prior to the installation: .net framework 2 jet40 mdac28 The Wizards Event Reporter gives this error on launch: "The server committed a protocol violation. Section=ResponseStatusLine" The program will then launch but will not give online connectivity.
2008 Aug 28
12
Rendering User attributes in XML
Let''s say an app has a User, and a User has many friends. Also, let''s say the app authentication was built on the restful_authentication plugin, and we have email and password in the Users table. The friends controller index might look like this; # GET /users/1/friends # GET /users/1/friends.xml def index @users = @user.friends respond_to do |format| format.html
2008 Oct 01
0
Newbie:Family Tree Maker 2009 will not execute-Ubuntu Hardy
I'm new to linux so be patient. I'm running Ubuntu Hardy and have Wine 1.1.5 installed. After installing Family Tree Maker 2009 successfully, it will not execute. The screen comes up like it is going to start and says the database needs to be compacted and then the screen fades away. I decided to run FTM 2009 from the terminal and see what is happening. Obviously a lot of things.
2008 Aug 27
11
find_by_sql and xml_serializer problems
Hi, I''m doing a find_by_sql and am getting an odd error when trying to render the result to xml. The find is: children_list = find_by_sql("SELECT components.componentid, components.logicalname, versions.level, versions.branch, versions.sequence FROM components, versions where components.componentid = ''" + component_id + "''" + " AND