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#new_request_for_ticket").bind("ajax:success", function(e, data, status, xhr) { | |
if (data.success) { | |
// document.getElementById('new_request_for_ticket').innerHTML = '<p> Спасибо большое что связались с нами'; | |
// location.href = data.path; | |
return alert('success'); | |
} else { | |
return alert('failure!'); | |
} | |
}); |
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
.embed-responsive.embed-responsive-4by3 | |
object#0 data="http://xn--63-vlch8au.xn--p1ai/player_flv_maxi.swf" height="315" type="application/x-shockwave-flash" width="525" | |
param name="movie" value="http://xn--63-vlch8au.xn--p1ai/player_flv_maxi.swf" | |
param name="wmode" value="opaque" | |
param name="allowFullScreen" value="true" | |
param name="allowScriptAccess" value="sameDomain" | |
param name="quality" value="high" | |
param name="menu" value="true" | |
param name="autoplay" value="false" | |
param name="autoload" value="false" |
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
table | |
tr | |
th ID | |
th Название | |
th Метро | |
th Статус | |
th Тип договора | |
- @hotels.each do |hotel| | |
tr | |
td = hotel.id |
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
Started POST "/admin/products" for 127.0.0.1 at 2014-08-12 12:08:01 +0400 | |
ActiveRecord::SchemaMigration Load (2.0ms) SELECT `schema_migrations`.* FROM `schema_migrations` | |
Processing by Admin::ProductsController#create as HTML | |
Parameters: {"utf8"=>"✓", "authenticity_token"=>"hdgmaYzTBdWu2y60saRSEJfc1YUHBWxXbBNDVJaHyOA=", "product"=>{"id"=>"", "title"=>"123", "description"=>"123", "price"=>"123", "image"=>#<ActionDispatch::Http::UploadedFile:0xa60e99c @tempfile=#<Tempfile:/tmp/RackMultipart20140812-14488-69amgg>, @original_filename="123.jpg", @content_type="image/jpeg", @headers="Content-Disposition: form-data; name=\"product[image]\"; filename=\"123.jpg\"\r\nContent-Type: image/jpeg\r\n">, "created_at(1i)"=>"", "created_at(2i)"=>"", "created_at(3i)"=>"", "created_at(4i)"=>"", "created_at(5i)"=>"", "updated_at(1i)"=>"", "updated_at(2i)"=>"", "updated_at(3i)"=>"", "updated_at(4i)"=>"", "updated_at(5i)"=>"", "category_id"=>""}, "button"=>""} | |
Cart Load (0.2ms) SELECT `carts`.* FROM `carts` WHERE `carts`. |
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
.plus-md-right:after | |
content: "" | |
background: image_url("fedo/plus.png") no-repeat | |
top: 50px | |
left: 250px | |
position: absolute | |
width: 100px | |
height: 100px | |
z-index: 10 |
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
public class MainActivity extends Activity { | |
/** Called when the activity is first created. */ | |
Button butTest; | |
TextView textView; | |
String title; | |
@Override | |
public void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); |
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
FEDO.js.coffee | |
#= require_self | |
# require_tree ./filters/main | |
# require_tree ./directives/main | |
#= require_tree ./services | |
#= require_tree ./controllers | |
fedo = angular.module('fedo', [ | |
'ngRoute' |
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 RemoveDateAndAddDataToAnnouncements < ActiveRecord::Migration | |
def change | |
Announcement.all.each do |announcement| | |
announcement.update_attribute(:created_at, announcement.date) | |
end | |
remove_column :announcements, :date | |
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
angular.module('Shop').controller('ArticleCommentCtrl', ['$scope', '$http', ($scope, $http) -> | |
$scope.comment_form = | |
full_name: null | |
email: null | |
comment: null | |
$scope.register = (article_id = null) -> | |
$http( | |
method: "GET" |
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
- if !local_assigns[:product_id] | |
- product_id = nil | |
div ng-controller='ArticleCommentCtrl' | |
form ng-hide="comment_form.registered" ng-submit="register(#{article_id})" | |
p Оставьте свой отзыв | |
.form-group | |
textarea#article.form-control name="article" rows=5 required="required" placeholder='Ваш отзыв*' ng-model='comment_form.article' | |
.form-group | |
.center | |
button.btn.btn-default name="commit" type="submit" |