26 Sep '13, 3am

@dngoo Hmm. You could use a custom constraint on the categories route that only matches for valid category names.

Active Record Basics Rails Database Migrations Active Record Validations Active Record Callbacks Active Record Associations Active Record Query Interface Layouts and Rendering in Rails Action View Form Helpers Action Controller Overview Rails Routing from the Outside In Active Support Core Extensions Rails Internationalization API Action Mailer Basics Securing Rails Applications Debugging Rails Applications Configuring Rails Applications Rails Command Line Tools and Rake Tasks Asset Pipeline Working with JavaScript in Rails Rails on Rack Creating and Customizing Rails Generators Contributing to Ruby on Rails API Documentation Guidelines Ruby on Rails Guides Guidelines Ruby on Rails 4.0 Release Notes Ruby on Rails 3.2 Release Notes Ruby on Rails 3.1 Release Notes Ruby on Rails 3.0 Release Notes Ruby on Rails 2.3 Release Notes Ruby on Rails 2.2 Release Notes

Full article: http://guides.rubyonrails.org/routing.html#advanced-const...

Tweets

ほんとだ、ちゃんと reset_column_information について書いてあった >...

guides.rubyonrails.org 26 Sep '13, 9am

You can think of each migration as being a new 'version' of the database. A schema starts off with nothing in it, and each...

How did I not know about the content_for and di...

api.rubyonrails.org 26 Sep '13, 12pm

You can also pass an array of objects which this method will loop through and yield the current object to the supplied blo...

server side #rails validations

guides.rubyonrails.org 26 Sep '13, 11am

Database constraints and/or stored procedures make the validation mechanisms database-dependent and can make testing and m...

[Blogged] Why only have a few COE categories? Whack more lah! #NewCOEcategories

[Blogged] Why only have a few COE categories? W...

mrbrown.com 20 Sep '13, 10am

Let's have some New COE Categories! The LTA has modified the COE category such that cars with engine power output exceedin...

#Ruby on #Rails: Deploy

rubyonrails.org 05 Oct '13, 12am

The easiest deployment setup for Rails is Phusion Passenger aka mod_rails. It's a module for nginx and Apache that automat...

Fast tests in Ruby on Rails

rubyflow.com 01 Oct '13, 3pm

Fast tests in Ruby on Rails Posted by manualwise on October 01, 2013 — 0 comments Developers need to be able to run tests ...

@stubbornella is a good read all around, but 3....

guides.rubyonrails.org 03 Oct '13, 11am

Active Record Basics Rails Database Migrations Active Record Validations Active Record Callbacks Active Record Association...

What do u think? Green Building Q&A: Another fo...

greenbuildingadvisor.com 24 Sep '13, 5pm

I know there is a recent article on foundation drainage with good discussion, but I don't think this particular question w...

@kerrizor I don't think there's anything in min...

api.rubyonrails.org 29 Sep '13, 6pm

Test numeric difference between the return value of an expression as a result of what is evaluated in the yielded block. a...