Projects tagged ‘activerecord’ and ‘rails’


Jump to tag:

Projects tagged ‘activerecord’ and ‘rails’

Filtered by Project Tags activerecord rails

Refine results Project Tags ruby (28) plugin (13) rubyonrails (8) database (6) sql (5) orm (4) ror (3) mysql (3) csharp (2) query (2) migration (2) associations (2)

[42 total ]

28 Users
   

SubSonic is a toolset that helps a website build itself. It brings some of the fun and elegance of Ruby on Rails to ASP.NET.
Created over 2 years ago.

1 Users

MultiConditions is a simple ActiveRecord plugin for storing ActiveRecord query conditions and make complex queries painless. This plugin doesn't replace ActiveRecord#with_scope method, nor the ... [More] basic :condition usage but extends it with the ability of storing illimitate conditions in multiple step. [Less]
Created about 1 year ago.

1 Users
 

The ModelFormatter module allows you to easily handle fields that need to be formatted or stripped of formatting as the are set or retrieved from the database. You can designate one or more of your columns as "formatted columns."
Created over 2 years ago.

1 Users

What is Cabbie?Cabbie is a PHP Model-View-Controller framework that borrows its ideas from Ruby on Rails and emulates a lot of its features. Cabbie is sponsored by Works4all (http://works4all.nl) and ... [More] was written for their Wiban project. Why Cabbie?Because we can, and because: <@jali> Cabbie <@jali> :P <@hisham> how'd you come to pick it? <@jali> Because it's a spin on the name Filing Cabinet <@jali> which is how an SQL DB works <@hisham> clickity click <@hisham> its done. We just liked the name, so we used it. Feature ListEasy to use Model-View-Controller approach Complete database abstraction layer provided by Creole (MySQL, pgSQL etc..) Object Relation Model (ORM) that eliminates the need to write SQL Simple yet powerful template engine with the ability to specify custom engine XML template builder for writing XML documents (example: RSS) Built-in translation support to make your application available in multiple languages Built-in dynamic URL re-writing Directory indexer with customizable templates and icons for listing contents of directories Similar syntax and concepts to Ruby on Rails AJAX support Memcached and APC integration (not yet in svn) Flex/Weborb integration (not yet in svn) Need information?Visit the Cabbie wiki for more information on how to install and use Cabbie for your web applications. AuthorsHisham Mardam Bey Reno De Jong Copyright given where copyright is due to:Luchezar Petkov Sam Stephenson John Peterson LicenseCabbie is under the new BSD license. Code that is reused from other projects is licensed under its original license. [Less]
Created about 1 year ago.

0 Users

UsageThe plugin allows extented model generation functionality, i.e.: ruby script/generate my_model User name:string:limit_48:null_false:default_username pass:string:limit_15Optionsnull_true or ... [More] null_false default_string limit_integer precision_integer scale_integer autoincrement_true or autoincrement_falseInstallruby script/plugin install http://extended-model-generator.googlecode.com/svn/trunk/my_model/ [Less]
Created about 1 year ago.

0 Users

This is now being maintained via git: http://github.com/johnnyb/activerecord_viz/tree
Created about 1 year ago.

0 Users

ModelCache to use on an ActiveRecord class to cache method calls. Example: Class X < ActiveRecord::Base def heavy_calculation(a, b) "result #{self.x} #{a} #{b}" end include ... [More] ModelCacheHelper cache_method :heavy_calculation endThe created method X.heavy_calculation(id, arg1, arg2) will then check if the result is cached, otherwise it will do X.find(1).heavy_calculation(arg1, arg2) and cache the result. Calling heavy_calculation on an instance of X will also cache the result. The instance method expire_cache, will expire the cache for that object. It can be used with an optional argument, expire_cache(method), to only expire the cache for a certain method. Non-string result will be serialized with YAML and automatically deserialized when loaded. The extra argument kan be used to define extra parameters to the find-request. cache_method :heavy_calculation, :include => "content_items" [Less]
Created about 1 year ago.

0 Users

HasMagicColumnsExtends ActiveRecord models and adds "magic" columns and attributes to a model. Model classes or instances can maintain completely unique and separate data and are able to access this ... [More] data through the standard ActiveRecord style interface. This is useful in multi-user or multi-account applications where each user can "customize" the attributes they would like to use without managing multiple schema or installations. This plugin was written by and maintained by Brandon Keene, a professional Rails developer working in San Francisco, CA. InstallationYou need to create table definitions for included column and attribute models. Generate the migration using the included task: rake has_magic_columns:db:createRun the standard migrate task to update your schema: rake db:migrateYou're ready to start using Has Magic Columns! - Brandon Keene Exampleclass Person < ActiveRecord::Base has_magic_columns end # Create a Person @bob = Person.create(:email => "bob@example.com") # Add some MagicColumns @bob.magic_columns << MagicColumn.create(:name => "first_name") @bob.magic_columns << MagicColumn.create(:name => "last_name") @bob.magic_columns << MagicColumn.create(:name => "birthday", :datatype => "date") # Give @bob some magic... @bob.first_name = "Bob" @bob.last_name = "Magic!" @bob.birthday = Date.today # Save @bob like normal @bob.save # Find @bob and inspect him @bob = Person.find(@bob.id) @bob.first_name #=> "Bob" @bob.last_name #=> "Magic!" @bob.birthday #=> #Inherit from "Template" ColumnsA child can "inherit" magic columns from its parent. You can use container models to provide a column template for contained objects. For example, an Account has_magic_columns and has_many :people. A Person inherits magic columns from its account: class Person < ActiveRecord::Base belongs_to :account has_magic_columns :inherit => :account endChildren people now all share the columns of their parent account. You don't need to use these magic columns on the Account of course. It's just a convenient and logical way to provide column templating. [Less]
Created about 1 year ago.

0 Users

English info: Tutorial application in Rails by Karel Minarik (karmi@karmi.cz), accompanying article series about Ruby On Rails at http://blog.karmi.cz --- Vyukova aplikace v Ruby On Rails jako ... [More] doprovod k serii clanku na http://blog.karmi.czTato mini-aplikace slouzi jako doprovod k serii clanku o Ruby on Rails na blogu Karmi is on Rails (http://blog.karmi.cz). Je vhodna i pro naproste zacatecniky. Obsahuje celou radu doporucenych programatorskych postupu pri psani aplikaci v Ruby on Rails. Je psana uspornym stylem (120 radku kodu) s komentari, takze muzete kod dale rozvijet. Najdete v ni ukazky a pouziti techto funkci: Pouziti ActiveRecordu Definovani vlastnich metod pro tridu i instanci modelu Praci s layouty, kombinaci scaffoldu v Rails a vlastnich metod a sablon Metody controlleru pro zobrazovani i manipulaci s objekty, vcetne osetreni chyb Helper metody pro controllery (slozka app/helpers) Praci s embedded Ruby (ERb) v sablonach, ukazky volani parcialni sablony (to jsou ty s podtrzitkem na zacatku) Pouziti pluginu acts_as_list a vyuziti jeho metod pro manipulaci s objekty v controllerech Pouziti pluginu acts_as_attachment v modelech, controllerech i sablonach pro upload obrazku do aplikace [Less]
Created about 1 year ago.

0 Users

BatchedSqlFuThis is vendor specific to MySQL or any RDBMS that supports the syntax : INSERT INTO (col1, col2) VALUES ('val1', 'val2'), ('val3', 'val4'), ('val5', 'val6'). What it does is it ... [More] overrides the insert method of the connection adapter for the duration of the block and flushes inserts every after 100 inserts are by the value you specify. ExampleLine.insert_by_batch do Line.create(:text => 'Hello') Line.create(:text => 'World') end all statements will be the executed in one SQL. Installruby script/plugin install http://batched-sql-fu.googlecode.com/svn/trunk/batched_sql_fu CaveatsYou might not receive the expected result from Line.create or Line.save since the statements are executed later. This plugin is experimental. Use it at your own risk! Copyright (c) 2008 David, released under the MIT license [Less]
Created about 1 year ago.