Skip to content

Instantly share code, notes, and snippets.

View dzhulk's full-sized avatar

Murat Dzhulkuttiev dzhulk

  • St. Petersburg, Russia
View GitHub Profile
@dzhulk
dzhulk / rails_3_1_beta_1_changes.md
Created June 8, 2011 16:10 — forked from ryanb/rails_3_1_rc4_changes.md
The Changelogs for Rails 3.1 Beta 1

Railties 3.1 Beta 1

  • 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]

#!/bin/bash
# Объявляется функция func, которя обходит
# католог, который передан в качестве аргумента,
# и показывает все файлы в нем и в его подкаталогах
func(){
for fn in `ls $1` # цикл по значениям которые возвращает комманда ls, $1 - это аргумент ф-и
do
if [ "$fn" != "." ] # Условие: если $fn не текущий каталог
then