search for: annotate_model

Displaying 7 results from an estimated 7 matches for "annotate_model".

Did you mean: annotate_models
2007 May 27
1
annotate_models plugin to annotate RSpec specs and fixture
I have found useful to have the table information associated to models disp?ayed in the models and fixtures files of my rails applications. If you want to add this information to the spec_fixtures and specs add the following patch to your plugin. Index: vendor/plugins/annotate_models/lib/annotate_models.rb =================================================================== --- vendor/plugins/annotate_models/lib/annotate_models.rb (revision 45) +++ vendor/plugins/annotate_models/lib/annotate_models.rb (working copy) @@ -1,7 +1,8 @@ require "config/environment&...
2006 Aug 07
28
Dr Nic’s Magic Models
Welcome! Welcome! Welcome! Ladies and Gentlemen, today you shall be thrilled and dazzled by wonders of magical mystery. Dr Nic?s Magic Models will now be unveiled to all. Mystery and magic that you will be able to perform at home. Within your ActiveRecord models, never again will you need to write: * validates_presence_of validations * has_many and belongs_to statements * has_many
2011 Apr 16
17
Rails 3 Crashing On Windows 7
Hi guys, I have Rails 3 running on Windows 7 with Ruby 1.9.2 Every now and again, my server crashes, and I see the following information in the windows event log: Faulting application name: ruby.exe, version: 1.9.2.180, time stamp: 0x4d5ee5ed Faulting module name: msvcrt-ruby191.dll, version: 1.9.2.180, time stamp: 0x4d5ee5ec Exception code: 0xc0000005 Fault offset: 0x0011a00e Faulting process
2006 Apr 27
0
DRY validation
...true -- as shown in the phone_code attribute above. The plugin can be downloaded from here: http://onautopilot.com/oss/rails/active_attribute.tgz One nice extra benefit is when I rearranged my validation rules on a per-attribute basis I found a few attributes I forgot to validate. I used the annotate_models plug to add a list of every column to the top of my model, and proceeded to add validation rules for each of the forgotten attributes. It turned out to be a nice way to make sure the bases were better covered. So anyway, give it a shot and let me know how it works out for you. - -- Thanks, Da...
2008 Jan 15
0
Problem with ruby-debug and rspec
...or spec helper methods i''m loading. Basically any command which should normally work like p, or pp, gets passed through to a method_missing. I''m kind of stumped on this one... any ideas? -rabble I''ve got the following plugins installed: active_record_base_without_table annotate_models asset_packager exception_logger fixture_replacement query_reviewer rspec rspec_on_rails spatial_adapter svn white_list will_paginate ym4r_gm and am using the following gems: GeoRuby-1.3.2 RedCloth-3.0.4 has_finder-0.1.5 json-1.1.1 mocha-0.5.5 oauth ruby-hmac-0.3.1 brickhouse:~/code/fireeagle-rai...
2007 Aug 16
3
Comment Generator
Hi all, I just want to know that is there any comment generator for RoR? I actually, I have comment my classes, method and parameter, Controller, Modal, etc. but I couldn''t find the comment generator that work with ruby so that I couldn''t generate all the comments that I had comment in my Ruby Project. I''m really want to say thankful for whom who can tell about this.
2012 Feb 20
0
Cannot start rails server: Please install the adapter: `gem install activerecord--adapter`
...[i686-linux]. FWIW, here''s my Gemfile too: source ''https://rubygems.org'' gem ''rails'', ''3.2.1'' group :development, :test do gem ''sqlite3'' gem ''annotate'', :git => ''git://github.com/ctran/annotate_models.git'' gem ''rspec-rails'' end group :assets do gem ''sass-rails'', ''~> 3.2.3'' gem ''coffee-rails'', ''~> 3.2.1'' gem ''uglifier'', ''>= 1.0.3'' gem ''bootstra...