Expand my Community achievements bar.

External Authentication - Rails Sample

Avatar

Level 2

Hi,

What part of the code in the external authentication rails sample displays the simplechat and userlist as shown below.  I would like to tweak it.

_extauth.jpg

Thanks

6 Replies

Avatar

Employee

The sources are in the folder named flex

Sent from my iPhone

Avatar

Level 2

Raff, how does it call what is in ExternalAuthentication\Flex\Flexternal.mxml?  I copied the Rails folder to a different location, compiled and it runs fine without the Flex folder.  Can you explain?

Thanks

Avatar

Employee

If you look in the public folder (rails/public) you'll see a file Flexternal.swf, that is a prebuilt version of that code.

Avatar

Level 2

I thought the public folder is for default Rails welcome and error pages.  Anyway if you are right then how do you edit the compiled swf file? .

Thanks

Avatar

Level 2

I got you.  I will edit Flexternal.mxml in the flex folder using Flash Builder, compile then copy the new .swf file into the public folder.  Does that sounds right?

Thanks

Avatar

Employee

Just out of curiosity how much do you know about Flex and/or Rails development ?

In Rails you put your "assets" in the public folder (and SWF files are "assets" for what concerns rails).

If you want to make changes to the SWF file you make your changes in the mxml file, compile it and drop the new SWF into the rails app.

This is just an example of using external authentication, not a real world application so there isn't a full "build system" in place that does everything for you.