-
The -j option of the application generator accepts an arbitrary string. If passed "foo", the gem "foo-rails" is added to the Gemfile, and the application JavaScript manifest requires "foo" and "foo_ujs". As of this writing "prototype-rails" and "jquery-rails" exist and provide those files via the asset pipeline. Default is "jquery". [fxn]
-
jQuery is no longer vendored, it is provided from now on by the jquery-rails gem. [fxn]
-
Prototype and Scriptaculous are no longer vendored, they are provided from now on by the prototype-rails gem. [fxn]
-
The scaffold controller will now produce SCSS file if Sass is available [Prem Sichanugrist]
This file contains hidden or 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
%a weekday name. | |
%A weekday name (full). | |
%b month name. | |
%B month name (full). | |
%c date and time (locale) | |
%d day of month [01,31]. | |
%H hour [00,23]. | |
%I hour [01,12]. | |
%j day of year [001,366]. | |
%m month [01,12]. |
This file contains hidden or 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
ActiveRecord::Base.logger = Logger.new(STDOUT) | |
This file contains hidden or 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
######################################################### | |
# Facebooker hack. To make authlogic facebook_connect work | |
# if app is deployed in sub directory. Put it at | |
# config/initializers/facebooker_hack.rb | |
######################################################### | |
Facebooker.module_eval do | |
def self.path_prefix | |
'/directory_name' | |
end | |
end |
This file contains hidden or 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
# Making Cucumber & ThinkingSphinx play together | |
# Only works on thinking-sphinx 1.3.2 | |
# | |
# IMPORTANT: This file is generated by cucumber-rails - edit at your own peril. | |
# It is recommended to regenerate this file in the future when you upgrade to a | |
# newer version of cucumber-rails. Consider adding your own code to a new file | |
# instead of editing this one. Cucumber will automatically load all features/**/*.rb | |
# files. | |
ENV["RAILS_ENV"] ||= "cucumber" |
This file contains hidden or 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
# Code snippet | |
# Cap recipe to run rake db:Seed on production server | |
namespace :deploy do | |
desc "Run rake db:seed on production machine" | |
task :db_seed, :roles => :app do | |
run "cd #{current_path}; rake RAILS_ENV=production db:seed" | |
end | |
end |
This file contains hidden or 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
module BabyTalk | |
class Engine < Rails::Engine | |
config.to_prepare do | |
User.class_eval do | |
has_many :participations, :foreign_key => "participant_id" | |
has_many :rooms, :through => :participations | |
end | |
end | |
end | |
end |
This file contains hidden or 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
sudo iptables -A INPUT -p tcp --dport 80 -j ACCEPT | |
sudo iptables -A INPUT -p tcp --dport 443 -j ACCEPT | |
sudo iptables -A INPUT -p tcp --dport 110 -j ACCEPT | |
sudo iptables -A INPUT -p tcp --dport 2525 -j ACCEPT | |
sudo iptables -vnL --line-numbers | |
sudo iptables -D INPUT <line_number> |
This file contains hidden or 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
# Don't forget to run this vagrant command first | |
# vagrant ssh-config >> ~/.ssh/config | |
set :user, 'vagrant' | |
set :run_method, :sudo | |
role :app, '33.33.33.10' | |
ssh_options[:keys] = `vagrant ssh_config | grep IdentityFile`.split.last |
This file contains hidden or 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
--- | |
:update_sources: true | |
:backtrace: false | |
:verbose: true | |
:bulk_threshold: 1000 | |
:benchmark: false | |
:sources: | |
- http://gems.rubyforge.org/ | |
- http://gems.github.com | |
- http://gems.github.com |
OlderNewer