Created
July 14, 2010 21:28
-
-
Save workmad3/476111 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def index | |
| @filialen = Filiale.all | |
| respond_to do |format| | |
| format.html # index.html.erb | |
| format.json { render :json => @filialen} | |
| end | |
| end | |
| class Filiale | |
| def as_json | |
| {:include=> :filiale_images} | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment