This repository has been archived on 2024-10-25. You can view files and clone it, but cannot push or open issues or pull requests.
Sequenzia/public/index2.php
2013-10-26 18:06:58 -05:00

66 lines
1.5 KiB
PHP
Executable File

<?php
// echo preg_replace('/^(.*?\d+ .{50}\S+)(.*)?/', '\1', 'abc 234 tag_1 tag_2 tag_3');
// require __DIR__ . '/../config/boot.php';
// $q = Post::where('id < 1000')->limit(10)->take();
// $m = Post::where(['width' => 1000])->where("user_id = ?", 4)->take();
// vpe(Post::find(1));
// vpe($m);
// vpe($q);define('RAILS_ENV', 'development');
require __DIR__ . '/../config/boot.php';
set_time_limit(0);
JobTask::execute_once();
exit;
?>
<!doctype html>
<html><head>
<script src="/assets/application.js"></script>
</head>
<body>
<a href="/dmail/mark_all_read" data-method="post">AAA</a>
<script>
// Comment = Backbone.Model.extend({
// defaults: {
// body: "",
// creator_id: null,
// creator: null,
// post_id: null
// },
// sync: function(method, model, options) {
// if (method == "update")
// options.url = "/comment/update/" + this.get("id") + ".json";
// return Backbone.sync(method, model, options);
// },
// toJSON: function() {
// return {comment:this.attributes}
// },
// urlRoot: function() {
// if (this.isNew()){
// return "/comment";
// } else {
// return "/comment/show.json/";
// }
// }
// })
// Comments = Backbone.Collection.extend({
// model: Comment,
// url: "/comment.json"
// })
// var c, cs;
// cs = new Comments();
// cs.fetch();
// setTimeout(function(){
// c = cs.models[0];
// c.set("body", "hey~~");
// }, 300)
</script>
</body>
</html>