I would like to share in this series of posts all the interesting tips in UNIX i’ve came across till date. To understand read, write, execute permissions for a file The first letter – stands for a normal file, d for directory, c or b for a device, l for a link to another file. … Continue reading
Tagged with tips …
Displaying Indian Rupee sign in rails views
The Indian Rupee sign (₹) is the currency sign for India. Though its relatively new, its been widely used to display indian currency on web. Various solutions facilitate the usage of this new symbol on web such as Webrupee trying to make it first class citizen in the currency world. The Unicode technical committee accepted the … Continue reading
Ruby tips | Part 1
I would like to share in this series of posts all the beauty of the language Ruby i’ve come across till date. Ruby arrays is a shortcut for In this literal syntax each element of the array is separated using space.However, if your element itself has space in it we can escape that space using … Continue reading
Validating single model attribute in rails
Checking a single attribute on a model for validity doesn’t seem to be possible in Rails. Or at least I couldn’t find a quick answer googling around or looking through the ActiveRecord code. What I really want to do is pass a hash into valid? with the attributes I want to validate or have an … Continue reading
Useful Ruby on rails Articles
Rails continues to be popular and for someone to get start a good tutorial might be the difference. Ruby on rails has a rich ecosystem with extensive documentation online. In this post find useful Ruby / Ruby on rails online resources in no particular order. I will update this post whenever i find a good … Continue reading
Rails tips | Part 1
I would like to share in this series of posts all the beauty of rails i’ve come across till date. To know different options while creating a rails application To create a rails application with a specific rails version Using to_param for SEO friendly slugs To re-load console with the data created in the session. … Continue reading