Skip to content

Instantly share code, notes, and snippets.

View warolv's full-sized avatar

Igor Zhivilo warolv

View GitHub Profile
@warolv
warolv / en.yaml
Created October 29, 2013 09:46
I18n Link inclusion
branding_logo_link: "To select branding logo for your business %{link:click}"
@warolv
warolv / en.yml
Created October 29, 2013 09:48
i18n Text inclusion
branding_logo_link: "To select branding logo for your business %{text}"
@warolv
warolv / application.html.rb
Created October 14, 2013 12:53
Adding placeholder for app to use Angular
- if content_for?(:angular_module)
= javascript_include_tag 'angular'
= javascript_include_tag 'angular-resource'
= javascript_include_tag 'angular-ui-bootstrap'
= javascript_include_tag 'angular-sanitize'
@warolv
warolv / example_controller.rb
Created October 14, 2013 12:48
Backend Example in Rals for Angular (Rails Controller)
class StaffController < ApplicationController
respond_to :json
def index
respond_with Staff.all
end
def show
respond_with Staff.find(params[:id])
end
@warolv
warolv / migration.rb
Created October 14, 2013 10:05
Standart Operations
rake db:migrate VERSION=20080906120000
rake db:rollback
rake db:migrate:redo STEP=3
rake db:migrate:up VERSION=20080906120000
rake db:migrate:down VERSION=20080906120000