Will it speed up?
Posted on January 14, 2007 - Filed Under RubyOnRails, run-n-share | Leave a Comment
I have released new RNS version (0.251). From user perspective, there should be no difference in functionality. Site should be much more faster, since I have implemented caching in RNS code (fragment caching to be exact). After few days I will post here some numbers, how rendering times have changed. I hope it will be [...]
Popularity: 2% [?]
Read More..>>Acts As Taggable gem and MySQL duplicate key
Posted on January 12, 2007 - Filed Under RubyOnRails | Leave a Comment
I was using acts_as_taggable DHH’s plugin. But I have moved to gem based one. After changing my database scheme and making code changes I ran across issue. When I was updating routes with tags ActiveRecord have dumped following error: ActiveRecord::StatementInvalid (Mysql::Error: Duplicate entry ’9′ for key 1: INSERT INTO routes_tags (`tag_id`, `id`, `route_id`) VALUES (9, [...]
Popularity: 3% [?]
Read More..>>Route tagging
Posted on January 9, 2007 - Filed Under RubyOnRails, run-n-share | Leave a Comment
This morning I have released to public next RNS version (0.241). This is rather major update – routes can be tagged (using Rails act_as_taggable plugin), browsed by tags, routes can be also browsed by user owning them. Go and check new features. When route is displayed, owner name is link to page with all routes [...]
Popularity: 2% [?]
Read More..>>Helpers available both in controller and templates
Posted on January 8, 2007 - Filed Under howto, RubyOnRails | Leave a Comment
With famous DRY, I have written a bunch of common checks from RNS to some helpers methods. And I have to find some way to access them both from templates (RHTML) and controllers. Rails provides two places to hold common helpers. First is app/controllers/application.rb, parent for all controllers. Methods defined in this class will be [...]
Popularity: 2% [?]
Read More..>>Migrations headache
Posted on January 3, 2007 - Filed Under Ruby, RubyOnRails | 5 Comments
This time it was migrations crash course…. Recently I had to change run-n-share database structure and remove some models. I needed to find easy way to do changes in DB and make data transformation. Of course I started doing it with migrations. Quite successfully. With one exception. Popularity: 2% [?]
Popularity: 2% [?]
Read More..>> « go back — keep looking »

