Search code examples
ruby-on-railsrubyapache-flexmodel-view-controllercairngorm

how does cairngorm+flex integrate with rails?


I mean, the mvc for cairngorm and the one in rails don't overlap their functionalities? I'm not sure I understand the need for cairngorm with the rails backend..


Solution

  • There is no need, it's an option, Cairgorm see's the whole Rails as a model. Rails send xml instead of html so no browser-css-details headaches.

    You can use rails as a REST layer and put your business logic in flex.

    You can use cairgorm as a candy cover over a complex but well tested rails application.

    You can find middle of the way solution that suits to you.

    We do implement most business logic in rails but use flex/cairgorm to show each user only the right buttons/forms/controls to her task, and to do it in a nice browser-independent way.

    Hope this helps you, feel free to ask any detail