Funonrails - funonrails.com - Fun On Rails

Latest News:

Dynamic conditions to rails associations 25 Oct 2012 | 03:42 pm

We all know that rails models associations gets defined while class definitions are loaded and once defined can't be changed. But still you can make use of block parameter to conditions to have dynami...

Upgrading from Rails 2.1.x to Rails 2.3.11 5 Apr 2012 | 04:43 am

If your application is currently on any version of Rails 2.1.x, The following changes needs to be done for upgrading your application to Rails 2.3.11 1. First install Rails version 2.3.11 gem instal...

ruby enumerable & to_proc (ampersond & symbol shortcut) 23 Feb 2012 | 10:39 am

Basically Enumerable mixin gives collection classes a variety of traverse, search, sort methods. understanding ruby blocks i.e. proc blocks are statements of code written in ruby. one can take them as...

dynamic & bounded parameters and named routes 31 Jan 2012 | 11:13 am

Rails routes can be customized as your own routes with parameters but first you should understand how routes behaves. Adding dynamic parameters to routes Here exact parameters are matched to route and...

puts, to_s and inspect on ruby object 31 Jan 2012 | 09:37 am

`puts` converts ruby object into string by invoking to_s method on object. The default to_s prints the object's class and an encoding of the object id. In order to print human readable form of object ...

csv file import / export in rails 3 27 Jan 2012 | 10:58 pm

CSV (comma separated values) files are frequently used to import/export data. In rails 3, FasterCSV comes as default and below is the way to upload csv files inside rails applications. The code below ...

Mongoid embeded_in and Array field management 20 Jan 2012 | 09:42 am

Previous post explains on mongoid document array field and rails form implementation Below example shows rails form integration of array field of embedded mongoid document consider scenario, student e...

mongoid array field and rails form 20 Jan 2012 | 08:29 am

mongoid document supports array as field. array field in mongoid document is a ruby array but its quite complex to manage array field in rails forms. After lot of google and reading comments from stac...

twitter-bootstrap form builder for rails 17 Jan 2012 | 02:09 pm

twitter-bootstrap is pluggable css suit provided by twitter. To know more about how to get started on it click here Below post will help you out in getting started bootstrap css with rails app. One ne...

Get models list inside rails app 17 Jan 2012 | 01:46 pm

How to get collection of models inside your application. Certainly there are many ways to do it. Lets have a look at different ways starting from worst - Get table names inside database and then itera...

Recently parsed news:

Recent searches: