1.
current_action and current_controller helpers — ruby — codestacker
1 def current_action?(options) 2 url_string = CGI. ... created by leozera — 07 January 2009 — get a short url — tags: helper rails ruby — embed ...
2.
[rails] create_table methods — ruby — codestacker
create_table :table do |t| t.column # adds an ordinary column. Ex: t.column(:name, :string) t.index # adds a new index. t.timestamps t.change # changes the ...
3.
resize window bookmarklet — javascript — codestacker
create a link with this: javascript: resizeTo(800600); javascript: resizeTo(1024,768);
4.
safari — codestacker
Safari TargetedClicksCreateTabs -bool true. created by leozera — 16 July 2008 — get a short url — tags: mac safari — embed ...
5.
import sql files into migrations — ruby — codestacker
it's a small how to import a file in migrations. from: http://code-ronin.com/articles/rails-migrations-directly-import-sql # first, create the method ...
6.
7.
8.
9.
10.