2005-11-01から1ヶ月間の記事一覧
Two interesting things in this area: Custom Validation Messages plugin Set Field Names plugin There are some expectations for a patch to the Rails distribution sources.
Today is already too late, so just some notes. Need more research on "Transactions in Rails" (Takagi-san): Module ActiveRecord::Transactions::ClassMethods Save and destroy are automatically wrapped in a transaction HowToUseTransactions Whe…
In the development environment, evebody sees the debugging screen when something goes wrong. In the production environment, you only get a debugging screen, when operating from localhost. But because of the memory leak in the current rails…
An example config: <IfModule mod_fastcgi.c> FastCgiIpcDir /tmp/fcgi_ipc FastCgiServer /path/to/myapp/dispatch.fcgi -initial_env RAILS_ENV=production \ -processes 15 -idle-timeout 60 </IfModule>The important part is FastCgiServer. It creating static server definition - 15 fa…
AWDwR book is full with wizdom. Will try to post here from time to time a small gems from it, suitable for our Rails production environment. For easier searching the title lines will be prefixed with [Agile]. So the first gem, something li…
lighttpd 1.4.8 was just released and next to a pile of bugfixes we added a new option to fastcgi.server to allow a simple setup of multiple rails app in one virtual host.. Go, go lighty :)
W32/Sober.Z@mm has gained wide distribution since 21 November 2005 ... Sober strikes again Technical description of W32/Sober.Z@mm
Tar2RubyScript and RubyScript2Exe tutorial, updated to work with Rails 0.14.3 .
Create example database $ mkdir db $ sqlite db/database.sqlite sqlite> create ...... Create tasks.rb # require AR require 'rubygems' require_gem 'activerecord' # connect to the database (sqlite in this case) ActiveRecord::Base.establish_co…
From Projecttionist tumblelog: 1. create needed tables $ cd myapp && rake create_session_table2. edit config/environment.rb config.action_controller.session_store = :active_record_store
Recently installed Xen-based system. Have already working Debian, Gentoo and Slackware domU-s. Helpful pointers: The Perfect Setup - Debian Sarge (3.1) The Perfect Xen Setup For Debian And Ubuntu How to Install Slackware Linux to a DomainU…
Document was written by Rick Bradley as part of their IS Applications group’s process of (re)evaluating platforms for deployment of a large-scale healthcare application. Java vs Ruby/Rails. Some interesting pointers, like Connection Poolin…
From the James Adam's post to the Rails ML: If your Engine has a properly -formed "db/migrate" folder, you can now use the provided "rake engines_migrate" task to manage its tables in the database. Find this code in the development branch …
Yesterday (15-Oct) recieved invitation from a friend of mine and visited a Design Matters meeting in Shinsaibashi. Thanks to Garr Reynolds for keeping it up and running. It is one of the not so much english speaking computer related events…
a script/overview for viewing the methods of classes under app/ Download the script Hm a little not working :( $ script/overview mmc.cscript/overview:68:in `outline_format': private method `sub!' called for nil:NilClass (NoMethodError) fro…
Theme Generator Shapes Up The theme support is now completely encapsulated in a plugin fully supports custom application views supports using liquid templates and it’s dead simple to use ;)
rails myapp && cd myapp && ./script/plugin install \ http://techno-weenie.net/svn/projects/acts_as_authenticated/ ./script/generate authenticated user account ./script/generate authenticated_mailer user
If using Markdown for presentations (s5presents), wiki or blog, maybe TextMate+Markdown+SmartyPants is a pretty good solution.
From Scott Stuff Blog: class ArticlesController < ApplicationController cached_pages = [:index, :read, :permalink, :category, :find_by_date, :archives, :view_page, :tag] caches_page *cached_pages session :off, :only => cached_pages ... end
New post on the "RailsExpress" blog On pages with 25 dates displayed it is approximately 70% faster than the original version. On a page with 1 date, it’s already 6% faster. If you have pages with a large number of date displays, you might…
Ruby-based representation of your database schema. you can change from one database to another with no effort.The schema generator is sort of the flip side of the new schema code in Rails 1.0. It takes a set of Rails migrations, aggregates…
Interesting discussion in the Rails ML about better (more standard) flash messages. In general: // :notice for positive feedback (action successful, etc) // :message for neutral feedback (reminders, etc) // :warning for negative feedback (…
script/server - will use lighttpd/fastcgi if installed and fall down to webrick if not (not for Winblows users) script/plugin is already native part of the distribution script/about - i'm waiting for this from a loooong time. reports all R…
Ruby Web Bench (RWB) - I wanted to be able to build a weighted list of urls with which to test a website. RWB will become a little language in which you can write such lists, run tests, and build reports -- Pat Eyler
The case for piggy backed attributes Improve your ActiveRecord performance via: :include def show_some @recipes = Recipe.find(:all, :limit => 50, :include => [:user]) end piggy backed attributes # model class Recipe < ActiveRecord::Base be…
Shopify is a hosted e-commerce solution that removes the traditional barriers that have kept many individuals and small business from selling online. It is a Web 2.0 product that focuses on providing buyers and sellers with the features es…
Projects for the Python Beginner. Will be interesting to have such a list for Ruby/Rails.
Liquid is a template engine optimized for xhtml and emails. To start using liquid just extract it into vendor/plugins or better yet use the ./script/plugin script to install liquid. You can now start using templates with the .liquid file t…
Promising Ruby on Rails IDE. New features: Syntax highlighting: RHTML, Ruby Code Assist/Content Assist: RHTML, Ruby Code templates/snippets for commonly used Rails commands Now i'm using Arachno Ruby(evaluation version) on Windows and Text…
Interesting book comming soon: Enterprise Integration with Ruby - Databases (MySQL, Oracle), LDAP, REST. The image in this post is not very clear, but it mostly to test linking to Hatena::Fotolife ;)