Skip to content

Instantly share code, notes, and snippets.

@railsfactory
Created May 16, 2011 15:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save railsfactory/974604 to your computer and use it in GitHub Desktop.
Save railsfactory/974604 to your computer and use it in GitHub Desktop.
getting mirah code to work on play framework
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