Created
May 16, 2011 15:04
-
-
Save railsfactory/974604 to your computer and use it in GitHub Desktop.
getting mirah code to work on play framework
This file contains 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
package controllers; | |
import play.*; | |
import play.mvc.*; | |
import java.util.*; | |
import models.*; | |
# # original java code which works | |
#public class Apple extends Controller { | |
# | |
# public static void index() { | |
# String name = "Senthil"; | |
# render(name); | |
# } | |
# | |
#} | |
class Apple < Controller | |
def index | |
name = "Mirah" | |
render(name) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment