Thanks for the response. I have been upgrading the same application
since the Ruboss days, and I haven't ran a generator or updated my
model.yml file in a while. I could, but I guess I am more wondering
if it makes sense for rendering fxml, the server can send fields that
are not model properties in flex, but for amf every field sent needs
to have a corresponding model property. If that is true, is it
recommending to filter on the server end, or add the properties to
flex. Also Am I doing something wrong here?
Thanks.
On Jan 19, 8:21 am, Dariel Subiros <
dsubi...@gmail.com> wrote:
> Hi Larry:
>
> I think you could check your model.yml and then re-run script/generate
> rx_yaml_scaffold again.
>
> When running this generator, read the questions it asks and say n for every
> rails/flex file-group except for the class you need to update, and say y. Of
> course, if this is the first time you do it, create a backup of your whole
> project.
>
> A beautiful feature restfulx generators have is this, it asks which you want
> to skip/overwrite, so you could update your model.yml every time you
> want(eg.: to update a model by adding/changing/removing a field).
>
> A last thing, although this is or not your first time re-running this
> generator, always create a backup at least of the flex/rails files from the
> model which you want to update if you want to keep any change in the files
> you've done before; so backup the files, run the generator and then write
> back by hand the changes you want to keep from the old file to the one you
> want setup.
>
> Hope this helps.
> Dariel
>
> On Tue, Jan 18, 2011 at 8:09 PM, Larry Erickson <
larry.erick...@gmail.com>wrote:
>
> > Trying to upgrade rails/flex applicaton from fxml to amf using
> > 1.3.1. My models currently have many attributes that rails knows
> > about, and flex does not. When rendering fxml that does not seem to
> > be a problem, but now that I have switched to amf I get an error for
> > every attribute I do not have defined in a flex model. Such as
>
> > ReferenceError: Error #1056: Cannot create property photoFileName on
> > railpro.models.User.
>
> > Does this matter? Should I fix it? If so how?
>
> > I am guessing I could just filter out what is needed on the rails end,
> > or add all attributes on flex end. Perhaps there is a better solution,
>
> > Thanks,
>
> > Larry
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "restfulx-framework" group.
> > To post to this group, send email to
restfulx-...@googlegroups.com.
> > To unsubscribe from this group, send email to
> >
restfulx-framew...@googlegroups.com<
restfulx-framework%2Bunsu...@googlegroups.com>
> > .