I was not able to setup the SVN on the suse linux as easy as on Ubuntu. In Ubuntu I think its simply by apt-get install subversion, but here even after compiling the source I was not able to enable the support of ra_dav module for http and https protocol. Later on after all the […]
Archive for January, 2008
You may have noticed by now, that in Rails 2.0 changeset 7422, you can specify columns you want to add/remove in your migration by passing attribute:type pairs to the migration generator.
For example, lets assume that we need to add a column ‘role’ in users table(User model). In this case generate a migration like:
script/generate migration […]
Some days ago I wrote a post about “SVN commit notification” which uses a perl script for sending commit notification with svn diff by mail. In this mail you can find svn diff from the last committed revision. I used to love this mail, soon I realized that it is a bit ugly and difficult […]
The view helper method capture provides this functionality to wrap a section of the view template in a variable and can be used multiple times in the view.
Usage :
You can earn a lot, if you use your brain!
to know more!
Advantage:
If its needed to render a section of template code, we […]
The function(s) defined within a function works fine with any hierarchy only within the main object but gives NoMethodError inside a class.
Lets exemplify it!
Here are the example of both main object and inside a class…
def person
def author
p “I am author”
[…]
