There comes a time in a Ruby on Rails project that will require a custom routes definition. Routes, in rails, are somewhat similar to what you can do in Apache’s .htaccess files, that is you can map URLs to different locations. For example, if you use WordPress you will need to edit your .htaccess file [...]
Posted in Ruby, TechKnow |
If you are using the Ruby on Rails acts_as_taggable plugin you may want to display the top tags in a tag cloud. To generate a tag cloud you will to write some code beyond just writing the controller action. You will need to augment the taggable plugin itself and create a function in the application [...]
Posted in CSS, Ruby, TechKnow |
If you are just starting out with the Google Web Toolkit you may have already noticed that GWT generates obfuscated javascript code in those cache.html files. If you ever want to debug the GWT auto-generated JavaScript code, or in my case learn from it, you can have GWT generate legible JavaScript code. To have GWT [...]
I have received a bit positive feeback rearding the acts_as_commentable rails plugin. One suggestion asked for me to provide more sample code, especially in regards to the view and controller. To fulfill that request lets imagine that we are developing an application where different type of models act as commentable. We can start by creating [...]
Posted in Ruby, TechKnow |
I was explaining to a Java developer at work how you get soo much for free when working Ruby on Rails. I tried to explain the simplicity of ActiveRecord and the lack of getters and setters. I mentioned the number of rails plugins that provided tagging, versioning, and commenting functionality. Out of that conversation I [...]
Posted in Ruby, TechKnow |
If you need to need to generate bar graphs in your Ruby on Rails application you can use the CSS Graphs plugin. This plugin can create three styles of CSS bar graphs. To install this plugin using the plugin script as follows: script/plugin install http://topfunky.net/svn/plugins/css_graphs As soon as you install this plugin you can start [...]
Posted in Ruby, TechKnow |