Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 167033
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T12:12:11+00:00 2026-05-11T12:12:11+00:00

We are working on a project that uses Flex and rails with WebORB .

  • 0

We are working on a project that uses Flex and rails with WebORB. Everything was fine and dandy until we started tying the frontend and backends together.

We created a service for interacting with users and another for the session.

SessionService.rb

class SessionService   def view_session     session = RequestContext.get_session      if session[:user_id]       user = User.find_by_id(session[:user_id], :include => [:contact, {:roles => :permissions}])     else       user = User.find_by_username('anonymous', :include => [:contact, {:roles => :permissions}])     end      user   end end 

UserService.rb

class UserService   def register_user user     user.save      session = RequestContext.get_session     session[:user_id] = user.id     RequestContext.set_session session      return true   end end 

User.as

package com.XXX.XXXXX.vo {     [Bindable]     [RemoteClass(alias='com.XXX.XXXXX.vo.User')]     public class User     {         ...         public var roles:Array;         ...     } } 

When calling any method with Flex, everything works fine until register_user is called with an User object being passed in. The user is created and the session is updated, what goes wrong is that any method calls after this have a side effect that User.find(XX).roles[XX].skip_time_zone_conversion_for_attributes is now nil, which causes create_time_zone_conversion_attribute? in activerecord/lib/activerecord/attribute_methods.rb to fail when trying to call include? on it.

And since create_time_zone_conversion_attribute? is called when method_missing is called, direct access to any attribute causes this error. This wouldn’t be a problem except for the :include => [..., :roles...] which causes the roles to be serialied into AMF and when it tries to serialize the attributes, it bombs out.

From what I gather in attribute_methods.rb, it should not be possible to change skip_time_zone_conversion_for_attributes in an instance (Role.skip_time_zone_conversion_for_attributes = [], as it should be) but I have a feeling that WebORB is bypassing this and forceibly changing it to be nil.

We have switched to passing non model classes, but this is not what we want.

Would it possible to find out what code in WebORB is changing skip_time_zone_conversion_for_attributes for all instances of a model but not the model class itself?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T12:12:11+00:00Added an answer on May 11, 2026 at 12:12 pm

    We had the same problem, the only solution we found was to not pass Flex objects to Rails that have associations.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So I am working on a project that uses a ASP.NET server and we
Working on a project that uses some IronPython scripts to as plug-ins, that utilize
I am working on a project that uses the asp.net ajax control toolkit and
I'm working on a project that uses an MDI application with a navigation panel
I'm working on a project that uses MSTest for unit testing and I need
A plea for help! Can anyone share a simple GWT2.0 project that uses the
We're working on a Flash CS4 project where the main .fla file has ballooned
I have the following two projects in in Flex Builder 3: One AS3 library
Is there an easy way to build projects created in FlexBuilder via the command

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.