Ruby On Rails in UA Icon_home Главная Add to bookmarks Translate translate Profile Войти
Регистрация Форум Блоги Пользователи Ресурсы Список джемов      Поиск   

Затегированы темы

Помощь в отладке и изучении чужих приложений на rails

Date2008-07-24 UserRuslan Voloshin Commentкоментарии 0

Если вы разрабатываете на Rails вы должны знать, этот плагин - footnotes !
footnotes/tree/master">http://github.com/drnic/rails-footnotes/tree/master
Он отображает ссылки внизу страницы для более удобной отладки, - cookie, session, params, routes и другие.

Так же есть возможность добавлять необходимые параметры для выдачи в виде отладки.

По умолчанию свя отладочная информация видна только в development  режиме.

Для инсталяции под rails 2.1

cd myapp
git clone git://github.com/drnic/rails-footnotes.git vendor/plugins/footnotes
rm -rf vendor/plugins/footnotes/.git

Если вы до сих пор пользуетесь предыдущими версиями rails

cd myapp
git clone git://github.com/drnic/rails-footnotes.git vendor/plugins/footnotes
cd vendor/plugins/footnotes
git checkout v3.0

rm -rf ./.git

В низу страницы это будет примерно так выглядеть:

<strong class=Footnotes plugin parametrs" src="/uploads/Image/Footnotes-plugin-parametrs.png" />

<strong class=Footnotes plugin Cookies" src="/uploads/Image/Footnotes-plugin-Cookies.png" />

<strong class=Footnotes plugin filter chain for controller" src="/uploads/Image/Footnotes-plugin-filter-chain-for-controller.png" />

<strong class=Footnotes plugin logger" src="/uploads/Image/Footnotes-plugin-logger.png" />

<strong class=Footnotes plugin queries debug rails" src="/uploads/Image/Footnotes-plugin-queries-debug-rails.png" />

<strong class=Footnotes plugin routes for controller" src="/uploads/Image/Footnotes-plugin-routes-for-controller.png" />

<strong class=Footnotes plugin session" src="/uploads/Image/Footnotes-plugin-session.png" />

Rss
Ключевые слова:
Гости: 207 Онлайн: Евгений Хлобыстин,
Rambler's Top100
О проекте по всем вопросам обращайтесь на support
Rubyclub.com.ua Copyright © 2007 - 2008