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 GET "/admin/categories" for 127.0.0.1 at Fri Apr 01 20:16:52 +0300 2011 | |
Processing by RailsAdmin::MainController#list as HTML | |
Parameters: {"model_name"=>"categories"} | |
User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1 | |
SQL (0.2ms) SELECT COUNT(*) FROM "categories" | |
Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY id desc LIMIT 20 OFFSET 0 | |
CACHE (0.0ms) SELECT COUNT(*) FROM "categories" | |
Rendered /Users/amr/.rvm/gems/ree-1.8.7-2011.03@rails3/bundler/gems/rails_admin-64d6b8655d26/app/views/layouts/rails_admin/_flash.html.erb (0.5ms) | |
Rendered /Users/amr/.rvm/gems/ree-1.8.7-2011.03@rails3/bundler/gems/rails_admin-64d6b8655d26/app/views/layouts/rails_admin/_head.html.erb (3.0ms) | |
SQL (0.3ms) SELECT name |
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
.field{:class => field.name} | |
= label_tag "#{field.abstract_model.to_param}_#{field.name}", field.label | |
.input | |
- if field.bindings[:object].send("#{field.name}_url") | |
.row | |
= link_to field.bindings[:object].send("#{field.name}_url") | |
%br | |
= form.check_box "remove_#{field.name}" | |
= form.label "remove_#{field.name}", "Remove existing #{field.label.downcase}", :class => "inline" | |
.row |
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
# coding: utf-8 | |
class Animal | |
def initialize(اسم) | |
@اسم = اسم | |
end | |
def اكتب_اسم_الحيوان | |
puts @اسم |
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
%h2 | |
Edit #{resource_name.to_s.humanize} | |
= form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => { :method => :put }) do |f| | |
= devise_error_messages! | |
%p | |
= f.label :full_name | |
%br | |
= f.text_field :full_name | |
%p | |
= f.label :username |
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
cd A | |
git remote add test ../B && git fetch test | |
git merge test/master | |
git push (if you use a remote repo.) | |
git remote add rails https://github.com/rails/rails.git; git fetch rails; git merge rails/master; git push |
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
(function($) { | |
var Post, app; | |
Post = Model("post", { | |
persistence: Model.REST("/posts") | |
}); | |
app = $.sammy(function() { | |
this.element_selector = '#body'; | |
this.get('#!/', function(context) { | |
var posts; | |
posts = Post.all(); |
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
node.js:63 | |
throw e; | |
^ | |
Error: Cannot find module './../../../lib/node/.npm/express/1.0.0rc3/package/bin/express' | |
at loadModule (node.js:475:15) | |
at require (node.js:611:14) | |
at Object.<anonymous> (/usr/local/share/npm/bin/express:8:18) | |
at Module._compile (node.js:662:23) | |
at Module._loadScriptSync (node.js:669:10) | |
at Module.loadSync (node.js:538:12) |
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
<div id='asset-bucket' style='display: none'> | |
<div id='assets-container'> | |
<div id='asset-tabs'> | |
<strong>`attachment_tab' default partial not found!</strong><strong>`upload_tab' default partial not found!</strong><a class='asset-tab here' href='#'> | |
Bucket | |
</a> | |
<strong>`search_tab' default partial not found!</strong></div> | |
<div id='assets'> | |
<div class='pane' id='bucket'> | |
<p> |
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
~ % rvm --trace use default | |
--trace use default | |
rvm 1.0.1 by Wayne E. Seguin ([email protected]) [http://rvm.beginrescueend.com/] | |
+ [[ -z '' ]] | |
+ [[ ! -z ruby-1.9.2-p0 ]] | |
+ rvm_action=use | |
+ [[ ! -z '' ]] | |
+ [[ ! -z '' ]] |
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
export PATH="/Users/amr/.rvm/gems/ruby-1.9.2-p0@rails2/bin:/Users/amr/.rvm/gems/ruby-1.9.2-p0@global/bin:/Users/amr/.rvm/rubies/ruby-1.9.2-p0/bin:/Users/amr/.rvm/bin:$PATH" | |
RUBY_VERSION='ruby-1.9.2-p0' | |
export RUBY_VERSION | |
GEM_HOME='/Users/amr/.rvm/gems/ruby-1.9.2-p0@rails2' | |
export GEM_HOME | |
GEM_PATH='/Users/amr/.rvm/gems/ruby-1.9.2-p0@rails2:/Users/amr/.rvm/gems/ruby-1.9.2-p0@global' | |
export GEM_PATH | |
BUNDLE_PATH='/Users/amr/.rvm/gems/ruby-1.9.2-p0@rails2' | |
export BUNDLE_PATH | |
MY_RUBY_HOME='/Users/amr/.rvm/rubies/ruby-1.9.2-p0' |