Sha256: 2071a53b1beee0412947cdd052b191a575a1f3596f8825598a7d929d94d1906a
Contents?: true
Size: 861 Bytes
Versions: 3
Compression:
Stored size: 861 Bytes
Contents
import com.google.appengine.api.datastore.Text import com.google.appengine.ext.duby.db.Model import com.google.appengine.api.datastore.* import java.util.HashMap import dubious.* import models.* class Shout < Model property 'title', String property 'body', Text end class ShoutController < ActionController # GET /shout def doGet(request, response) @shouts = Shout.all.run @page_title = 'Shout' @page_content = list_erb response.setContentType("text/html; charset=UTF-8") response.getWriter.write(main_erb) end # POST /shout def doPost(request, response) shout = Shout.new shout.title = request.getParameter('title') shout.body = request.getParameter('body') shout.save doGet(request, response) end def_edb(list_erb, 'views/list.html.erb') def_edb(main_erb, 'views/application.html.erb') end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
dubious-0.0.2-java | examples/shout/app.mirah |
dubious-0.0.1-java | examples/shout/app.mirah |
dubious-0.0.0-java | examples/shout/app.mirah |