A few months ago we launched Database-less environments . This has been a very popular feature and today we are happy to announce its GA release. Please note that this feature is available only for customers who have upgraded their stack since May 15, 2012. New environments will show ...
July 31, 2012 Tagged: factory girl ruby rails factories testing Comments (View) Mind-Bending Factories People often forget that FactoryGirl is just using Ruby to instantiate objects. Most of the time, yes, you’ll use FactoryGirl in conjunction with your favorite ORM to instantiate obj...
Ruby Constructs: Class, Module and Mixin Posted by mattetti on July 31, 2012 — 0 comments I wrote an overview of some of the basic Ruby constructs such as class, module and mixin. Comments Post a Comment Comment abilities for non registered users are currently deactivated, pending...
If you are tired of model ids in the URL, overriding to_param can only get you so far. The friendly_id plugin can help by making it easy to generate a URL slug and maintain a history.
Get Previously Saved Changes in Rails Posted by schneems on July 31, 2012 — 0 comments If you make changes to an object you can get the previously saved changes in Rails . Use it to make an audit trail or something else equally useful. Go forth and make changes! Comments Post a Co...
July 27th, 2012 New Rails, how to ride a mountain lion (grrrr), tell don't ask, enums get classy, kickstarting your backend from a CoreData model, and the awesome TodoMVC. July 24th, 2012 We talk about Sublime editing, implicit gemsets with Bundler & rbenv, really secure HTTPS with HS...
作成した拡張ライブラリを $archdir にインストールします。カレン トディレクトリにディレクトリ lib があればその配下の ruby スクリプト (.rb ファイル)をディレクトリ階層ごと $libdir にインストールし ます。 独立したライブラリとしてコンパイルされた場合、拡張ライブラリは $sitearchdir に、 ruby スクリプトは $sitelibdir にインストールされます。
Tuesday, July 31, 2012 at 6:39AM It's amazing how quickly a calendar can fill up. Cheddar for iOS is Now Open Source - Just in case you'd like to see some real-world sample code, and perhaps fix a few bugs. Prism - New lightweight code highlighter in JavaScript with a plugin architect...
aescrypt 1.0.0 Simple AES encryption / decryption for Ruby install gem install aescrypt Download Documentation Subscribe Stats Authors Gurpartap Singh 3 total downloads 3 for this version Owners Links Homepage Gemfile gem "aescrypt", "~> 1.0.0" Versions 1.0.0 July 31, 2012 Development...
cnpj_validator 0.3.1 CNPJ validation for ActiveModel install gem install cnpj_validator Download Documentation Subscribe Stats Authors Gabriel Sobrinho 3,769 total downloads 3,359 for this version Owners Links Homepage Gemfile gem "cnpj_validator", "~> 0.3.1" Versions 0.3.1 July 4, 20...
cpf_validator 0.2.0 CPF validation for ActiveModel install gem install cpf_validator Download Documentation Subscribe Stats Authors Gabriel Sobrinho 5,015 total downloads 5,015 for this version Owners Links Homepage Gemfile gem "cpf_validator", "~> 0.2.0" Versions 0.2.0 May 14, 2011 R...
$ rails foo $ cd foo $ rails g scaffold User name:string invoke active_record create db/migrate/20100526195347_create_users.rb create app/models/user.rb invoke test_unit create test/unit/user_test.rb create test/fixtures/users.yml route resources :users invoke scaffold_controller crea...
If you’re into functional programming at all, you probably know right away what the K combinator is. For the rest of us, this article is helpful (if a bit on the academic side, but that’s about par for the course for most reading about functional topics). Basically, the K combinator i...
There are several ways to do this, some people create Rails Observers to fire off emails, others do it inside of the User Model. However, in Rails 3, mailers are really just another way to render a view. Instead of rendering a view and sending out the HTTP protocol, they are just send...
every time I upgrade my redmine installation I need to figure out how to set the permissions on the directories. The instructions on the website for files, etc., is not enough since I do always get the "attachments directory not writeable" error. My quick fix often is just to chmod an...
cyprus-street-names 0.2.1 Cyprus's Street Names. install gem install cyprus-street-names Download Documentation Subscribe Stats Authors Despo Pentara 42 total downloads 5 for this version Owners Links Homepage Gemfile gem "cyprus-street-names", "~> 0.2.1" Versions 0.2.1 July 31, 2012 ...