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
def create | |
@comment = @article.comments.create(params[:comment]) | |
if @comment.save | |
redirect_to @article, :notice => 'Thanks for your comment' | |
else | |
@comment.destroy | |
render "articles/show" | |
end | |
end |
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
<section> | |
{if $can_start_checkout} | |
<a class="submit" href="{$html_url}">Continue Shopping</a> | |
<a class="submit" href="{$secure_html_url}index.php?page=checkout">Proceed To Checkout</a> | |
{$placeholder_after_proceed_to_checkout|smarty:nodefaults} | |
{* Note: You can start checkout using Google Checkout *} | |
{if $google_checkout} | |
<a href="{$secure_html_url}index.php?type=bare&page=google_checkout"><img src="https://checkout.google.com/buttons/checkout.gif?merchant_id={$google_checkout_username}&w=160&h=43&style=trans&variant=text&loc=en_US" height="43" width="160"></a> |
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
<form> | |
<fieldset> | |
<legend>Your details</legend> | |
<ol> | |
<li> | |
<label for='name'>Name</label> | |
<input id='name' name='name' type='text' placeholder="First and last name" required autofocus> | |
</li> | |
<li> | |
<label for='email'>Email</label> |
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
mysql> desc items; | |
+-----------------------------------+-----------------------------------------------------------+------+-----+-------------------+-----------------------------+ | |
| Field | Type | Null | Key | Default | Extra | | |
+-----------------------------------+-----------------------------------------------------------+------+-----+-------------------+-----------------------------+ | |
| id | bigint(20) unsigned | NO | PRI | NULL | auto_increment | | |
| parent_id | bigint(20) unsigned | YES | MUL | NULL | | | |
| sku | varchar(50) | NO | UNI | NULL | | | |
| store_price | d |
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
emergency | |
Description | |
Exception (SQLException) - Could not execute query [Native Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '2112,2114,2139,2141,2142,2143,2144,2145,2151,281,296,298,300,315,326,327,343,344' at line 1] [User Info: SELECT item_id,category_id FROM items2categories WHERE item_id IN (,2112,2114,2139,2141,2142,2143,2144,2145,2151,281,296,298,300,315,326,327,343,344,346,347,380,381,385,389,406,407,408,427,428,429,430,431,435,436,438,439,55,56)] | |
Source File | |
/usr/home/users/dimitar/MAS/mas-kt/heavymetal/lib/3rdparty/creole/drivers/mysqli/MySQLiConnection.php (line: 208) | |
00201: { | |
00202: self::$sql[] = $sql; |
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
<?php | |
define("SKIP_PLUGINS", 1); | |
require_once "common.php"; | |
$license = array( | |
'vars' => array( | |
'core' => array( | |
'multiple_template_sets' => 0, |
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
> // v1.8+ shell | |
> x | |
{ | |
"_id" : ObjectId("4dcd3ebc9278000000005158"), | |
"d" : ISODate("2011-05-13T14:22:46.777Z"), | |
"b" : BinData(0,""), | |
"c" : "aa", | |
"n" : 3, | |
"e" : [ ], | |
"n2" : NumberLong(33) |
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
10.0.0.11 - - [28/May/2011:16:07:48 +0300] "POST /divinity-cart/session/qqev0eechteb06guiivvn6dgs1/1.html?extra=html HTTP/1.1" 302 5 "http://tea.mas-kt.dimitar.masbg.com/?type=bare&page=session&action=iframe&id=YTozOntpOjA7czoyNjoicXFldjBlZWNodGViMDZndWlpdnZuNmRnczEiO2k6MTtzOjM2OiJodHRwczovL3RlYS5tYXMta3QuZGltaXRhci5tYXNiZy5jb20iO2k6MjtzOjE6Ii8iO30=" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0.1) Gecko/20100101 Firefox/4.0.1" | |
10.0.0.11 - - [28/May/2011:16:07:49 +0300] "GET / HTTP/1.1" 200 13730 "http://tea.mas-kt.dimitar.masbg.com/?type=bare&page=session&action=iframe&id=YTozOntpOjA7czoyNjoicXFldjBlZWNodGViMDZndWlpdnZuNmRnczEiO2k6MTtzOjM2OiJodHRwczovL3RlYS5tYXMta3QuZGltaXRhci5tYXNiZy5jb20iO2k6MjtzOjE6Ii8iO30=" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0.1) Gecko/20100101 Firefox/4.0.1" | |
10.0.0.11 - - [28/May/2011:16:07:51 +0300] "GET /?type=bare&page=session&action=iframe&id=YTozOntpOjA7czoyNjoicXFldjBlZWNodGViMDZndWlpdnZuNmRnczEiO2k6MTtzOjM2OiJodHRwczovL3RlYS5tYXMta3QuZGltaXRhci5tYXNiZy5jb20 |
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
{ | |
"_id" : ObjectId("4de27191f9b0162f4f000027"), | |
"tiny" : { | |
"x" : 192, | |
"y" : 100, | |
"width" : 12, | |
"height" : 17 | |
}, | |
"small" : { | |
"x" : 192, |
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
class Icon | |
include Mongoid::Document | |
field :tiny, type: Hash | |
field :small, type: Hash | |
field :medium, type: Hash | |
field :large, type: Hash | |
has_many :categories | |
end | |
class Category |
OlderNewer