# Facebook app Layout recommendations?

**URL:** <https://www.ruby-forum.com/t/facebook-app-layout-recommendations/127164>\
**Category:** Rails\
**Created:** [January 25, 2008, 5:44pm UTC](https://www.ruby-forum.com/t/facebook-app-layout-recommendations/127164 "2008-01-25T17:44:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ss\_1982](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/96bed5/32.png) [@ss\_1982](https://www.ruby-forum.com/u/ss_1982)\
**Post date:** [January 25, 2008, 5:44pm UTC](https://www.ruby-forum.com/t/facebook-app-layout-recommendations/127164/1 "2008-01-25T17:44:46Z")

</div>

Hi,

I am about to start work on a new facebook app that will integrate with  
an existing site.

Has anyone got any recommendations / experience with doing this and  
suggestions on the best way to lay the code out.

i.e. Do I either:

- Create alternative views that end in .fbml.erb and use the respond\_to  
block to render these
- Create a spate namespace and put fresh code in this directory (e.g.  
app/controller/facebook)  
Any other suggestions?

Thanks  
scott

---

<div class="post-metadata">

**Author:** ![ss\_1982](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/96bed5/32.png) [@ss\_1982](https://www.ruby-forum.com/u/ss_1982)\
**Post date:** [January 25, 2008, 7:33pm UTC](https://www.ruby-forum.com/t/facebook-app-layout-recommendations/127164/2 "2008-01-25T19:33:06Z")

</div>

I have no experience on this matter but I would go with the respond\_to  
approach. I mean, why duplicate code unless you absolutely have to.

On Jan 25, 8:44 am, Scott A S [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
