Mapping service names (rails3-amf)

17 views
Skip to first unread message

Lyle Underwood

unread,
Feb 9, 2011, 8:05:27 PM2/9/11
to rubyamf
Hey again,

Right now if I have a rails3-amf controller called UserController then
in flash I have to specify UserController as the service name. Is
there some way I can map a new service name to UserController? If
there's a syntax to do this with config.rails3amf.map_params then I
can't figure it out.

Thanks,
Lyle

Mark W. Foster

unread,
Feb 9, 2011, 9:24:11 PM2/9/11
to rub...@googlegroups.com
Lyle:

I do not believe rails3-amf has that functionality. Stephen would be the
authority on that, but I believe parameter mapping only maps parameters for
an existing controller and action within it currently.

Out of interest, why would you use a different controller name in your flash
app?

Mark

Hey again,

Thanks,
Lyle

--
You received this message because you are subscribed to the Google Groups
"rubyamf" group.
To post to this group, send email to rub...@googlegroups.com.
To unsubscribe from this group, send email to
rubyamf+u...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/rubyamf?hl=en.

Lyle Underwood

unread,
Feb 9, 2011, 10:17:27 PM2/9/11
to rub...@googlegroups.com
I dunno! I'm not developing the flash portion. My flash partner tells
me that he basically does something like:

myWebService.serviceName = 'UsersController';

when he sets up the service, and something like UsersService would
sort of make more sense in that context I guess. Really not a big
deal, would just be nice to have. Also, are camelCased method calls
translated into under_scored action names?

Thanks,
Lyle

Mark W. Foster

unread,
Feb 9, 2011, 11:58:42 PM2/9/11
to rub...@googlegroups.com
Rails3-amf does not do case translation.
Reply all
Reply to author
Forward
0 new messages